can't find boost after upgrade from indigo to kinetic

asked 2017-06-09 05:58:27 -0500

mark_vision gravatar image

updated 2017-06-09 05:59:57 -0500

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?

edit retag flag offensive close merge delete

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.

dhindhimathai gravatar image dhindhimathai  ( 2019-01-09 07:52:16 -0500 )edit
1

@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 whyrospack ..

gvdhoorn gravatar image gvdhoorn  ( 2019-01-09 08:00:36 -0500 )edit

.. 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.

gvdhoorn gravatar image gvdhoorn  ( 2019-01-09 08:01:35 -0500 )edit

@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
dhindhimathai gravatar image dhindhimathai  ( 2019-01-09 08:36:32 -0500 )edit
1

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

gvdhoorn gravatar image gvdhoorn  ( 2019-01-09 11:31:59 -0500 )edit