Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error while loading shared libraries: cannot open shared object file: No such file or directory

It happens when I try to launch stageros:

rosrun stage stageros

ex.:

/opt/ros/electric/stacks/stage/bin/stageros: error while loading shared libraries: librostime.so: cannot open shared object file: No such file or directory

I try adding files to environmental variable:

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/ros/electric/stacks/stage/lib:/opt/ros/electric/stacks/perception_pcl/ros_comm/clients/cpp/roscpp/lib:/opt/ros/electric/stacks/perception_pcl/ros_comm/clients/cpp/roscpp_serialization/lib:/opt/ros/electric/stacks/perception_pcl/ros_comm/tools/rosconsole/lib

one after another... but got bored and frustrated (don't know how many I would have to add) It seems to me ROS doesn't know where his library files are. How to fix it?

Error while loading shared libraries: cannot open shared object file: No such file or directory

It happens when I try to launch stageros: stageros (on Ubuntu Oneiric, Ros electric desktop full):

rosrun stage stageros

ex.:

/opt/ros/electric/stacks/stage/bin/stageros: error while loading shared libraries: librostime.so: cannot open shared object file: No such file or directory

I try adding files to environmental variable:

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/ros/electric/stacks/stage/lib:/opt/ros/electric/stacks/perception_pcl/ros_comm/clients/cpp/roscpp/lib:/opt/ros/electric/stacks/perception_pcl/ros_comm/clients/cpp/roscpp_serialization/lib:/opt/ros/electric/stacks/perception_pcl/ros_comm/tools/rosconsole/lib

one after another... but got bored and frustrated (don't know how many I would have to add) It seems to me ROS doesn't know where his library files are. How to fix it?