Installation Problem (1.5.2)

Jon McLin jon_mclin at attglobal.net
Tue Nov 30 12:42:14 CET 1999


On my Mandrake 6.0 box, I just upgraded from 1.5.1 to 1.5.2 with a fresh
compile.  Since the 1.5.1 installation placed the binaries in /usr/bin, I used
the configure option "--exec_prefix=/usr"

My procedure:
rm configure.cache
make clean
./configure --exec_prefix=/usr
make OPT=-O0        # optimization off due to compiler problem (else fails
test_long, test_types)
make test
make install

Unfortunately, when I subsequently start the interpreter in /usr/bin, I get:

Built-in exception class not found: EnvironmentError.  Library mismatch?
Warning!  Falling back to string-based exceptions
Python 1.5.2 (#7, Nov 30 1999, 04:22:04)  [GCC pgcc-2.91.66 19990314
(egcs-1.1.2  on linux2

The interpreter in the build directory starts successfully (with ./python):

Python 1.5.2 (#7, Nov 30 1999, 04:22:04)  [GCC pgcc-2.91.66 19990314
(egcs-1.1.2  on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam

If I build and install with the default (to /usr/local/), /usr/local/bin/python
starts successfully.

No python variables are present in my environment.

What am I missing?

Thanks,
Jon






More information about the Python-list mailing list