I am trying to setup a Python environment on my VPS to run a Python script I have written. This is my first time trying something like this. I need to install a couple of libraries so I tried to install pip by uploading the tar file, uncompressing, and running python setup.py install
however I got an error saying that setuptools was not installed, so to install that I uploaded the correct egg and ran sh setuptools-0.6c11-py2.6.egg
however I received an error saying that zlib is not installed so I uploaded the tar file and uncompressed and tried the following:
[nabusman@host zlib-1.2.6]$ ./configure --prefix=/usr/local/zlib
Checking for gcc...
Checking for shared library support...
No shared library support.
Building static library libz.a version 1.2.6 with cc.
Checking for off64_t... No.
Checking for fseeko... No.
Checking for unistd.h... No.
Checking for stdarg.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf().
Checking for snprintf() in stdio.h... No.
WARNING: snprintf() not found, falling back to sprintf(). zlib
can build but will be open to possible buffer-overflow security
vulnerabilities.
Checking for return value of sprintf()... No.
WARNING: apparently sprintf() does not return a value. zlib
can build but will be open to possible string-format security
vulnerabilities.
[nabusman@host zlib-1.2.6]$ make
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -I. -c -o example.o test/example.c
make: execvp: cc: Permission denied
make: *** [example.o] Error 127
[nabusman@host zlib-1.2.6]$ make -n
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -I. -c -o example.o test/example.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o adler32.o adler32.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o crc32.o crc32.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o deflate.o deflate.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o infback.o infback.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o inffast.o inffast.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o inflate.o inflate.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o inftrees.o inftrees.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o trees.o trees.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o zutil.o zutil.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o compress.o compress.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o uncompr.o uncompr.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o gzclose.o gzclose.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o gzlib.o gzlib.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o gzread.o gzread.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o gzwrite.o gzwrite.c
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
(ranlib libz.a || true) >/dev/null 2>&1
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -o example example.o -L. libz.a
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -I. -c -o minigzip.o test/minigzip.c
cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -o minigzip minigzip.o -L. libz.a
[nabusman@host zlib-1.2.6]$
So I'm kind of lost at this point. I don't understand the errors, nor do I really know what is going on. Other than the solution to this problem, is there a couple of books/sites I can read to fill me in on what is happening here?
Note: VPS is running CentOS 5
Thanks.