lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

How to un-install LCM ? #366

Closed ZhipengZhang-flexiv closed 2 years ago

ZhipengZhang-flexiv commented 2 years ago

I installed LCM using the instruction "./configure&& make && make intall"

How do I uninstall when I don't need to use LCM? I found that “make uninstall” doesn't work... Can anyone give some advice?

hoxell commented 2 years ago

You can install it again and capture the output from make install and manually (e.g., using a script) delete the files it installed.

ZhipengZhang-flexiv commented 2 years ago

You can install it again and capture the output from make install and manually (e.g., using a script) delete the files it installed. thanks for your replay! however,i have tried "sudo xargs rm < install_manifest.txt" and deleted the source package. but there are many residual files in the /usr/... any suggestions?

hoxell commented 2 years ago

Which files are left and what does your install_manifest.txt look like?

ZhipengZhang-flexiv commented 2 years ago

in my install_manifest.txt : /usr/local/lib/lcm/cmake/lcmJavaTargets.cmake /usr/local/lib/lcm/cmake/lcmTargets.cmake /usr/local/lib/lcm/cmake/lcmTargets-noconfig.cmake /usr/local/lib/lcm/cmake/lcmConfig.cmake /usr/local/lib/lcm/cmake/lcmConfigVersion.cmake /usr/local/lib/lcm/cmake/lcmUtilities.cmake /usr/local/lib/liblcm.a /usr/local/include/lcm/eventlog.h /usr/local/include/lcm/lcm.h /usr/local/include/lcm/lcm_coretypes.h /usr/local/include/lcm/lcm_version.h /usr/local/include/lcm/lcm-cpp.hpp /usr/local/include/lcm/lcm-cpp-impl.hpp /usr/local/include/lcm/lcm_export.h /usr/local/lib/liblcm.so.1.4.0 /usr/local/lib/liblcm.so.1 /usr/local/lib/liblcm.so /usr/local/include/lcm/eventlog.h /usr/local/include/lcm/lcm.h /usr/local/include/lcm/lcm_coretypes.h /usr/local/include/lcm/lcm_version.h /usr/local/include/lcm/lcm-cpp.hpp /usr/local/include/lcm/lcm-cpp-impl.hpp /usr/local/include/lcm/lcm_export.h /usr/local/bin/lcm-gen /usr/local/share/man/man1/lcm-gen.1 /usr/local/bin/lcm-logger /usr/local/bin/lcm-logplayer /usr/local/share/man/man1/lcm-logger.1 /usr/local/share/man/man1/lcm-logplayer.1 /usr/local/bin/lcm-sink /usr/local/bin/lcm-source /usr/local/bin/lcm-tester /usr/local/bin/lcm-example /usr/local/bin/lcm-logfilter /usr/local/share/man/man1/lcm-example.1 /usr/local/share/man/man1/lcm-sink.1 /usr/local/share/man/man1/lcm-source.1 /usr/local/share/man/man1/lcm-tester.1 /usr/local/share/java/lcm.jar /usr/local/bin/lcm-logplayer-gui /usr/local/bin/lcm-spy /usr/local/share/man/man1/lcm-logplayer-gui.1 /usr/local/share/man/man1/lcm-spy.1 /usr/local/share/java/xmlgraphics-commons-1.3.1.jar /usr/local/share/java/jide-oss-2.9.7.jar /usr/local/share/java/jchart2d-3.2.2.jar /usr/local/share/aclocal/lcm.m4 /usr/local/lib/pkgconfig/lcm.pc /usr/local/lib/pkgconfig/lcm-java.pc

if I delete all the files containing lcm under / ,does that mean it was successfully uninstalled?

hoxell commented 2 years ago

No, don't remove everything containing lcm under the root dir (/). Uninstall only the files installed during make install. There are lcm files that do not contain lcm and there are non-lcm files that do contain lcm.