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

Trying to run node but getting: "librosconsole.so: cannot open shared object file: No such file or directory"

asked 2019-11-14 06:00:34 -0500

Zantox gravatar image

As the title says I'm trying to run my node either with rosrun, roslaunch or running the output file directly, but I'm getting this error. When using ldd on the output file it lists librosconsole.so as well as the correct folder where it is located. The LD_LIBRARY_PATH does contain the adress of the folder where it is contained as well.

What is causing this and how to fix it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-11-28 09:18:04 -0500

Zantox gravatar image

The problem was that the ROS environment variables (the 'source setup.bash' things) wasn't loaded on the root user, so when I was running the package with sudo it couldn't find ROS.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-11-14 06:00:34 -0500

Seen: 1,752 times

Last updated: Nov 28 '19