问题
error while loading shared libraries: libxmlrpcpp.so: cannot open shared object file: No such file or directory
搜索,该库的位置在/opt/ros//lib,
解决方法
- 打开文件ld.so.conf
sudo vim /etc/ld.so.conf
- 在末尾补充
/opt/ros/melodic/lib
- 执行生效
sudo ldconfig
OK!!!!
拓展
linux 执行程序时,找不到共享库
“error while loading shared libraries: <xxx.so>: cannot open sha