ubuntu安装: sudo apt-get install cmake-qt-gui
查看版本: cmake --version
于是我想试着升级cmake好了,网上看到的教程都是先
sudo apt-get autoremove cmake
但是这一步执行的话,会卸载ros相关的catkin_make的包,不敢尝试,怕麻烦。于是尝试不卸载,直接升级好了。
1, 使用PPA
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update- 若没有安装cmake,则
sudo apt-get instal cmake
- 若已经安装了cmake,则
sudo apt-get upgrade
特别注意
参考资料:
1,http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04
ok too:
wget https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
tar -xvf cmake-3.9.2.tar.gz
cd cmake-3.9.2
./configure
sudo make
sudo make install
hash -r
cmake --version
卸载:https://blog.youkuaiyun.com/xh_hit/article/details/79639930
sudo apt-get remove cmake
sudo rm -rf /usr/local/share/cmake*