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

Link rospack to newer version of boost

asked 2017-09-28 04:47:55 -0600

kennethjp gravatar image

updated 2017-10-02 01:35:13 -0600

gvdhoorn gravatar image

I was follwing the ROS tutorials where I had to create the beginner tutorial package. I used the following command

catkin_create_pkg beginner_tutorials std_msgs rospy roscpp

After that when I tried out the follwing rospack command I got an error

 rospack depends1 beginner_tutorials

The error is

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

Upon investigating, I realized that I have the boost version 1.65.1

How can I ask the ROS to look for the newer version of Boost?

edit retag flag offensive close merge delete


Can you tell us how you installed ROS, and which platform / cpu arch / OS this is? Binary distributions of ROS come with very specific dependencies on specific Boost versions, so not having the Boost version that ROS requires is strange and unexpected.

gvdhoorn gravatar image gvdhoorn  ( 2017-09-28 11:08:23 -0600 )edit

3 Answers

Sort by » oldest newest most voted

answered 2017-10-01 13:33:31 -0600

kennethjp gravatar image

Thank you for the comment. I installed the Kinetic version of ROS on Arch Linux. I was able to solve the problem by doing an upgrade of the ROS packages. I had installed the ROS when I had the BOOST version 1.63.0, but later had done a system upgrade. ROS was linked to previous version of BOOST.

edit flag offensive delete link more



Could you please include such important information such as which OS you are running with your question next time? Installing on Arch immediately means 'from source' which needs a rather different when diagnosing your problems.

Without that info this would have been unsolvable.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-02 01:34:49 -0600 )edit

I am sorry that I missed out to include that information, I will include the information in the future questions.

kennethjp gravatar image kennethjp  ( 2017-10-02 06:13:12 -0600 )edit

answered 2021-06-28 02:53:25 -0600

Michdo93 gravatar image

I am wondering. I have installed libboost 1.58 manually on Ubuntu 18. This was a solution I have seen in the installation guide for the Raspberry Pi. But rosdep install will automatically install libboost 1.65.

edit flag offensive delete link more

answered 2020-10-14 19:16:09 -0600

Haresh gravatar image

Had the same issue on Ubuntu 18. I had to manually clone the rospack repo from github, switch to kinetic-devel and then install it.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-09-28 04:32:37 -0600

Seen: 854 times

Last updated: Jun 28 '21