Ubuntu 15.04で、次のコマンドを使用して「igraph」をインストールしようとしています。
pip install python-igraph
igraph
そうですね、Pythonのパッケージを使用して、グラフなどを操作します。ただし、インストールは次の出力で失敗します
/usr/bin/ld: cannot find -lxml2
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:2357: recipe for target 'libigraph.la' failed
make[3]: *** [libigraph.la] Error 1
make[3]: Leaving directory '/tmp/pip-build-8dtEwd/python-igraph/tmp/igraph.dZXTk4/igraph-0.7.1/src'
Makefile:1377: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/tmp/pip-build-8dtEwd/python-igraph/tmp/igraph.dZXTk4/igraph-0.7.1/src'
Makefile:480: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/pip-build-8dtEwd/python-igraph/tmp/igraph.dZXTk4/igraph-0.7.1'
Makefile:382: recipe for target 'all' failed
make: *** [all] Error 2
Extracting igraph-0.7.1.tar.gz...
Configuring igraph...
Could not download and compile the C core of igraph.
libxml2
インストールされているようです(つまり、apt-get install libxml2
何もインストールされていません)。これらの問題を修正するにはどうすればよいですか?
上記の問題を修正するよりも速いと思うので、とにかく自分のグラフクラスをコーディングするでしょう...
libxml2
はランタイム共有ライブラリであり、そのライブラリを使用するコンパイル済みプログラムの実行に適しています。を使用するプログラムをコンパイルする場合はlibxml2
、をインストールする必要がありますlibxml2-dev
。
これはubuntuのほとんどのライブラリパッケージに当てはまります(そしてdebian、mintなど。RHなどにも同様の規則libfoo
があります)-ランタイム共有ライブラリでlibfoo-dev
あり、開発ヘッダーと.aアーカイブが含まれています
libzの場合、パッケージは zlib1g-dev
ところで、python-igraph
0.6.5-1はdebian用にパッケージ化されています-ubuntu用にも事前にパッケージ化されていませんか?もしそうなら、ubuntuパッケージをインストールする方がはるかに良いでしょう。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加