ubuntu mate16.04更新cmake

When I used cmake to compile the ros program, the following error occurred:

Therefore, think about updating the version of cmake to the latest version.

1. First: uninstall the current version of cmake.

sudo apt remove cmake

carry out.

2. Installation dependency: sudo apt-get install build-essential

carry out.

3. Download the new version of the cmake compressed package (here I download version 3.11.3):wget http://www.cmake.org/files/v3.11/cmake-3.11.3.tar.gz

Happy downloading. . .

carry out.

4. Unzip: tar xf cmake-3.11.3.tar.gz

carry out.

5. Check the config file for confirmation.

cd cmake-3.11.3

./configure

Yes, you can see information such as the version number and compiler.

6. The next step is a pleasant installation.

make

sudo make install

Wait for completion.

7. Create a soft link: sudo ln -sf /usr/local/bin/* /usr/bin/

Then check the cmake version again, success!

 

 

Guess you like

Origin blog.csdn.net/qqliuzhitong/article/details/112859095