One more mishap — how to I tell the graph_tool python package where the boost 
libraries reside? Here’s what happens on import:

$ python -c 'import graph_tool'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/graph_tool/__init__.py", line 101, in 
<module>
    dl_import("from . import libgraph_tool_core as libcore")
  File "/usr/lib/python2.7/site-packages/graph_tool/dl_import.py", line 57, in 
dl_import
    exec(import_expr, local_dict, global_dict)
  File "<string>", line 1, in <module>
ImportError: libboost_iostreams.so.1.56.0: cannot open shared object file: No 
such file or directory

The boost libraries do exist:

$ locate libboost_iostreams.so.1.56.0
/usr/local/boost_1_56_0/bin.v2/libs/iostreams/build/gcc-4.8.2/release/threading-multi/libboost_iostreams.so.1.56.0
/usr/local/boost_1_56_0/stage/lib/libboost_iostreams.so.1.56.0

Thanks again for all your prompt guidance getting this up on a recent OS.

Steve


On Oct 6, 2014, at 12:29 PM, Steven Thomas Smith <[email protected]> wrote:

> Thanks Tiago — got it on CentOS 7 now. Until the standard repos update the 
> boost library up to v. 1.54, you build boost yourself from download, stick it 
> in /usr/local with a symbolic link /usr/local/boost that points to it, then 
> run the following configure command for graph-tool. My last mistake was the 
> setting for --with-boost, which wants to point to the top directory.
> 
> ./configure --with-sparsehash-prefix=google --with-boost=/usr/local/boost 
> --with-boost-libdir=/usr/local/boost/stage/lib CPPFLAGS="-I/usr/local/boost" 
> LDFLAGS="-L/usr/local/boost/stage/lib”
> make
> 
> This compiles and runs under CentOS 7 now.
> 
> Best,
> 
> Steve

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to