Some problems encountered when installing and running Clion on ubuntu

           Because a cracked plug-in was installed for the old version of Clion, I could no longer use it, so I chose to reinstall clion. However, I encountered some problems when installing the latest version of clion. I will record it and hope it can help. some people.

1. Download the latest version

Download CLion: A Smart Cross-Platform IDE for C and C++

Download it from the official website. The new version requires registration before you can use it. This is not as comfortable as the old version.

2.Installation

According to the clion official website, there are two installation methods. One is to download the installation package and then unzip it for installation; the other is to enter it in the terminal.

sudo snap install clion --classic

I have only tried the first method - installation using the installation package. The effect of the second installation method is not yet clear, so only the first method is recorded.

First unzip the installation package

tar -zxvf xxxxxxxxxxxxxx

Then go to the bin folder in the unzipped folder

Terminal input

./clion.sh

Running successfully!

Question 1: After entering ./clion.sh, although clion runs successfully, there are no related icons on the desktop.

Solution: Click Tools->Create Desktop Entry... and then click OK

 

Problem 2: After opening the project file, the project is not configured (simply put, the run button cannot be clicked)

 Solution:

Method 1: As shown above, click Configure CMake Project and select the relevant cmake file

Method 2: Find the relevant cmake file, right-click and select Load CMake project (this method is also applicable to multiple cmake projects, the scenario is as follows)

 

 

Guess you like

Origin blog.csdn.net/m0_72522488/article/details/130130723