OS & Tools/ROS

ROS 환경에서 CMake Upgrade 방법

전두선 2021. 4. 4. 23:50

Warning -- Do not do step 2 if you have Robot Operating System (ROS) installed

  1. Check your current version with cmake --version
  2. Uninstall it with sudo apt remove cmake
  3. Visit https://cmake.org/download/ and download the latest binaries
    • In my case cmake-3.6.2-Linux-x86_64.sh is sufficient copy the binary to /opt/
  4. chmod +x /opt/cmake-3.*your_version*.sh (chmod makes the script executable)
  5. sudo bash /opt/cmake-3.*your_version.sh* (you'll need to press y twice)
  6. The script installs to /opt/cmake-3.*your_version* so in order to get the cmake command, make a symbolic link:
  7. sudo ln -s /opt/cmake-3.*your_version*/bin/* /usr/local/bin
  8. Test your results with cmake --version


> As observed by Matt, IF YOU ARE A ROS USER DO NOT RUN "REMOVE CMAKE" Running this command will remove the current cmake version but will also remove parts of your ROS distribution, breaking everything and forcing you to re-install EVERYTHING related to ROS. A warning should be added to this command, or at the very least the leading answer should include a way to update cmake, rather than remove-and-replace.

REF : askubuntu.com/questions/829310/how-to-upgrade-cmake-in-ubuntu

'OS & Tools > ROS' 카테고리의 다른 글

ROS 환경에서 CMake Upgrade 방법  (0) 2021.04.04
[ROS] Linux tmux Install & Command  (1) 2020.12.20
[ROS] Learn ROS with C++ or Python?  (0) 2020.12.17
[ROS] Hector SLAM  (0) 2020.03.09