Sudo tar xfz ~/Downloads/CLion-*.tar.gz -C /opt Extract the downloaded file to directory under /opt.In case sudo is not install, you can log in as root (running su command and giving the root passwod)Äownload from.On other linux distribution you'll have to use the default package manager, like yum in rpm-based distributions.Run the installation command: sudo apt install cmake gcc g++ clang.Open a terminal window (Alt-F2 to run application, type in mate-terminal or gnome-terminal or konsole).The required packages are: cmake, GCC/G++ or Clang. JetBrains gives a free license for students. However you will need to enter your credentials.Clion is a JetBrains' solution for C/C++ development Your Debian environment should be detected automatically. In File > Settings > Toolchains, click on Add (+) and select WSL. Now that everything is ready you must configure CLion in order to be able to use the CMake of WSL and then valgrind. This command will ask you for a password (and username must be replace by your username). Then you must create a connection with: ssh -p2222 Then, in the WSL command interface you have to configure and run the open ssh-server. You may need to enter the following command in the PowerShell to enable specific features: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux This command should display the version of CMake that you just installed (3.17.5 in my case). To ensure that CMake is properly installed you can run: cmake -version Then, to install cmake you have to run: cd cmake-3.17.5/. To unpack the file you must run tar -xvzf cmake-3.17.5.tar.gz You can check the latest versions of cmake at. Then you must download the CMake version that you want (curently the latest CMake version supported by CLion is 3.17.5). In order to properly install CMake you will need the following packages: sudo apt-get update sudo apt-get install openssh-server wget gcc clang gdb build-essential libssl-dev You must run this app and then enter a username associated with a password. Once the Debian distribution is installed, you should see a Debian icon in the start menu. Then, you can download and install the Debian distribution: To do so, you must type the following in the PowerShell: wsl -set-default-version 2 Then, you must set WSL 2 as the default version when installing a new Linux distribution. In order to enable the new features, you must now restart your computer. Then, to enable the Virtual Machine feature you must run: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart In order to install Windows Subsystem for Linux on Windows 10, you must first enable WSL by opening the PowerShell as Administrator and running: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart Install Windows Subsystem for Linux (Windows 10) Therefore, I am gonna explain how to install Windows Subsystem for Linux (WSL Debian), how to install CMake on Debian, and how to link WSL to CLion on Windows. Jetbrains CLion is an amazing tool to write C / C++ code but it can be a bit tricky to use valgrind on Windows. Using valgrind on Windows in CLion (with WSL)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |