I copied some files over and thought I was doing the right thing but it
turns out I overwrote:

/user/bin/INSTALL
/user/bin/README
/user/bin/PGK-INFO

and I installed all files form the package I was trying to copy over into
the /usr/bin file, but the above are the only ones I over wrote.

I am trying to install (I am a newbie) Numeric-24.2.tar.gz.

Now when I have correctly tar xvzf the file in /usr/bin/, when I try to:
python setup.py build

it throws all kinds of errors below. Any ideas?


[root@ip-123.XXX-XX-XXXNumeric-24.2]# python setup.py build
running build
running build_py
running build_ext
building '_numpy' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -IInclude -IPackages/FFT/Include
-IPackages/RNG/Include -I/usr/include/python2.4 -c Src/_numpymodule.c -o
build/temp.linux-i686-2.4/Src/_numpymodule.o
Src/_numpymodule.c:1:20: error: Python.h: No such file or directory
In file included from Src/_numpymodule.c:4:
Include/Numeric/arrayobject.h:23: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:24: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:29: error: expected specifier-qualifier-list
before 'PyArray_GetItemFunc'
Include/Numeric/arrayobject.h:49: error: expected specifier-qualifier-list
before 'PyObject_HEAD'
Include/Numeric/arrayobject.h:71: error: expected specifier-qualifier-list
before 'Py_intptr_t'
Include/Numeric/arrayobject.h:257: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'PyArray_Type'
Include/Numeric/arrayobject.h:260: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:264: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:265: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:269: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:272: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:275: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:276: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:277: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:279: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:281: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:283: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:285: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:286: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:287: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:288: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:289: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:290: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:291: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:292: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:293: error: expected ')' before '*' token
Include/Numeric/arrayobject.h:294: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:295: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/arrayobject.h:298: error: expected ')' before '*' token
In file included from Src/_numpymodule.c:6:
Include/Numeric/ufuncobject.h:14: error: expected specifier-qualifier-list
before 'PyObject_HEAD'
Include/Numeric/ufuncobject.h:97: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'PyUFunc_Type'
Include/Numeric/ufuncobject.h:101: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Include/Numeric/ufuncobject.h:103: error: expected declaration specifiers or
'...' before 'PyObject'
Include/Numeric/ufuncobject.h:116: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
Src/_numpymodule.c:10: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'numpy_methods'
Src/_numpymodule.c:17: warning: return type defaults to 'int'
Src/_numpymodule.c: In function 'DL_EXPORT':
Src/_numpymodule.c:17: error: expected declaration specifiers before
'init_numpy'
Src/_numpymodule.c:98: error: expected '{' at end of input
error: command 'gcc' failed with exit status 1
[root@ip-123-XXX-XX-XXX Numeric-24.2]#