ImportError: libboost_iostreams.so.1.61.0: cannot open shared objects file: no such file or directory

I use Anaconda as my main python distribution (although the default python is also installed by default), so you need to compile the graphical tool from the source so that it works with Anaconda.

I use Ubuntu 14.04, so I also need to compile boost from the source code to be able to use the full functionality of the graphical tool, since the boost-coroutine library is currently only compiled as a static library ( https://bugs.launchpad.net/ubuntu/+ source / boost1.54 / + bug / 1529289 ).

I did this and they both installed without any error messages, however when importing a graphical tool in python using from graph_tool.all import * I get the error ImportError: libboost_iostreams.so.1.61.0: cannot open shared object file: No such file or directory .

How can I solve this problem / what is it caused?

+6
source share
1 answer

It seems you have the wrong boost package installed by conda

  • List of installed conda boost packages in the current conda list | grep boost conda list | grep boost , you may see the wrong version (not 1.61.0)
  • Search for the required version of anaconda search -t conda boost | grep 1.61.0 anaconda search -t conda boost | grep 1.61.0
  • Install the correct version with the same name conda install boost -c CHANNEL_NAME

In my case, I also have conflicts with this post:

Linking packages ... CondaOSError: OS error: failed to link (src='/home/user/anaconda3/pkgs/icu-54.1-0/lib/icu/pkgdata.inc', dst='/home/user/anaconda3/envs/py3_graph/lib/icu/pkgdata.inc', type=3, error=FileExistsError(17, 'File exists'))

Removing the folder /home/user/anaconda3/envs/py3_graph/lib/icu helps me

+1
source

All Articles