Problems with Install

Ben Ocean zope at thewebsons.com
Sat Jan 27 08:16:20 EST 2001


Unfortunately I need to install python 1.5.2 from source because I need to 
configure it with multithreads. Equally unfortunately, I don't have the 
luxury of time to learn C right this red-hot second. But I need to get this 
installation working!!! I've run into this error while running *make*. D 
said it was due to an error in the myreadline.o So I re-ran make and copied 
what printed to screen. The myreadline.o stuff doesn't appear until the 
last few lines:

thor:/apache/vhosts/Python-1.5.2# make
(cd Modules; make -f Makefile.pre Makefile)
make[1]: Entering directory `/apache/vhosts/Python-1.5.2/Modules'
make[1]: `Makefile' is up to date.
make[1]: Leaving directory `/apache/vhosts/Python-1.5.2/Modules'
making Makefile in subdirectory .
make[1]: Entering directory `/apache/vhosts/Python-1.5.2'
make[1]: `Makefile' is up to date.
make[1]: Leaving directory `/apache/vhosts/Python-1.5.2'
making Makefile in subdirectory Parser
make[1]: Entering directory `/apache/vhosts/Python-1.5.2/Parser'
make[1]: `Makefile' is up to date.
make[1]: Leaving directory `/apache/vhosts/Python-1.5.2/Parser'
making Makefile in subdirectory Objects
make[1]: Entering directory `/apache/vhosts/Python-1.5.2/Objects'
make[1]: `Makefile' is up to date.
make[1]: Leaving directory `/apache/vhosts/Python-1.5.2/Objects'
making Makefile in subdirectory Python
make[1]: Entering directory `/apache/vhosts/Python-1.5.2/Python'
make[1]: `Makefile' is up to date.
make[1]: Leaving directory `/apache/vhosts/Python-1.5.2/Python'
making Makefile in subdirectory Modules
make[1]: Entering directory `/apache/vhosts/Python-1.5.2/Modules'
make[1]: `Makefile' is up to date.
make[1]: Leaving directory `/apache/vhosts/Python-1.5.2/Modules'
(rm -f Modules/hassignal; cd Modules; make hassignal)
make[1]: Entering directory `/apache/vhosts/Python-1.5.2/Modules'
rm -f hassignal
for i in regexmodule.o regexpr.o  pcremodule.o 
pypcre.o  posixmodule.o  signalmo
dule.o  arraymodule.o  cmathmodule.o  mathmodule.o  stropmodule.o 
structmodule.
o  timemodule.o  operator.o  fcntlmodule.o  pwdmodule.o  grpmodule.o 
selectmodu
le.o  socketmodule.o  errnomodule.o  md5module.o 
md5c.o  shamodule.o  rotormodul
e.o  newmodule.o  binascii.o  parsermodule.o  cStringIO.o  cPickle.o 
config.o ge
tpath.o main.o getbuildinfo.o; do \
             if test "$i" = "signalmodule.o"; then \
                echo yes >hassignal; break; \
             fi; \
         done
make[1]: Leaving directory `/apache/vhosts/Python-1.5.2/Modules'
cd Parser ; make OPT="-g -O2" VERSION="1.5" \
                 prefix="/usr/local" exec_prefix="/usr/local" all
make[1]: Entering directory `/apache/vhosts/Python-1.5.2/Parser'
gcc -g -O2 -I./../Include -I.. -DHAVE_CONFIG_H   -c myreadline.c -o 
myreadline.o
In file included from /usr/include/errno.h:36,
                  from ../Include/Python.h:59,
                  from myreadline.c:42:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make[1]: *** [myreadline.o] Error 1
make[1]: Leaving directory `/apache/vhosts/Python-1.5.2/Parser'
make: *** [Parser] Error 2

Just for fun I tried installing an rpm as you mentioned. The strangest 
thing happened. When I got to the actual installation command, the darn 
thing just vanished into thin air! running a whereis for python turns up 
*nothing*! Oh, geez, what'd I do wrong?
TIA,
BenO


At 01:30 PM 1/26/2001 -0500, you wrote:
>On Fri, Jan 26, 2001 at 08:36:51AM -0800, Ben Ocean wrote:
>| Hi;
>| I'm at a loss to understand why I can't get python working. I had it
>| working before I moved my server. I re-installed it from src and typed
>| *python* and got a prompt. I was ecstatic. So I went to re-install Zope and
>| that installation failed. So I typed in *python* again and got
>| bash: python: command not found
>
>It's not in the path.
>
>| How is that? It was just there! Where did it go? So I ripped out everything
>| that had to do with python on my server and started over. When I got to
>| *make* I got this error:
>|
>| make[1]: *** [myreadline.o] Error 1
>| make[1]: Leaving directory `/apache/vhosts/Python-1.5.2/Parser'
>| make: *** [Parser] Error 2
>
>The actual error is above this point.  There is some problem building
>myreadline.o.  Maybe a compiler error or a linker error.  Once you are
>at this point, scroll up in your term and find where gcc gave the
>actual error message.  (make doesn't know what went wrong, only that
>gcc said something went wrong)
>
>|
>| It repeated with *make install* What am I missing? Also, I may have made a
>| bad mistake in deleting everything python in my box, please advise. Running
>| RedHat 6.2.
>| TIA,BenO
>|
>
>I'd advise along the same lines as David : use the rpms.  If you want
>the lastest and greatest, get the srpm.  Then:
>
>$ rpm -ta <name>.srpm
>
>This will create <name>.i386.rpm in /usr/src/redhat/RPMS/i386
>
>(by default, if you are using an x86 system)
>
>then
>
># rpm -Uvh /usr/src/redhat/RPMS/i386/<name>.i386.rpm
>
>
>If you really want to build from the sources, it is a good idea to
>learn C (or at least the C build environment) so that you will
>understand the error messages you get.  Packages are nice because
>non-programmers don't have to deal with build/compilation errors.
>
>-D
>
>
>--
>http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list