installation issue

Friends,
I installed matplotlib in Fedora10 using yum which installed the version 0.98.1 .I could nt upgrade matplotlib using yum.
Hence i downloaded the source and tried to install but i am getting the following error. Kindly write me what is going wrong.

[root@…2582… matplotlib-0.98.5.2]# python setup.py build
In file included from src/ft2font.cpp:1:
src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:77: error: expected ‘,’ or ‘…’ before ‘&’ token
src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:83: error: expected ‘,’ or ‘…’ before ‘&’ token
src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:122: error: ‘FT_Face’ does not name a type
src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:124: error: ‘FT_Vector’ does not name a type
src/ft2font.h:125: error: ‘FT_Error’ does not name a type
src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:126: error: template argument 1 is invalid
src/ft2font.h:126: error: template argument 2 is invalid
src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:127: error: template argument 1 is invalid
src/ft2font.h:127: error: template argument 2 is invalid
src/ft2font.h:133: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:46: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:97: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:97: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:97: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:99: error: ‘FT_Int’ was not declared in this scope
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:958: warning: ‘int _import_array()’ defined but not used
error: command ‘gcc’ failed with exit status 1

Bala

you're probably missing freetype2 headers. Please install all the
needed development packages required to build mpl. Check the
matplotlib documentation about building from source or the packages
used in building the Debian packages (for example).

Regards,

···

On Tue, Apr 28, 2009 at 14:46, Bala subramanian <bala.biophysics@...287...> wrote:

[root@...2582... matplotlib-0.98.5.2]# python setup.py build
In file included from src/ft2font.cpp:1:
src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared

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

Hi,
I think freetype is already installed in Fedora10. When i search yum as follows, yum says freetype is installed already.
[root@…2583…82… cbala]# yum info freetype
Loaded plugins: refresh-packagekit
Installed Packages
Name : freetype
Arch : i386
Version : 2.3.7
Release : 1.fc10
Size : 704 k
Repo : installed
Summary : A free and portable font rendering engine
URL : http://www.freetype.org
License : FTL or GPLv2+
Description: The FreeType engine is a free and portable font rendering engine, developed to provide advanced font support for a variety of
: platforms and environments. FreeType is a library which can open and manages font files as well as efficiently load, hint and
: render individual glyphs. FreeType is not a font server or a complete text-rendering library.

Bala

···

On Tue, Apr 28, 2009 at 3:10 PM, Sandro Tosi <morph@…10…> wrote:

On Tue, Apr 28, 2009 at 14:46, Bala subramanian > > <bala.biophysics@…287…> wrote:

[root@…2582… matplotlib-0.98.5.2]# python setup.py build

In file included from src/ft2font.cpp:1:

src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared

src/ft2font.h:31: error: ‘FT_Int’ has not been declared

src/ft2font.h:31: error: ‘FT_Int’ has not been declared

you’re probably missing freetype2 headers. Please install all the

needed development packages required to build mpl. Check the

matplotlib documentation about building from source or the packages

used in building the Debian packages (for example).

Regards,

Sandro Tosi (aka morph, morpheus, matrixhasu)

My website: http://matrixhasu.altervista.org/

Me at Debian: http://wiki.debian.org/SandroTosi

I said freetype2 *headers*, those files needed for development, not
runtime support. Install the according packages for your distribution.

···

On Tue, Apr 28, 2009 at 15:26, Bala subramanian <bala.biophysics@...287...> wrote:

Hi,
I think freetype is already installed in Fedora10. When i search yum as

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

Hi,
Thank you. I will install the headers and try again.

Meanwhile i would like to know. Suppose if i install the latest mpl that i just downloaded, will it overwrite the mpl version 0.98.1 previously installed with yum ? If not, when i give ipython -pylab, which version will be loaded, I mean which version would be my default.

Bala

···

On Tue, Apr 28, 2009 at 3:32 PM, Sandro Tosi <morph@…10…> wrote:

On Tue, Apr 28, 2009 at 15:26, Bala subramanian > <bala.biophysics@…287…> wrote:

Hi,

I think freetype is already installed in Fedora10. When i search yum as

I said freetype2 headers, those files needed for development, not

runtime support. Install the according packages for your distribution.

Sandro Tosi (aka morph, morpheus, matrixhasu)

My website: http://matrixhasu.altervista.org/

Me at Debian: http://wiki.debian.org/SandroTosi