A simple way is to simply click the start button and search for it like the below screenshot.Ĭlick Environment Variables from the Advanced tab.Ĭlick on Path and select that. ⚠️ If you are using a 32 bit operating system, and you also installed the MSYS2 in the default directory, then your directory should be like the following: C:\msys64\mingw32\bin ⚠️ If you are using a 32 bit operating system, then you have to go into your mingw32 folder > bin folder. ⚠️ If you are using a 32 bit operating system, then go to the mingw32 folder. If you are using a 64 bit operating system like I am, then go to the mingw64 folder. If you used custom directories, then you need to go to the directory where you installed it. I am assuming that you have installed the MSYS into the default directory like I have. How to Add the Directory to the Path of the Environment Variables Give it some time to finish the installation. If you get any installation prompt, then simply type Y or y and press the enter key. ⚠️ If you are using a 32 bit operating system, then you have to apply the command pacman -S mingw-w64-i686-gdb in your 32 bit terminal. If you are using a 64 bit operating system like I am, then you have to apply the command pacman -S mingw-w64-x86_64-gdb. You've now finished installing the compilers. Type Y or y and press the enter key if you get the installation prompts. ⚠️ If you are using a 32 bit operating system, then you have to apply the command pacman -S mingw-w64-i686-gcc in your 32 bit terminal. Apply the command pacman -S mingw-w64-x86_64-gcc to install the compilers. Then, you need to open that terminal.Īs I am using a 64 bit operating system, I have opened the terminal for 64 bit. ⚠️ But, if you are using a 32 bit operating system, then you have to use the MSYS2 MinGW x86 terminal. If you are using a 64 bit operating system like I am, then we need to use the MSYS2 MinGW 圆4 terminal. Install the GCC and G++ CompilersĬlick the start button. Wait a little to finish the installation.Ĭlose the window after finishing the installation. If you get any installation prompt, then you need to type Y or y and press the enter key. You might need to apply the command pacman -Sy if the terminal tells you to do that. Update the rest of the packages by applying the command, pacman -Su. Open the terminal by clicking MSYS2 MSYS. Click on the folder to expand and get the terminal. We have to open the terminal manually and update the rest of the packages. Type Y and press the enter key if you get this type of installation prompt. Let me assume that we have opened the MSYS2 MSYS terminal successfully.Īpply the command pacman -Syu to update the package database and the base packages. In that case, you have to click the start button > Search for MSYS2 and click on the terminal like in the following picture: I prefer to do it this way, but if you want to do the remaining tasks later, then you need to open the terminal by yourself from the start menu. If you keep the checkmark, then the MSYS2 terminal will open once you click Finish. Give it some time to finish the installation process. It should not take much time depending on your internet speed.Īfter downloading the file, we will get this executable file.ĭouble click on the executable file. Simply click on the installer button and save the installer file in any place you want.įinish downloading the executable file. Scroll down a little bit until you find the download button for the executable file. The website looks like below as of today. Firstly we need to download an executable file from MSYS2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |