Ask Your Question

Trying to run node but getting: " 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 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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 940 times

Last updated: Nov 28 '19