Robotics StackExchange | Archived questions

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

It happens when I try to launch 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?

Asked by tefp on 2012-04-02 05:00:42 UTC

Comments

How did you install ROS and stageros?

Asked by Mac on 2012-04-02 11:50:51 UTC

small suggestion..try to search for librostime.so file and move it to default library file location in system. Also findout if the ROS and ubuntu version which u r using are compatible with what u want

Asked by sai on 2012-10-19 18:00:51 UTC

Answers