Objective
Recently due to work needs, need to install clion environment in win, the process is quite tortuous, here to record it
Installing the Cygwin environment
Go to official website https://cygwin.com/install.html
Download the Setup-x86_64.exe, and after the download is complete, install it.
When installing, choose to set it according to your own needs.
Choose a download site settings when selecting a download source, of course, you can also add other mirror stations, such as NetEase: Then will choose to install the module, here we need to install cmake,gcc-core,gcc-g++,make,gdb,binutils, here must choose good, otherwise the following configuration environment will be problematic.
When selecting a module, modify the view to full, otherwise it will not be displayed. When you encounter the module you want to select, click Skip to switch it to the corresponding version number.
Here are the modules I chose:
CMake
gcc-core,gcc-g++:
Make
Gdb:
Binutils
After selecting all, click Next to install.
After the installation is complete, configure the environment variables:
Computer-Properties-Advanced system Settings-advanced-environment variable-path
Add the bin directory for Cygwin in path: C:\cygwin64\bin
So the Cygwin is ready to be installed.
Install and activate Clion
Download the installation package http://www.jetbrains.com/clion/download/#section =windows to download the latest.
Activation method, I refer to the link https://www.52pojie.cn/thread-697641-1-1.html, by modifying the hosts, blocking the activation URL, apply the activation code.
So the installation is complete.
Clion Configuring the Cygwin environment
Go to the Clion page and go to the Settings page: File-settings-build,execution,deployment-toolchains
If there is no problem before the environment configuration, there will be no error, the following is the correct configuration
If there is an error, then according to the actual situation, re-execute the Setup-x86_64.exe module configuration.
Then you can use the clion normally.
Last Words
Because I have been in Linux under the use of Vim for code development, which is also the first installation of the IDE, really toss a half-day, the main Cygwin module is not configured Well, ah, you can happily play the ^_^
Reference article:
Clion installation Configuration
Cygwin make:command not found,make command not found
Win7 Installation clion Environment