<span style>Hi there,</span><div style><br></div><div style>I've been struggling with installing PyMVPA on a Linux server for hours now and I just can't find the problem. When installing using </div><div style><br>
</div><div style>python setup.py build_ext</div><div style><br></div><div style>I get the following error, when building the 'mvpa.clfs.libsvmc._svmc' extension:</div><div style><br></div><div style><div>g++: build/src.linux-x86_64-2.7/mvpa/clfs/libsvmc/svmc_wrap.cpp</div>
<div>build/src.linux-x86_64-2.7/mvpa/clfs/libsvmc/svmc_wrap.cpp:3051:31: fatal error: numpy/arrayobject.h: No such file or directory</div><div>compilation terminated.</div><div>build/src.linux-x86_64-2.7/mvpa/clfs/libsvmc/svmc_wrap.cpp:3051:31: fatal error: numpy/arrayobject.h: No such file or directory</div>
<div>compilation terminated.</div><div>error: Command "g++ -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/numpy -I3rd/libsvm -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c build/src.linux-x86_64-2.7/mvpa/clfs/libsvmc/svmc_wrap.cpp -o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/mvpa/clfs/libsvmc/svmc_wrap.o" failed with exit status 1</div>
</div><div style><br></div><div style>I have installed the latest versions of SWIG and NumPy. I can import numpy in python without any problems. It is installed in</div><div style>/usr/lib64/python2.7/site-packages/numpy</div>
<div style><br></div><div style>I have tried copying arrayobjects.h from /usr/lib64/python2.7/site-packages/numpy/arrayobjects.h to /usr/lib64/python2.7/site-packages/numpy/numpy/arrayobjects.h, then the compiler finds it, but I get an even larger list of out-of-scope-errors, starting off with:</div>
<div style><div>/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:5:2: error: #error You should not include this</div></div><div style><br></div><div style>When using</div><div style><br></div><div style>
python setup.py build_ext --with-libsvm</div><div style><br></div><div style>I get similar errors</div><div style><br></div><div style>It would make my life a lot easier if I could run my scripts on this server, so I'm desperate for any tips/help!</div>
<div style><br></div><div style>Thanks in advance,</div><div style>Cheers,</div><div style>Gilles de Hollander</div><div style>Graduate Student University of Amsterdam</div>