Robotics StackExchange | Archived questions

can't find boost after upgrade from indigo to kinetic

Dear all, I've recently upgraded my machine from 14.04 to 16.04.

After a fresh install of ros-kinetic-desktop-full, when I type roscd and a few tab I get the following error:

rospack: error while loading shared libraries: libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory
rosstack: error while loading shared libraries: libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory

On my system I have Boost 1.58.

Shouldn't Kinetic detect that I have 1.58 automatically and use that one?

Do I really have to install Boost 1.54?

Asked by mark_vision on 2017-06-09 05:58:27 UTC

Comments

Try creating a symbolic link with source 1.54.0 and target 1.58.0:

sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.54.0

This might solve the issue.

Asked by dhindhimathai on 2019-01-09 08:52:16 UTC

@dhindhimathai: I've converted your answer to a comment as what you suggest is definitely not a solution. Manually creating symbolic links like that circumvents your pkg manager and worse, pretends that Boost 1.54 is present on the system. A proper approach would be to diagnose why rospack ..

Asked by gvdhoorn on 2019-01-09 09:00:36 UTC

.. appears to be linked against 1.54 on the OPs system. Seeing as he said he upgraded the machine, it could have been the case that an old version of rospack and rosstack were still present and those still needed Boost 1.54; the proper solution would have been to upgrade those pkgs.

Asked by gvdhoorn on 2019-01-09 09:01:35 UTC

@gvdhoom You are definitely right. Just thought about the quick "solution". @mark_vision Can you check which version of rospack do you have?

dpkg -l | grep rospack

And please check also which version of rospack are you calling:

which rospack

Asked by dhindhimathai on 2019-01-09 09:36:32 UTC

Seeing as this is a question from 2017 I doubt we're going to solve this one.

Asked by gvdhoorn on 2019-01-09 12:31:59 UTC

Answers