[Matplotlib-users] install error, libz, ld, lz

2009-06-26 Thread Jack Yu
Hi everyone,

I am trying to install the latest version of matplotlib from svn.  However,
after cd-ing into the matplotlib directory, and running python setup.py
install --prefix=${path}, I get the following error:

/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/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
error: command 'c++' failed with exit status 1

I don't really understand what I need to do from this error message.  Does
it mean that I have to install 'zlib'?   I am using python 2.4.3, and numpy
1.2.1.

Thanks,

Jack
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] install error, libz, ld, lz

2009-06-26 Thread Sandro Tosi
Hello Jack,

On Wed, Jun 24, 2009 at 22:07, Jack Yujackchungchie...@googlemail.com wrote:
 Hi everyone,

 I am trying to install the latest version of matplotlib from svn.  However,
 after cd-ing into the matplotlib directory, and running python setup.py
 install --prefix=${path}, I get the following error:

 /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/libz.so when searching for -lz
 /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
 /usr/bin/ld: cannot find -lz
 collect2: ld returned 1 exit status
 error: command 'c++' failed with exit status 1

 I don't really understand what I need to do from this error message.  Does
 it mean that I have to install 'zlib'?   I am using python 2.4.3, and numpy
 1.2.1.

you need to install the development package (in the common sense, for
your pacakge manager) to be able to compile code that dinamically
links to libz. For example on Debian with libz-dev (provided by
zlib1g-dev).

Install a similar package for your distrivution and try to recompile matplotlib.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users