6/3/2023 0 Comments Uninstall cmake linux![]() Having said that, if anyone thinks that is where this question should be asked, I can certainly move it. However, because it affects ROS users, and has surely affected several people before me, I thought I would be more likely to find an answer here, and that any answer I do find will be more relevant here than on another forum like StackOverflow. I also realize that this is more of a general-Linux type question rather than one specific to ROS. Any help or advice would be greatly appreciated. I'd prefer to avoid that happening again, either by updating cmake without deleting the old version, or by somehow preventing the command from deleting ROS files. I ran this command last time I needed to update cmake, and it completely broke my ROS distribution, requiring a full reinstall to fix. The full message is very long, so I have provided it in a text file here: cmake_warning.txt Ros-indigo-visualization-tutorials ros-indigo-viz ros-indigo-voxel-gridĠ upgraded, 0 newly installed, 244 to remove and 347 not upgraded.Īfter this operation, 159 MB disk space will be freed. Ros-indigo-bond ros-indigo-bond-core ros-indigo-bondcpp ros-indigo-bondpy Ros-indigo-actionlib-tutorials ros-indigo-amcl ros-indigo-base-local-planner The following packages were automatically installed and are no longer required:Ĭmake ros-indigo-actionlib ros-indigo-actionlib-msgs The problem is that this command identifies many files from my ROS distribution and marks them for deletion e.g: sudo apt remove cmake So my question is: Is there a way to update cmake without removing the previous version or by avoid deleting the ROS files? Problem (detailed)Īccording to other forums on the internet, updating cmake requires deleting the previous version with the command sudo apt remove cmake. Having done this before, I can confirm that this command will completely break your ROS distribution, requiring a full reinstall to fix. This identifies several ROS files and deletes them. ![]() However this requires removing the previous version with the command: sudo apt remove cmake. See details in reference.I need to update my cmake from version 2.8.12.2 to version 3.1 or higher. Sudo apt-add-repository 'deb xenial main' Sudo apt-add-repository 'deb bionic main' Sudo apt-get install apt-transport-https ca-certificates gnupg \Īdd the repository to your sources list and update. If you are using a minimal Ubuntu image or a Docker image, you may need to install the following packages: It allows you to install latest CMake via Now CMake developer team in Kitware Inc provides To be sure, I tested this with CMake 3.9.0, and itĮdit: As GNUton has pointed out, the following only works on Ubuntu 16.04 and 18.04(Checked on June 2019). $(MAKE) -f CMakeFiles/uninstall.dir/build.make CMakeFiles/uninstall.dir/build $(MAKE) -f CMakeFiles/Makefile2 uninstall # Target rules for targets named uninstall However,ĭefine those uninstall targets for itself. Target is generated unless you explicitly ask for one. , when you use CMake to create build scripts for your It's easy to become confused about whether or not you can un install cmake by running (and others), so aside from the situation where you know nothing else was installed into It would have installed files in the various subdirectories of , but it is not the only program that uses that directory. When you compiled CMake then it installed files in After runningĪgain, which would (harmlessly) overwrite the files that were already installed with copies of themselves, you would then be able to useĪnother possible approach, which I strongly discourage you from doing, would be to try to figure out exactly what files and directories were created in the installation, and to try to remove just those files and directories but no others. With no arguments after it, do that again. That is, you would follow the same installation steps, starting from the sameįile and passing all the same options you used (if any) to If you want to delete CMake from your system that was installed via the preceding technique, then follow the. , or otherwise changed it, then your best bet is to rebuild and reinstall it (be sure to use exactly the same version) to get back the ability to run How to Uninstall CMake through Ubuntu GUI. Not all software that can be installed by running To go back to the directory where you ran that command. Provided by Ubuntu's package manager, but instead the version you compiled and installed yourself, running Because the version that you have installed now is This is to say that you uninstalled the version provided by Ubuntu's package manager and manually downloaded, compiled, and installed it yourself from source code.Īssuming you were able to follow those instructions successfully, the version of CMake provided by Ubuntu's package manager (via the You followed this method of installing a different version of CMake.
0 Comments
Leave a Reply. |