Problems installing Matplotlib under SUSE SLES 11 SP1

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
--
View this message in context: http://old.nabble.com/Problems-installing-Matplotlib-under-SUSE-SLES-11-SP1-tp32468310p32468310.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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

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
matplotlib-users List Signup and Options

--
View this message in context: http://old.nabble.com/Problems-installing-Matplotlib-under-SUSE-SLES-11-SP1-tp32468310p32473135.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

That error means mpl could not find libz, which probably means you
don't have libpng installed either. mpl has a fair number of
dependencies. See

http://matplotlib.sourceforge.net/users/installing.html#build-requirements

On debian systems, there is a brilliant command

apt-get build-dep python-matplotlib

which will install everything you need to build mpl from source.
SUSE is RPM based: is there anything equivalent in rpm yum land?

···

On Thu, Sep 15, 2011 at 11:42 AM, falbriard <claudef@...3779...> wrote:

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

Hi,

On SUSE you have "zypper"

I'm not familiar with SUSE repos, but OpenSUSE repos do have
matplotlib, just type:

"sudo zypper in python-matplolib"

that should install it for you.

-Filipe

···

On Thu, Sep 15, 2011 at 14:22, John Hunter <jdh2358@...287...> wrote:

On Thu, Sep 15, 2011 at 11:42 AM, falbriard <claudef@...3779...> wrote:

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

That error means mpl could not find libz, which probably means you
don't have libpng installed either. mpl has a fair number of
dependencies. See

http://matplotlib.sourceforge.net/users/installing.html#build-requirements

On debian systems, there is a brilliant command

apt-get build-dep python-matplotlib

which will install everything you need to build mpl from source.
SUSE is RPM based: is there anything equivalent in rpm yum land?

------------------------------------------------------------------------------
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
matplotlib-users List Signup and Options

Yes, and it has been included in the docs for the v1.1.0 release.

You will need to install whatever package that would contain the program ‘yum-builddep’ and use the command:

yum-builddep python-matplotlib

I hope that helps!
Ben Root

···

On Thu, Sep 15, 2011 at 1:22 PM, John Hunter <jdh2358@…287…> wrote:

On Thu, Sep 15, 2011 at 11:42 AM, falbriard <claudef@…3779…> wrote:

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

That error means mpl could not find libz, which probably means you

don’t have libpng installed either. mpl has a fair number of

dependencies. See

http://matplotlib.sourceforge.net/users/installing.html#build-requirements

On debian systems, there is a brilliant command

apt-get build-dep python-matplotlib

which will install everything you need to build mpl from source.

SUSE is RPM based: is there anything equivalent in rpm yum land?

And if you want to build mpl from src, eg to track current
development, is there a way in opensuse to automatically install all
the build dependencies for python-matplotlib?

···

On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes <ocefpaf@...287...> wrote:

Hi,

On SUSE you have "zypper"

I'm not familiar with SUSE repos, but OpenSUSE repos do have
matplotlib, just type:

"sudo zypper in python-matplolib"

that should install it for you.

Yes, all you have to do is write a script that install all the
depencies with "sudo zypper in ...". To get a list of the dependencies
in "OpenSUSE names" you can check this spec file and install
everything flagged as "BuildRequires":

https://build.opensuse.org/package/view_file?file=python-matplotlib.spec&package=python-matplotlib&project=home%3Aocefpaf&srcmd5=c5a84278ace03073116b104df3e303e3

However, I recommend non-developer to use a packaged version. I
maintain a weekly git checkout of matplotlib for OpenSUSE in my home
repo here:
http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_11.4/
(for 11.4)
http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_Tumbleweed/
(for Tumbleweed)

and here is a list with all the packages in those repos if some is interested:
https://build.opensuse.org/project/packages?project=home%3Aocefpaf
https://build.opensuse.org/project/packages?project=home%3Aocefpaf%3AETS

-Filipe.

···

On Thu, Sep 15, 2011 at 14:34, John Hunter <jdh2358@...287...> wrote:

On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes > <ocefpaf@...287...> wrote:

Hi,

On SUSE you have "zypper"

I'm not familiar with SUSE repos, but OpenSUSE repos do have
matplotlib, just type:

"sudo zypper in python-matplolib"

that should install it for you.

And if you want to build mpl from src, eg to track current
development, is there a way in opensuse to automatically install all
the build dependencies for python-matplotlib?

Just found this script that emulates the apt build dep:

http://lilypond.org/~janneke/software/suse/zypper-build-dep

-Filipe

···

On Thu, Sep 15, 2011 at 14:48, Filipe Pires Alvarenga Fernandes <ocefpaf@...287...> wrote:

On Thu, Sep 15, 2011 at 14:34, John Hunter <jdh2358@...287...> wrote:

On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes >> <ocefpaf@...287...> wrote:

Hi,

On SUSE you have "zypper"

I'm not familiar with SUSE repos, but OpenSUSE repos do have
matplotlib, just type:

"sudo zypper in python-matplolib"

that should install it for you.

And if you want to build mpl from src, eg to track current
development, is there a way in opensuse to automatically install all
the build dependencies for python-matplotlib?

Yes, all you have to do is write a script that install all the
depencies with "sudo zypper in ...". To get a list of the dependencies
in "OpenSUSE names" you can check this spec file and install
everything flagged as "BuildRequires":

https://build.opensuse.org/package/view_file?file=python-matplotlib.spec&package=python-matplotlib&project=home%3Aocefpaf&srcmd5=c5a84278ace03073116b104df3e303e3

However, I recommend non-developer to use a packaged version. I
maintain a weekly git checkout of matplotlib for OpenSUSE in my home
repo here:
http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_11.4/
(for 11.4)
http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_Tumbleweed/
(for Tumbleweed)

and here is a list with all the packages in those repos if some is interested:
https://build.opensuse.org/project/packages?project=home%3Aocefpaf
https://build.opensuse.org/project/packages?project=home%3Aocefpaf%3AETS

-Filipe.

Thanks friends from the Matplotlib and Freetype forum,

=)

I've succeeded to compile all per-requisites from the source and executed
the python build and install successfully under the SUSE Linux. I've
already executed a few sample cases with a Agg .png render, its working
perfectly under the s390 mainframe.

In summary: Overall, all great support from the community, thanks.
Claude

Benjamin Root-2 wrote:

···

On Thu, Sep 15, 2011 at 1:22 PM, John Hunter <jdh2358@...287...> wrote:

On Thu, Sep 15, 2011 at 11:42 AM, falbriard <claudef@...3779...> wrote:
>
> 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

That error means mpl could not find libz, which probably means you
don't have libpng installed either. mpl has a fair number of
dependencies. See

http://matplotlib.sourceforge.net/users/installing.html#build-requirements

On debian systems, there is a brilliant command

apt-get build-dep python-matplotlib

which will install everything you need to build mpl from source.
SUSE is RPM based: is there anything equivalent in rpm yum land?

Yes, and it has been included in the docs for the v1.1.0 release.

You will need to install whatever package that would contain the program
'yum-builddep' and use the command:

yum-builddep python-matplotlib

I hope that helps!
Ben Root

------------------------------------------------------------------------------
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
matplotlib-users List Signup and Options

--
View this message in context: http://old.nabble.com/Problems-installing-Matplotlib-under-SUSE-SLES-11-SP1-tp32468310p32474894.html
Sent from the matplotlib - users mailing list archive at Nabble.com.