|
1 | 1 | # Install Make |
2 | 2 |
|
3 | | -## windows |
| 3 | +## Windows |
4 | 4 |
|
5 | | -- The easiest option is to use [Chocolatey](https://chocolatey.org/install) . First you need to install this package manager. Once installed, |
6 | | -you can install `make` (you may need to run it in a terminal as administrator) |
| 5 | +The easiest way to install `make` on Windows is by using [Chocolatey](https://chocolatey.org/install). Follow these steps: |
7 | 6 |
|
8 | | -Install chocolatey |
9 | | -```bash |
10 | | -Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) |
11 | | -``` |
| 7 | +1. Install Chocolatey by running the following command in a terminal with administrator privileges: |
12 | 8 |
|
13 | | -Install make on windows |
14 | | -```bash |
15 | | -choco install make |
16 | | -``` |
| 9 | + ```bash |
| 10 | + Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) |
| 11 | + ``` |
| 12 | + |
| 13 | +2. Once Chocolatey is installed, run the following command to install `make`: |
| 14 | + |
| 15 | + ```bash |
| 16 | + choco install make |
| 17 | + ``` |
17 | 18 |
|
18 | 19 | ## GNU/Linux |
19 | 20 |
|
20 | | -- Ensure `make` is installed |
21 | | -- It is probably already installed to check open a terminal and execute the following command: |
| 21 | +Ensure that `make` is installed by checking its version: |
22 | 22 |
|
23 | 23 | ```bash |
24 | 24 | make --version |
25 | 25 | ``` |
26 | 26 |
|
27 | | -- If it is not installed do the following |
28 | | - |
29 | | -- Before installing the make package, it is better to update your already installed packages; otherwise you may encounter compatibility issues with some software. You can do it by typing. |
| 27 | +If it's not installed, follow the instructions for your distribution: |
30 | 28 |
|
31 | 29 | ### Ubuntu |
32 | 30 |
|
33 | | -Update packages |
34 | 31 | ```bash |
35 | 32 | sudo apt update |
36 | | -``` |
37 | | - |
38 | | -Install make on ubuntu |
39 | | -```bash |
40 | 33 | sudo apt install build-essential |
41 | 34 | ``` |
42 | | -The command installs a bunch of new packages including `gcc`, `g++` and `make`. |
43 | | - |
44 | 35 |
|
45 | 36 | ### Arch Linux |
46 | 37 |
|
47 | | -Update packages |
48 | 38 | ```bash |
49 | 39 | sudo pacman -Syu |
50 | | -``` |
51 | | - |
52 | | -Install make on Arch Linux |
53 | | -```bash |
54 | 40 | sudo pacman -S make |
55 | 41 | ``` |
56 | 42 |
|
57 | 43 | ## Mac |
58 | | -- With Homebrew installed on your Mac it's super easy to install `make`, it may require root permissions. |
59 | 44 |
|
60 | | -- If you don't have [Homebrew](https://docs.brew.sh/Installation) installed, read the documentation on how to install it. |
| 45 | +If you're on macOS and have [Homebrew](https://docs.brew.sh/Installation) installed, you can easily install make with the following command: |
61 | 46 |
|
62 | | -Install make on Mac |
63 | 47 | ```bash |
64 | 48 | brew install make |
65 | 49 | ``` |
66 | 50 |
|
67 | 51 | # Install GCC |
68 | 52 |
|
69 | 53 | ## Windows |
70 | | -- Go to [ Mingw-w64](https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download " Mingw-w64") |
71 | | - |
72 | | -- Look for **mingw-get-setup.exe** for downloading. Download it and launch the installer. Accept the terms and move on. |
73 | | - |
74 | | -- You'll now see that the installer is connecting to the Internet and downloading a lot of tiny and small files. Wait till it ends. |
75 | 54 |
|
76 | | -- Right when it ends (which won't take long), you'll be presented a window with title **MinGW Installation Manager.** You should be in the 'Basic Setup' tab by default when it launches. If not, click on **Basic Setup.** |
| 55 | +To install gcc on Windows, follow these steps: |
77 | 56 |
|
78 | | -- Out of the numerous check boxes presented to you on the right side, tick "**mingw32-gcc-g++-bin**". If you are prompted with a menu, click on Mark for Install. |
| 57 | +Download [ Mingw-w64](https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download " Mingw-w64") and launch the installer. |
79 | 58 |
|
80 | | -- Then on the top left corner click on **Installation > Apply Changes.** And wait while it downloads a billion files and installs them. |
| 59 | +In the "MinGW Installation Manager," select "mingw32-gcc-g++-bin" and click "Installation > Apply Changes." |
81 | 60 |
|
82 | | -- Now you gotta edit your "Environment Variables" as well, so that gcc works in cmd no matter the file location. |
83 | | - |
84 | | -- For that go to **Windows Explorer > Right click on This PC > Properties > Advanced system settings > Environment Variables** or you could just search for "Environment Variables" in Windows Search... |
85 | | - |
86 | | -- At the bottom "System Variables" panel, look for a Variable named "Path" and double click on it. Some systems show a good UI for adding a New Path easily (by clicking New), else you just need to add ; at the end and add the following path |
| 61 | +Edit your "Environment Variables" by adding the following path to the end of the "Path" variable: |
87 | 62 |
|
88 | 63 | ```bash |
89 | 64 | C:\MinGW\bin |
90 | 65 | ``` |
91 | | -`(This is assuming you didn't manually change any installation paths and went with just clicking 'Next' during installation)` |
| 66 | +`(Assuming you didn't manually change any installation paths). Open a Command Prompt terminal and verify the installation with:` |
92 | 67 |
|
93 | | -- Click on OK, and OK and close the other windows. Open a Command Prompt Terminal and try typing and press Enter. `gcc --version` |
| 68 | +```bash |
| 69 | +gcc --version |
| 70 | +``` |
94 | 71 |
|
95 | 72 | ## GNU/Linux |
96 | 73 |
|
97 | | -- Ensure `gcc` is installed |
98 | | -- It is probably already installed to check open a terminal and execute the following command: |
| 74 | +Ensure that gcc is installed by checking its version: |
99 | 75 |
|
100 | 76 | ```bash |
101 | 77 | gcc --version |
102 | 78 | ``` |
103 | 79 |
|
104 | | -- If it is not installed do the following |
| 80 | +If it's not installed, follow the instructions for your distribution: |
| 81 | +
|
105 | 82 |
|
106 | 83 | ### Ubuntu |
107 | 84 |
|
108 | | -Update packages |
109 | 85 | ```bash |
110 | 86 | sudo apt update |
111 | | -``` |
112 | | - |
113 | | -Install gcc on ubuntu |
114 | | -```bash |
115 | 87 | sudo apt install build-essential |
116 | | -``` |
117 | | -The command installs a bunch of new packages including `gcc`, `g++` and `make`. |
118 | 88 |
|
| 89 | +``` |
119 | 90 |
|
120 | 91 | ### Arch Linux |
121 | 92 |
|
122 | | -Update packages |
123 | 93 | ```bash |
124 | 94 | sudo pacman -Syu |
125 | | -``` |
126 | | - |
127 | | -Install gcc on Arch Linux |
128 | | -```bash |
129 | 95 | sudo pacman -S gcc |
| 96 | +
|
130 | 97 | ``` |
131 | 98 |
|
132 | 99 | ## Mac |
133 | 100 |
|
134 | | -- Ensure `Clang` is installed |
135 | | -- It is probably already installed to check open a terminal and execute the following command: |
| 101 | +Ensure that Clang is installed by checking its version: |
136 | 102 |
|
137 | 103 | ```bash |
138 | 104 | clang --version |
139 | 105 | ``` |
140 | 106 |
|
141 | | -- If it is not installed do the following |
| 107 | +If it's not installed, open "Terminal" and run the command: |
142 | 108 |
|
143 | | -- Open "Terminal" (it is located in Applications/Utilities) |
144 | | -- In the terminal window, run the command |
145 | 109 | ```bash |
146 | 110 | xcode-select --install |
147 | 111 | ``` |
148 | | -- In the windows that pops up, click , and agree to the Terms of Service. `Install` |
149 | | -Once the installation is complete, the command line utilities should be set up property. |
| 112 | +In the window that pops up, click "Install" and agree to the Terms of Service. Once the installation is complete, the command line utilities should be set up properly. |
| 113 | +
|
| 114 | +Refer to the specific instructions for your operating system to install make and gcc successfully. |
0 commit comments