Mac Ports 経由でグラフツールをインストールしました。数日前、私は走った
$ sudo port selfupdate
$ sudo port upgrade outdated
Graph-tool が新しくコンパイルされました (約 30 時間 (!)
Python 2.7.6 (default, Nov 22 2013, 13:39:24)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import graph_tool
dyld: lazy symbol binding failed: Symbol not found: __ZN5boost6python7objects23register_dynamic_id_auxENS0_9type_infoEPFNSt3__14pairIPvS2_EES5_E
Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
Expected in: flat namespace
dyld: Symbol not found: __ZN5boost6python7objects23register_dynamic_id_auxENS0_9type_infoEPFNSt3__14pairIPvS2_EES5_E
Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
Expected in: flat namespace
Trace/BPT trap: 5
「port installed | grep boost」を使用して、boost パッケージのバージョンとバリアントをテストしました。結果:
boost @1.49.0_0+python27
boost @1.53.0_1+no_single+no_static+python27
boost @1.53.0_2+no_single+no_static+python27
boost @1.54.0_0+no_single+no_static+python27
boost @1.55.0_1+no_single+no_static+python27
boost @1.55.0_2+no_single+no_static+python27 (active)
グラフ ツール自体の場合、"port installed | grep graph-tool" の結果は次のようになります。
py27-graph-tool @2.2.25_0
py27-graph-tool @2.2.29_0
py27-graph-tool @2.2.29.1_0 (active)
これは、エラー メッセージに表示されるライブラリがリンクされているライブラリを確認した結果です。
$ otool -L /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/opt/local/lib/libboost_iostreams-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libboost_regex-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libCGAL.10.dylib (compatibility version 10.0.0, current version 10.0.2)
/opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0, current version 8.0.0)
/opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
誰かアイデアがありますか?
ありがとう、
トーマス