I am not sure what the issue is, but it might be better to build pysparse against a version of python and numpy that is distributed and installed by the package manager for your system. Is there a numpy rpm available?
If for some reason that doesn't work or isn't available, maybe try installing numpy by hand using the system python. You can try different options in a virtualenv if you use that rather than installing into your system directories. Certainly with enthought, it is better to install in a virtualenv rather than messing with the system directories while prototyping.
Googling the actual issue, this may be a 32 versus 64 bit issue.
Maybe using a 32 bit distribution on a 64 bit platform is not the way to go (speculation). Is there not a 64 bit dist? Like it says in the link maybe try passing some of the 32 bit flags to gcc.
Hope this helps in some way.
I'm trying to set up pysparse to run on a 64 bit red hat linux machine
(specifically Rocks v5.2). We have gcc v4.1.2. We also have the
Enthought python distribution v7.1-2 (32 bit). with python 2.7.
I'm having trouble installing pysparse v1.1.1. When I use the command
python setup.py install
I receive this error message:
building 'pysparse.spmatrix' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC -DNUMPY=1
Src/spmatrixmodule.c -o build/temp.linux-x86_64-2.7/Src/spmatrixmodule.o
In file included from
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
error: command 'gcc' failed with exit status 1
I was hoping there might be someone else on the mailing list that
encountered this and might have a solution. Please let me know if there
is any more information I can supply that might be helpful in diagnosing
the trouble. Thanks!
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
Pysparse-users mailing list