我需要在RHEL6服務器上使用Python的圖形工具。 系統管理員一直無法從系統信息庫安裝Boost庫,他相信(或其他),所以一直在在RHEL上編譯圖形工具
在/ usr /本地/ boost_1_59_0/
裏面安裝了它的兩個目錄,升壓/和libs /我正在採取的頭和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」。 它說:
checking for boostlib >= 1.53.0... configure: 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 . See http://randspringer.de/boost for more documentation.
我也試過:
\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)4.4.7 20120313(紅帽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.
看看''config.log''文件,看看爲什麼沒有找到庫。 –
它似乎沒有告訴我任何比我上面寫的更多的東西。還有很多其他的「錯誤」行,但這些可能是正常配置的一部分?並沒有明顯的提升。 – CPBL
它肯定會告訴你編譯boost測試時產生的實際錯誤。從最後看文件,搜索最後一個錯誤。 –