Installation Problem

Hi there,

I'm not sure, if I'm mailing to the right list, but I will give it a
shot, anyway. I have a problem getting matplotlib installed. After
compiling fine for a while I get the error message:

..
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
building 'matplotlib._na_cntr' extension
gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC -I/usr/local/include
-I/usr/include -I/glb/home/nlhkl6/install/include -I.
-I/usr/include/python2.2 -c src/_na_cntr.c -o
build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
src/_na_cntr.c:1705: syntax error before "init_na_cntr"
error: command 'gcc' failed with exit status 1

I am using:
matplotlib 0.86.1
python 2.2
Numeric 24.2
numarray 1.5.0

I have modified basedir in setupext.py to
..
'linux2' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
'linux' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
..

the header files for the numarray and the Numeric package are at the
last location under include/Numeric and include/Numarray

Furthermore I have modified in setup.py

rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])

because the original form threw errors.

Any help would be much appreciated!

All the best,
Hanno

Can you tell us more about the OS?

···

On 1/17/06, klemm@...948... <klemm@...948...> wrote:

Hi there,

I'm not sure, if I'm mailing to the right list, but I will give it a
shot, anyway. I have a problem getting matplotlib installed. After
compiling fine for a while I get the error message:

..
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
building 'matplotlib._na_cntr' extension
gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC -I/usr/local/include
-I/usr/include -I/glb/home/nlhkl6/install/include -I.
-I/usr/include/python2.2 -c src/_na_cntr.c -o
build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
src/_na_cntr.c:1705: syntax error before "init_na_cntr"
error: command 'gcc' failed with exit status 1

I am using:
matplotlib 0.86.1
python 2.2
Numeric 24.2
numarray 1.5.0

I have modified basedir in setupext.py to
..
'linux2' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
'linux' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
..

the header files for the numarray and the Numeric package are at the
last location under include/Numeric and include/Numarray

Furthermore I have modified in setup.py

rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])

because the original form threw errors.

Any help would be much appreciated!

All the best,
Hanno

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Dear Charlie,

the OS is Linux, Kernel 2.4.21 with SMP running on a Xeon box.

uname -a spits out:

uname -a

Linux rijkes-n-d99878 2.4.21-20.nfswan2 #1 SMP Mon Sep 13 11:28:02
CEST 2004 x86_64 x86_64 x86_64 GNU/Linux

Cheers,
Hanno

Charlie Moad <cwmoad@...287...> said:

Can you tell us more about the OS?

>
> Hi there,
>
> I'm not sure, if I'm mailing to the right list, but I will give it a
> shot, anyway. I have a problem getting matplotlib installed. After
> compiling fine for a while I get the error message:
>
> ..
> /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching

for -lz

> /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching

for -lz

> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching

for -lm

> /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching

for -lm

> /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching

for -lc

> /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching

for -lc

> building 'matplotlib._na_cntr' extension
> gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC

-I/usr/local/include

> -I/usr/include -I/glb/home/nlhkl6/install/include -I.
> -I/usr/include/python2.2 -c src/_na_cntr.c -o
> build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
> src/_na_cntr.c:1705: syntax error before "init_na_cntr"
> error: command 'gcc' failed with exit status 1
>
>
>
> I am using:
> matplotlib 0.86.1
> python 2.2
> Numeric 24.2
> numarray 1.5.0
>
> I have modified basedir in setupext.py to
> ..
> 'linux2' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
> 'linux' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
> ..
>
> the header files for the numarray and the Numeric package are at the
> last location under include/Numeric and include/Numarray
>
> Furthermore I have modified in setup.py
>
> rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])
>
> because the original form threw errors.
>
> Any help would be much appreciated!
>
> All the best,
> Hanno
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through

log files

> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD

SPLUNK!

>

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

···

On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

--

So the error is coming from PyMODINIT_FUNC, which is apparently for >=
python 2.3. There have been several compatibility issues come up with
2.2 recently. Are you able to try a newer version of python?

···

On 1/17/06, klemm@...948... <klemm@...948...> wrote:

Dear Charlie,

the OS is Linux, Kernel 2.4.21 with SMP running on a Xeon box.

uname -a spits out:
> uname -a
Linux rijkes-n-d99878 2.4.21-20.nfswan2 #1 SMP Mon Sep 13 11:28:02
CEST 2004 x86_64 x86_64 x86_64 GNU/Linux

Cheers,
Hanno

Charlie Moad <cwmoad@...287...> said:

> Can you tell us more about the OS?
>
> On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> >
> > Hi there,
> >
> > I'm not sure, if I'm mailing to the right list, but I will give it a
> > shot, anyway. I have a problem getting matplotlib installed. After
> > compiling fine for a while I get the error message:
> >
> > ..
> > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching
for -lz
> > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching
for -lz
> > /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching
for -lm
> > /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching
for -lm
> > /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching
for -lc
> > /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching
for -lc
> > building 'matplotlib._na_cntr' extension
> > gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC
-I/usr/local/include
> > -I/usr/include -I/glb/home/nlhkl6/install/include -I.
> > -I/usr/include/python2.2 -c src/_na_cntr.c -o
> > build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
> > src/_na_cntr.c:1705: syntax error before "init_na_cntr"
> > error: command 'gcc' failed with exit status 1
> >
> >
> >
> > I am using:
> > matplotlib 0.86.1
> > python 2.2
> > Numeric 24.2
> > numarray 1.5.0
> >
> > I have modified basedir in setupext.py to
> > ..
> > 'linux2' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
> > 'linux' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
> > ..
> >
> > the header files for the numarray and the Numeric package are at the
> > last location under include/Numeric and include/Numarray
> >
> > Furthermore I have modified in setup.py
> >
> > rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])
> >
> > because the original form threw errors.
> >
> > Any help would be much appreciated!
> >
> > All the best,
> > Hanno
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > _______________________________________________
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>

--