Hi,

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.
>>> import numpy; import matplotlib
>>> print numpy.__version__, matplotlib.__version__
1.1.1 0.98.3

...And the last few errors when trying to install...
src/_proj.c:3563: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘__pyx_PyInt_AsUnsignedLongLong’
src/_proj.c:3585: error: expected ‘)’ before ‘*’ token
src/_proj.c:3600: error: expected ‘)’ before ‘*’ token
src/_proj.c:3615: error: expected ‘)’ before ‘*’ token
src/_proj.c:3630: error: expected ‘)’ before ‘*’ token
src/_proj.c:3645: error: expected ‘)’ before ‘*’ token
src/_proj.c:3660: error: expected ‘)’ before ‘*’ token
src/_proj.c:3675: error: expected ‘)’ before ‘*’ token
src/_proj.c:3690: error: expected ‘)’ before ‘*’ token
src/_proj.c:3705: error: expected ‘)’ before ‘*’ token
src/_proj.c:3720: error: expected ‘)’ before ‘*’ token
src/_proj.c:3735: error: expected ‘)’ before ‘*’ token
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -Isrc
-I/home/jtamir/lib/python2.5/site-packages/numpy/core/include
-I/home/jtamir/include/python2.5 -c src/_proj.c -o
build/temp.linux-i686-2.5/src/_proj.o" failed with exit status 1

Any idea how to proceed?

Thanks,
Jon

-- 
View this message in context: 
http://www.nabble.com/Basemap-Installation-Errors-tp22915617p22915617.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to