On 06/07/2010 01:15 PM, Robert Sudwarts wrote: > Hi, > > Hoping someone can help with this... I'm trying to install in a virtual > environment created with "--no-site-packages" > I've followed all instructions re cleaning the existing .matplotlib > cache/directory and deleted .egg files etc > > (virtualenv) ... $ easy_install matplotlib -- gives me an error: > "command 'gcc' failed with exit status 1" > > The existing components (note: all from within the virtualenv): > > $ python --version --> 2.6.4 > > $ python -c 'import numpy; print numpy.__version__' --> 1.4.1 > > $ gcc --version --> 4.4.1 > > $ uname -a --> Linux HP-desktop 2.6.31-22-generic-pae #60-Ubuntu > SMP Thu May 27 01:40:15 UTC 2010 i686 GNU/Linux > > (I'm running this on Ubuntu Karmic Koala -- please note that installing > from the Synaptic Package Manager gives me a working version which runs > correctly and as expected, using ipython -pylab etc) > > This may be a question of downloading a version other than v0.99.3 but > in that case I'd not be sure which one to use(!) > I'd be really grateful for any assistance you can give....
It looks like the problem is that you are missing the -dev packages for various libraries. In your output below, wherever you see something about a missing header, it means you need to install a corresponding -dev package. Eric > > > > (and finally the output/error from "easy_install matplotlib") > > Searching for matplotlib > Reading http://pypi.python.org/simple/matplotlib/ > Reading http://matplotlib.sourceforge.net > Reading > http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 > <http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474> > Reading > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 > <https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194> > Reading http://sourceforge.net/project/showfiles.php?group_id=80706 > Reading > https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/ > Reading > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 > <https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474> > Best match: matplotlib 0.99.3 > Downloading > http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/matplotlib-0.99.3.tar.gz/download > Processing download > Running matplotlib-0.99.3/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-7FYGk8/matplotlib-0.99.3/egg-dist-tmp-7gnrbR > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 0.99.3 > python: 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC > 4.4.1] > platform: linux2 > > REQUIRED DEPENDENCIES > numpy: 1.4.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 > * Using default library and include directories for > * Tcl and Tk because a Tk window failed to open. > * You may need to define DISPLAY for Tk to work so > * that setup can determine where your libraries are > * located. Tkinter present, but header files > are not > * found. You may need to install development > * packages. > wxPython: no > * wxPython not found > Gtk+: no > * Building for Gtk+ requires pygtk; you must be > able > * to "import gtk" in your build/install environment > Mac OS X native: no > Qt: no > Qt4: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: matplotlib will provide > pytz: matplotlib will provide > adding pytz > > OPTIONAL USETEX DEPENDENCIES > dvipng: no > ghostscript: 8.70 > latex: no > pdftops: 0.12.0 > > [Edit setup.cfg to suppress the above messages] > ============================================================================ > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', > 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', > 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', > 'matplotlib.numerix.ma <http://matplotlib.numerix.ma>', > 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', > 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'pytz', 'dateutil', > 'dateutil/zoneinfo'] > warning: no files found matching 'MANIFEST' > warning: no files found matching 'lib/mpl_toolkits' > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for > Ada/C/ObjC but not for C++ > In file included from /usr/include/c++/4.4/ext/hash_map:59, > from ./CXX/Extensions.hxx:68, > from src/ft2font.h:4, > from src/ft2font.cpp:1: > /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning > This file includes at least one deprecated or antiquated header which > may be removed without further notice at a future date. Please use a > non-deprecated interface with equivalent functionality instead. For a > listing of replacement headers and interfaces, consult the file > backward_warning.h. To disable this warning use -Wno-deprecated. > 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: ISO C++ forbids declaration of ‘FT_Face’ with > no type > src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with > no type > src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘&’ token > 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: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 > /home/robertsudwarts/virtualenvs/sqa/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187: > warning: ‘int _import_array()’ defined but not used > error: Setup script exited with error: command 'gcc' failed with exit > status 1 > > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users