Matplotlib 1.4.2 / 1.4.3不要从源代码安装

时间:2015-09-16 15:31:51

标签: python ubuntu matplotlib

我在我的Ubuntu 14.04系统上安装了Matplotlib 1.3.1,并认为是时候升级到1.4.2了。出于兼容性原因,我从来没有得到最新版本(一些使用Matplotlib的软件包可能会停止工作)。然后我下载了tarball,将其内容解压缩到一个文件夹中并执行" sudo python setup.py build"。但是,我收到了以下错误(仅限最后几行):

c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/ft2font.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/extern/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/extern/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/extern/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/extern/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -lfreetype -lstdc++ -lm -o build/lib.linux-x86_64-2.7/matplotlib/ft2font.so
/usr/bin/ld: /usr/local/lib64/libstdc++.a(si_class_type_info.o): relocation R_X86_64_32S against `_ZTVN10__cxxabiv120__si_class_type_infoE' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib64/libstdc++.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'c++' failed with exit status 1

然后我尝试使用Matplotlib 1.4.3(为什么不呢?)并得到相同的结果。

这里发生了什么?

非常感谢您的帮助。

Fausto

0 个答案:

没有答案