0
現在我想從ROOT安裝錯誤:與-fPIC
安裝可用根包./configure, make
後重新編譯;我得到如下錯誤:
/usr/bin/ld: /share/lib/python2.6/config/libpython2.6.a(abstract.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/share/lib/python2.6/config/libpython2.6.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [lib/libPyROOT.so] Error 1
我真的讀了很多關於這個問題;看起來是由於在64位機器上運行32位軟件導致的,我需要用-fPIC重新配置。 所以我試圖運行
CFLAGS="-O3 -fPIC" ./configure
或 根據Passing a gcc flag through makefile 裏面添加。 bashrc
,我加:
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
但是,他們都沒有工作!
這真的讓我發瘋....只有我的情況與別人不同的是這裏我有問題,python2.6的,而另一些與其他圖書館...
誰能幫助我....