<div dir="ltr">The issue is that python c-extensions (which mpl uses to provide some of the underlying rendering logic) are basically shared libraries (*.so), the version of libstdc++ that your compiler is finding is a static library (/usr/local/lib64/libstdc++.a) which is not suitable for linking into a so. Are you sure you have all the development packages installed for your OS?<div><br></div><div>I also strongly suggest against doing `sudo python setup.py install` unless you are absolutely sure you know what you are doing. It is much safer to use virtual envs / conda envs so that you can compile/install into user space.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 9, 2015 at 7:19 AM fbarbuto <<a href="mailto:fausto_barbuto@yahoo.ca">fausto_barbuto@yahoo.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have Matplotlib 1.3.1 installed on my Ubuntu 14.04 system and thought it<br>
was time to upgrade to 1.4.2. I never get the latest version for<br>
compatibility reasons (some packages that use Matplotlib might stop<br>
working). I then downloaded the tarball, uncompressed its contents into a<br>
folder and executed "sudo python setup.py build". However, I got the<br>
following error (last few lines only):<br>
<br>
c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions<br>
-Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g<br>
-fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g<br>
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security<br>
build/temp.linux-x86_64-2.7/src/ft2font.o<br>
build/temp.linux-x86_64-2.7/src/mplutils.o<br>
build/temp.linux-x86_64-2.7/extern/CXX/cxxsupport.o<br>
build/temp.linux-x86_64-2.7/extern/CXX/cxx_extensions.o<br>
build/temp.linux-x86_64-2.7/extern/CXX/IndirectPythonInterface.o<br>
build/temp.linux-x86_64-2.7/extern/CXX/cxxextensions.o -L/usr/local/lib<br>
-L/usr/local/lib64 -lfreetype -lstdc++ -lm -o<br>
build/lib.linux-x86_64-2.7/matplotlib/ft2font.so<br>
/usr/bin/ld: /usr/local/lib64/libstdc++.a(si_class_type_info.o): relocation<br>
R_X86_64_32S against `_ZTVN10__cxxabiv120__si_class_type_infoE' can not be<br>
used when making a shared object; recompile with -fPIC<br>
/usr/local/lib64/libstdc++.a: error adding symbols: Bad value<br>
collect2: error: ld returned 1 exit status<br>
error: command 'c++' failed with exit status 1<br>
<br>
I then tried the same with Matplotlib 1.4.3 (why not?) and got the same<br>
results.<br>
<br>
What's going on here?<br>
<br>
Thanks so much for any help.<br>
<br>
Fausto<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/Matplotlib-1-4-2-1-4-3-doesn-t-install-from-source-tp46170.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/Matplotlib-1-4-2-1-4-3-doesn-t-install-from-source-tp46170.html</a><br>
Sent from the matplotlib - users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>