1

RHEL6 サーバーで Python のグラフ ツールを使用する必要があります。システム管理者は、信頼できるリポジトリ (またはその他のもの) からブースト ライブラリをインストールできなかったため、次の場所にインストールしました。

/usr/local/boost_1_59_0/

内部には、boost/ と libs/ の 2 つのディレクトリがあり、これをヘッダーと libs ディレクトリとして使用します。

ソースをダウンロードしました:

wget http://downloads.skewed.de/graph-tool/graph-tool-2.2.44.tar.bz2

そしてそれを開梱して、私は試しました:

env CPPFLAGS='-I/home/foo/sw/include' LDFLAGS='-L/home/foo/sw/lib/' ./configure

しかし、それは「./configure」自体とは異なる結果をもたらしませんでした。それは言います:

boostlib >= 1.53.0 をチェックしています... configure: エラー: ブースト ライブラリ (バージョン 1.53 以降) を検出できませんでした。ステージングされたブースト ライブラリ (まだインストールされていない) がある場合は、環境で $BOOST_ROOT を指定し、--with-boost オプションに PATH を指定しないでください。ブーストがインストールされていることが確実な場合は、 でバージョン番号を確認してください。詳細なドキュメントについては、 http://randspringer.de/boostを参照してください。

私も試しました:

\env BOOST_ROOT='/usr/local/boost_1_59_0' CPPFLAGS='-I/usr/local/boost_1_59_0/boost' LDFLAGS='-L/usr/local/boost_1_59_0/libs/'
./configure

しかし、それは同じになりました。

私も試しました:

./configure  --with-boost-libdir=/usr/local/boost_1_59_0/libs/ --with-boost=/usr/local/boost_1_59_0

私は明らかに自分が何をしているのかわかりません。これは、私が間違ったことを確認するのに十分ですか?

アップデート:

gcc バージョン:
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)

グラフ ツールの失敗した構成から config.log を見ると、最後に次のように表示されます。

configure:17873: g++ -c -Wall -Wextra -ftemplate-backtrace-limit=0  -DNDEBUG -std=gnu++0x -ftemplate-depth-250 -Wno-deprecated -Wno-unknown-pragmas -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas  -I/usr/include/python2.6  conftest.cpp >&5
cc1plus: error: unrecognized command line option "-ftemplate-backtrace-limit=0"
configure:17873: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.2.44"
| #define PACKAGE_STRING "graph-tool 2.2.44"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/tickets"
| #define PACKAGE_URL "http://graph-tool.skewed.de"
| #define PACKAGE "graph-tool"
| #define VERSION "2.2.44"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PYTHON "2.6"
| /* end confdefs.h.  */
| 
|   #include <boost/version.hpp>
| 
| int
| main ()
| {
| 
|   #if BOOST_VERSION >= 105300
|   // Everything is okay
|   #else
|   #  error Boost version is too old
|   #endif
| 
|   ;
|   return 0;
| }
configure:17972: g++ -c -Wall -Wextra -ftemplate-backtrace-limit=0  -DNDEBUG -std=gnu++0x -ftemplate-depth-250 -Wno-deprecated -Wno-unknown-pragmas -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas  -I/usr/include/python2.6  -I/include/boost-0 conftest.cpp >&5
cc1plus: error: unrecognized command line option "-ftemplate-backtrace-limit=0"
configure:17972: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "graph-tool"
| #define PACKAGE_TARNAME "graph-tool"
| #define PACKAGE_VERSION "2.2.44"
| #define PACKAGE_STRING "graph-tool 2.2.44"
| #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de/tickets"
| #define PACKAGE_URL "http://graph-tool.skewed.de"
| #define PACKAGE "graph-tool"
| #define VERSION "2.2.44"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_PYTHON "2.6"
| /* end confdefs.h.  */
| 
|       #include <boost/version.hpp>
| 
| int
| main ()
| {
| 
|       #if BOOST_VERSION >= 105300
|       // Everything is okay
|       #else
|       #  error Boost version is too old
|       #endif
| 
|   ;
|   return 0;
| }
configure:17991: error: We could not detect the boost libraries (version 1.53 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
4

1 に答える 1