---------- Forwarded message ----------
From: C M <cmpyt...@gmail.com>
Date: Mon, Apr 19, 2010 at 12:58 PM
Subject: Re: [Matplotlib-users] install from svn on Linux not working for me
To: LUK ShunTim <lukshun...@gmail.com>


On Mon, Apr 19, 2010 at 4:30 AM, LUK ShunTim <lukshun...@gmail.com> wrote:
> On 04/19/2010 01:52 PM, C M wrote:
>> My goal is to just get the lastest svn version of matplotlib, or, if
>> not that, just the 0.99 version, up and working on my Linux (Intrepid
>> Ibex) computer.  I checked it matplotlib out from svn fine, and then,
>> as per the webpage, did:
>>
>>> cd matplotlib
>>> python setup.py install
>>
>> and that resulted in a very large amount of errors.  I'll post them at
>> the bottom of this message, since there are many lines.
>>
>> I previously had 0.98.x installed, via the Ubuntu repositories, but I
>> have uninstalled it.  My version is:
>> Linux ubuntu 2.6.27-7-generic #1 SMP Fri Oct 24 06:40:41 UTC 2008
>> x86_64 GNU/Linux
>>
>> Any help is appreciated.  Thank you,
>> Che
>>
>> Errors (starting from a few lines before):
>>
>> creating build/temp.linux-x86_64-2.5/src
>> creating build/temp.linux-x86_64-2.5/CXX
>> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
>> -Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
>> -DPYCXX_ISO_CPP_LIB=1
>> -I/usr/lib/python2.5/site-packages/numpy/core/include
>> -I/usr/local/include -I/usr/include -I.
>> -I/usr/lib/python2.5/site-packages/numpy/core/include/freetype2
>> -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
>> -I/usr/include/python2.5 -c src/ft2font.cpp -o
>> build/temp.linux-x86_64-2.5/src/ft2font.o
>> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
>> for Ada/C/ObjC but not for C++
>> In file included from ./CXX/Extensions.hxx:37,
>>                  from src/ft2font.h:4,
>>                  from src/ft2font.cpp:1:
>> ./CXX/WrapPython.h:58:20: error: Python.h: No such file or directory
>
> You seem not to have the development package of python installed.
> Try "sudo apt-get install python-dev".
>
> Regards,
> ST

Well, I now did that and I still get lots of errors.... The full
output of the terminal is listed below.

Why is this so much more difficult than the website suggests?  Am I
going to need to take this all into account if I want to distribute a
packaged-up version of my application on Linux?  This is the first
time I've run into these problems.

Thanks,
Che

Terminal output:

basedirlist is: ['/usr/local', '/usr']
============================================================================
BUILDING MATPLOTLIB
           matplotlib: 1.0.svn
               python: 2.5.2 (r252:60911, Jan 20 2010, 23:33:04)  [GCC
                       4.3.2]
             platform: linux2

REQUIRED DEPENDENCIES
                numpy: 1.1.1
            freetype2: found, but unknown version (no pkg-config)
                       * WARNING: Could not find 'freetype2' headers in any
                       * of '/usr/local/include', '/usr/include', '.',
                       * '/usr/local/include/freetype2',
                       * '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES
               libpng: found, but unknown version (no pkg-config)
                       * Could not find 'libpng' headers in any of
                       * '/usr/local/include', '/usr/include', '.'
              Tkinter: no
                       * TKAgg requires Tkinter
             wxPython: 2.8.10.1
                       * WxAgg extension not required for wxPython >= 2.8
           pkg-config: looking for pygtk-2.0 gtk+-2.0
                       * Package pygtk-2.0 was not found in the pkg-config
                       * search path. Perhaps you should add the directory
                       * containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
                       * environment variable No package 'pygtk-2.0' found
                       * Package gtk+-2.0 was not found in the pkg-config
                       * search path. Perhaps you should add the directory
                       * containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH
                       * environment variable No package 'gtk+-2.0' found
                       * You may need to install 'dev' package(s) to
                       * provide header files.
                 Gtk+: no
                       * Could not find Gtk+ headers in any of
                       * '/usr/local/include', '/usr/include', '.'
      Mac OS X native: no
                   Qt: no
                  Qt4: no
                Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
             datetime: present, version unknown
             dateutil: 1.4
                 pytz: 2008b

OPTIONAL USETEX DEPENDENCIES
               dvipng: 1.11
          ghostscript: 8.63
                latex: 3.141592
              pdftops: 3.00

[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext',
'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay']
running install
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/include/python2.5 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
In file included from src/ft2font.cpp:1:
src/ft2font.h:13:22: error: ft2build.h: No such file or directory
src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
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:124: error: ‘FT_Face’ does not name a type
src/ft2font.h:125: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:126: error: ‘FT_Vector’ does not name a type
src/ft2font.h:127: error: ‘FT_Error’ does not name a type
src/ft2font.h:128: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:128: error: template argument 1 is invalid
src/ft2font.h:128: error: template argument 2 is invalid
src/ft2font.h:129: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:129: error: template argument 1 is invalid
src/ft2font.h:129: error: template argument 2 is invalid
src/ft2font.h:135: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:98: 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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to