ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This question is I believe related to this one: - https://answers.ros.org/question/346578/libroscppso-cannot-open-shared-object-file-no-such-file-or-directory-error/#366424

I my case it is not an issue with the LD_LIBRARY_PATH that is not set but on capabilities that have been increased on the python executable. A sudo setcap cap_net_admin,cap_net_raw+ep /usr/bin/python3.6 has been executed. The problem with that is that for security reasons the LD_LIBRARY_PATH is ignored when one uses setcap. Hence python3.6 would not be able to find the the ros libraries, only the python package.

One issue I had to debug this is that the setcap is necessarily done on the executable and not on the symlink. Hence if you do getcap on python or python3 one will see nothing!

I hope this issue will help others!