[Distutils] distutils+numpy problem on AIX
Mike Hammill
mike@pdc.kth.se
Tue, 18 Apr 2000 18:52:44 +0200
Hello,
Does anyone know why I might get the following messages when trying to use
distutils 0.8 to install NumPy on an AIX machine?
unable to execute ./ld_so_aix: No such file or directory
error: command './ld_so_aix' failed with exit status 1
Background:
My goal is to get Python 1.5.2 running with NumPy for the users of our SP at
the Royal Institute of Technology. I recently downloaded NumPy from LLNL:
LLNLDistribution11.tgz and
Numerical-14.tar.gz
According to <ftp://ftp-icf.llnl.gov/pub/python/README.html> one is
supposed to replace the Numerical part of the 11 distribution with the 14 one.
I did this and then went to the Numerical subdirectory to install it.
Following the suggestion in the README.txt in the distribution of
Distutils-0.8, I replaced the setup.py file in Numerical with the one that
comes in the examples directory of Distutils-0.8. When I ran python (1.5.2)
with this, I get the messages below. Does anyone have any idea what might be
going wrong?
Notes: Python 1.5.2 seems to test fine on our SP (AIX 4.3). I installed it in
a non-standard place (my directory) for testing.
python setup.py install
running install
running build
running build_py
not copying Lib/ArrayPrinter.py (output up-to-date)
not copying Lib/FFT.py (output up-to-date)
not copying Lib/LinearAlgebra.py (output up-to-date)
not copying Lib/MLab.py (output up-to-date)
not copying Lib/Matrix.py (output up-to-date)
not copying Lib/Numeric.py (output up-to-date)
not copying Lib/Precision.py (output up-to-date)
not copying Lib/RandomArray.py (output up-to-date)
not copying Lib/UserArray.py (output up-to-date)
running build_ext
building '_numpy' extension
skipping Src/_numpymodule.c (build/temp.aix3-002005909400/Src/_numpymodule.o
up-to-date)
skipping Src/arrayobject.c (build/temp.aix3-002005909400/Src/arrayobject.o
up-to-date)
skipping Src/ufuncobject.c (build/temp.aix3-002005909400/Src/ufuncobject.o
up-to-date)
./ld_so_aix cc build/temp.aix3-002005909400/Src/_numpymodule.o
build/temp.aix3-002005909400/Src/arrayobject.o build/temp.aix3-002005909400/Src
/ufuncobject.o -o build/lib.aix3-002005909400/_numpy.so
unable to execute ./ld_so_aix: No such file or directory
error: command './ld_so_aix' failed with exit status 1
By the way, after this failure, I tried to just install NumPy strickly from
LLNL's "11" distribution, using makethis.py. I get a different, but similar
message,
python makethis.py
Listing . ...
Listing ./Demo ...
Compiling ./Demo/life.py ...
Compiling ./Demo/mandelbrot.py ...
Compiling ./Demo/sieve.py ...
Listing ./Doc ...
Listing ./Include ...
Listing ./Lib ...
Compiling ./Lib/ArrayPrinter.py ...
Compiling ./Lib/FFT.py ...
Compiling ./Lib/LinearAlgebra.py ...
Compiling ./Lib/MLab.py ...
Compiling ./Lib/Matrix.py ...
Compiling ./Lib/Numeric.py ...
Compiling ./Lib/Precision.py ...
Compiling ./Lib/RandomArray.py ...
Compiling ./Lib/UserArray.py ...
Listing ./Src ...
Listing ./Test ...
Compiling ./Test/test_all.py ...
Compiling ./installthis.py ...
Compiling ./makethis.py ...
rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
make[1]: Entering directory `/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/p
ymore/numpy/LLNLDistribution11/Numer
sed -n \
-e '1s/.*/1i\\/p' \
-e '2s%.*%# Generated automatically from Makefile.pre.in by sedscript.%p' \
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
-e '/^LDLAST=/s/^LDLAST=[ ]*\(.*\)/s%@LDLAST[@]%\1%/p' \
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
-e '/^SGI_ABI=/s/^SGI_ABI=[ ]*\(.*\)/s%@SGI_ABI[@]%\1%/p' \
-e '/^LINKFORSHARED=/s/^LINKFORSHARED=[ ]*\(.*\)/s%@LINKFORSHARED[@]%\1
%/p' \
-e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \
-e '/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/p'
\
/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/python/lib/python1.5/config/M
akefile >sedscript
echo "/^#@SET_CCC@/d" >>sedscript
echo "/^installdir=/s%=.*%= /afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix4
3/python%" >>sedscript
echo "/^exec_installdir=/s%=.*%=/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix4
3/python%" >>sedscript
echo "/^srcdir=/s%=.*%= .%" >>sedscript
echo "/^VPATH=/s%=.*%= .%" >>sedscript
echo "/^LINKPATH=/s%=.*%= %" >>sedscript
echo "/^BASELIB=/s%=.*%= %" >>sedscript
echo "/^BASESETUP=/s%=.*%= %" >>sedscript
sed -f sedscript ./Makefile.pre.in >Makefile.pre
/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/python/lib/python1.5/config/ma
kesetup \
-m Makefile.pre -c /afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/py
thon/lib/python1.5/config/config.c.in /afs/pdc.kth.se/home/m/mike/Python/.bin/
rs_aix43/python/lib/python1.5/config/Setup.thread /afs/pdc.kth.se/home/mhon/.bi
n/rs_aix43/python/lib/python1.5/config/Setup.local
/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/python/l1.5/config/Setup
make -f Makefile do-it-again
make[2]: Entering directory `/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/p
ymore/numpy/LLNLDistribution11/Numer
/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/python/lib/python1.5/config/ma
kesetup \
-m Makefile.pre -c /afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/py
thon/lib/python1.5/config/config.c.in /afs/pdc.kth.se/home/m/mike/Python/.bin/
rs_aix43/python/lib/python1.5/config/Setup.thread /afs/pdc.kth.se/home/mhon/.bi
n/rs_aix43/python/lib/python1.5/config/Setup.local
/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/python/l1.5/config/Setup
make[2]: Leaving directory `/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/py
more/numpy/LLNLDistribution11/Numeri
make[1]: Leaving directory `/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/py
more/numpy/LLNLDistribution11/Numeri
cc -I./Include -O -I/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/python/i
nclude/python1.5 -I/afs/pdc.kth.se/he/Python/.bin/rs_aix43/python/include/pytho
n1.5 -DHAVE_CONFIG_H -c ./Src/_numpymodule.c
cc -I./Include -O -I/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/python/i
nclude/python1.5 -I/afs/pdc.kth.se/he/Python/.bin/rs_aix43/python/include/pytho
n1.5 -DHAVE_CONFIG_H -c ./Src/arrayobject.c
"./Src/arrayobject.c", line 1539.10: 1506-342 (W) "/*" detected in comment.
cc -I./Include -O -I/afs/pdc.kth.se/home/m/mike/Python/.bin/rs_aix43/python/i
nclude/python1.5 -I/afs/pdc.kth.se/he/Python/.bin/rs_aix43/python/include/pytho
n1.5 -DHAVE_CONFIG_H -c ./Src/ufuncobject.c
./ld_so_aix cc _numpymodule.o arrayobject.o ufuncobject.o -o _numpymodule.so
make: ./ld_so_aix: Command not found
make: *** [_numpymodule.so] Error 127
Many thanks,
Mike Hammill
<mike@pdc.kth.se>