SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Sascha G. <Sas...@gm...> - 2005年07月29日 12:06:31
I am having issues installing matplotlib on a Linux box:
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-fPIC -Isrc -I. -I/usr/local/include -I/usr/include
-I/opt/Python-2.3.5/Include -I/opt/Python-2.3.5 -c CXX/cxx_extensions.cxx -o
build/temp.linux-i686-2.3/cxx_extensions.o -DNUMERIC=1
In file included from CXX/Extensions.hxx:18,
 from CXX/cxx_extensions.cxx:1:
/usr/include/g++/std/bastring.h: In method `const Py_UNICODE *
basic_string<short unsigned int,string_char_traits<short unsigned
int>,__default_alloc_template<true,0> >::c_str() const':
CXX/Objects.hxx:1505: instantiated from here
/usr/include/g++/std/bastring.h:338: return to `const Py_UNICODE *' from
`const char *'
error: command 'gcc' failed with exit status 1
I can't see what's missing or whatever else is wrong... any idea? Could it
be that the gcc version (2.95) is too old?
Thanks,
Sascha
-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++
From: John H. <jdh...@ac...> - 2005年07月29日 13:54:39
>>>>> "Sascha" == Sascha GL <Sas...@gm...> writes:
 Sascha> I am having issues installing matplotlib on a Linux box:
 Sascha> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
 Sascha> -Wstrict-prototypes -fPIC -Isrc -I. -I/usr/local/include
 Sascha> -I/usr/include -I/opt/Python-2.3.5/Include
 Sascha> -I/opt/Python-2.3.5 -c CXX/cxx_extensions.cxx -o
 Sascha> build/temp.linux-i686-2.3/cxx_extensions.o -DNUMERIC=1 In
 Sascha> file included from CXX/Extensions.hxx:18, from
 Sascha> CXX/cxx_extensions.cxx:1: /usr/include/g++/std/bastring.h:
 Sascha> In method `const Py_UNICODE * basic_string<short unsigned
 Sascha> int,string_char_traits<short unsigned
 int> ,__default_alloc_template<true,0> >::c_str() const':
 Sascha> CXX/Objects.hxx:1505: instantiated from here
 Sascha> /usr/include/g++/std/bastring.h:338: return to `const
 Sascha> Py_UNICODE *' from `const char *' error: command 'gcc'
 Sascha> failed with exit status 1
 Sascha> I can't see what's missing or whatever else is
 Sascha> wrong... any idea? Could it be that the gcc version (2.95)
 Sascha> is too old?
That's very good bet -- 2.95 is *really old*. It looks like it may
not be properly handling wide characters. I don't think there is
anything we can do on our end about this one. Can you upgrade your
compiler?
JDH
From: Sascha <sas...@gm...> - 2005年07月29日 15:13:43
> That's very good bet -- 2.95 is *really old*. It looks like it may
> not be properly handling wide characters. I don't think there is
> anything we can do on our end about this one. Can you upgrade your
> compiler?
Well, it's an old server box of my faculty at the university. I'll see what 
I can do about it.
Thanks for your advice.
Sascha 
From: Sascha G. <Sas...@gm...> - 2005年08月01日 06:16:48
Ok, so I have upgraded gcc to 3.4.4 and built Numeric and Matplotlib with
it. Both install fine. However, when I try to import the pylab interface, I
get the following traceback:
>>> import pylab
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/usr/local/lib/python2.3/site-packages/pylab.py", line 1, in ?
 from matplotlib.pylab import *
 File "/usr/local/lib/python2.3/site-packages/matplotlib/pylab.py", line
198, in ?
 from axes import Axes, PolarAxes
 File "/usr/local/lib/python2.3/site-packages/matplotlib/axes.py", line 14,
in ?
 from axis import XAxis, YAxis
 File "/usr/local/lib/python2.3/site-packages/matplotlib/axis.py", line 25,
in ?
 from font_manager import FontProperties
 File "/usr/local/lib/python2.3/site-packages/matplotlib/font_manager.py",
line 39, in ?
 from matplotlib import ft2font
ImportError: /usr/local/lib/python2.3/site-packages/matplotlib/ft2font.so:
undefined symbol: FT_Get_PS_Font_Info
To me it sounds like there is an issue with the Freetype library. Any idea
what I can do about that?
Appreciate your help.
Sascha
> --- Ursprüngliche Nachricht ---
> Von: "Sascha" <sas...@gm...>
> An: <mat...@li...>
> Betreff: Re: [Matplotlib-users] Installation issue
> Datum: 2005年7月29日 17:13:36 +0200
> 
> > That's very good bet -- 2.95 is *really old*. It looks like it may
> > not be properly handling wide characters. I don't think there is
> > anything we can do on our end about this one. Can you upgrade your
> > compiler?
> 
> Well, it's an old server box of my faculty at the university. I'll see
> what 
> I can do about it.
> 
> Thanks for your advice.
> 
> Sascha 
-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
From: Sascha G. <Sas...@gm...> - 2005年08月01日 07:10:51
Attachments: build.txt
Attached is the output from the build process; it contains a few warnings.
Maybe these are related to my issue?
-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl 
From: Robert K. <rk...@uc...> - 2005年08月01日 07:21:58
Sascha GL wrote:
> Attached is the output from the build process; it contains a few warnings.
> Maybe these are related to my issue?
Where is libfreetype on your machine?
-- 
Robert Kern
rk...@uc...
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
 -- Richard Harter
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /