I am having trouble installing Basemap. I followed the directions in the
README file included in the archive (and posted at http://matplotlib.sourceforge.net/basemap/doc/html/users/installing.html).
After successfully installing the GEOS library (also included), I cd to the
"top level basemap directory" and run the command "python setup.py install."
The install fails, with multiple compile errors related to src/_proj.c.
However, it appears that
lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_a
pi.h also produces errors, so I suspect it may have to do with gcc...
Some relevant information...
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
I am having trouble installing Basemap. I followed the directions in the
README file included in the archive (and posted at http://matplotlib.sourceforge.net/basemap/doc/html/users/installing.html).
After successfully installing the GEOS library (also included), I cd to the
"top level basemap directory" and run the command "python setup.py install."
The install fails, with multiple compile errors related to src/_proj.c.
However, it appears that
lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_a
pi.h also produces errors, so I suspect it may have to do with gcc...
Does that file .h exist at that location?
Typically, it is the first error that I look at -- can you re-send the
output including the first error?
compile options: '-Isrc -I/home/jtamir/lib/python2.5/site-packages/numpy/core/include -I/home/jtamir/include/python2.5 -c'
gcc: src/_proj.c
src/_proj.c:4:20: error: Python.h: No such file or directory
That's the first error -- and it's quite diagnostic. gcc can't find
Python.h.
I see you are doing some slightly non-standard stuff with paths. From
your paths, it appears you have Python installed in
/home/jtamir/bin/python. If this is the case, you should try
"/home/jtamir/bin/python setup.py install" (without the
--prefix=/home/jtamir). That will let distutils attempt to do everything
normally. Otherwise, you'll have to figure out what Python.h isn't in
/home/jtamir/include/python2.5 if you want the above to work.
That's the first error -- and it's quite diagnostic. gcc can't find
Python.h.
Looks like I didn't have the python-dev package installed - I wasn't aware
it was necessary (still relatively new to these things!). Basemap is now
working correctly.