當我運行我的程序下進行編譯,我得到以下錯誤:版本未找到(由...需要)`CXXABI_1.3.8'
./prog: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version
CXXABI_1.3.8' not found (required by ./prog) ./prog: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version
GLIBCXX_3.4.19' not found (required by ./prog) ./prog: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/arman/lib/boost_1_55_0/stage/lib/libboost_serialization.so.1.55.0)
我都升壓1.55.0和gcc 4.9 .0分別安裝在~/lib/boost_1_55_0
和~/lib/gcc-4.9.0
,我猜這就是我遇到問題的原因,但我不確定如何解決它。
我~/.profile
包含以下行:
export LD_LIBRARY_PATH=/home/user/lib/boost_1_55_0/stage/lib:$LD_LIBRARY_PATH
FAQ:http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths –