« Return to Thread: Problems installing Matplotlib under SUSE SLES 11 SP1

Re: Problems installing Matplotlib under SUSE SLES 11 SP1

by falbriard :: Rate this Message:

| View in Thread

Thanks Michael for your quick reply. I will consider use of the yum tool to install the per-requisite and future updates.

 Meanwhile I got a step forwards with help of the freetype developer forum and I succeeded to build the freetype2 from the source. So I've also repeated the "python setup.py build"  which gave me a new error message "cannot find -lz "  . See the linker command below:

g++ -pthread -shared build/temp.linux-s390x-2.6/src/ft2font.o build/temp.linux-s390x-2.6/src/mplutils.o build/temp.linux-s390x-2.6/CXX/IndirectPythonInterface.o build/temp.linux-s390x-2.6/CXX/cxx_extensions.o build/temp.linux-s390x-2.6/CXX/cxxsupport.o build/temp.linux-s390x-2.6/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/local/lib64 -L/usr/lib64 -L/usr/lib64 -lfreetype -lz -lstdc++ -lm -lpython2.6 -o build/lib.linux-s390x-2.6/matplotlib/ft2font.so
/usr/lib64/gcc/s390x-suse-linux/4.3/../../../../s390x-suse-linux/bin/ld: cannot find -lz
   
Hope somebody from this forum can give me some insights about this dependency, to complete the matplotlib install process.

Thanks in advance for your support.

Regards,
Claude  

Michael Droettboom-3 wrote:
I wouldn't recommend trying to build freetype from source.  Have you
installed the freetype development package?  I'm not familiar with SuSE,
but on RedHat/Fedora this would be accomplished by (as root) "yum
install freetype2-dev" and on Debian/Ubuntu "apt-get install
freetype2-devel".

Mike

On 09/14/2011 08:23 PM, falbriard wrote:
> Having issues with installing the matplotlib package under Linux SUSE SLES 11
> SP1 (s390):
>
> The original distribution gcc throws an error:
> "src/ft2font.h:14:22: error: ft2build.h: No such file or directory"
>
> when adding the file ft2build.h the linkage process stops at this error:
> G++ cannot find -lfreetype
>
> When trying to manually install the latest Freetype2 package, I get an error
> when using the package build commands, both at the "make" and "jam"
>
> Errors:
> -------
> error at make command:
> zbra:/opt/python/freetype2/freetype-2.4.6 # make
> config.mk:25: builds/unix/unix-def.mk: No such file or directory
> config.mk:26: builds/unix/unix-cc.mk: No such file or directory
> make: *** No rule to make target `builds/unix/unix-cc.mk'.  Stop.
>
>
> error at jam command
> zbra:/opt/python/freetype2/freetype-2.4.6 # jam install
> don't know how to make install
> ...found 1 target(s)...
> ...can't find 1 target(s)...
>
>
> Thanks in advance for any hints,
> Claude


------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

 « Return to Thread: Problems installing Matplotlib under SUSE SLES 11 SP1