From: Andrew E. <and...@gm...> - 2004-08-05 16:51:05
|
Hi folks, I'm trying to install python onto an AIX 5.1 ml04 box and have tried 2 methods: install of the RPM from the website: rpm -Uvh python-2.2-4.aix4.3.ppc.rpm error: failed dependencies: libdb.a(libdb-3.3.so.0) is needed by python-2.2-4 libexpat.a(libexpat.so.0) is needed by python-2.2-4 libgdbm.a(libgdbm.so.2) is needed by python-2.2-4 libreadline.a(libreadline.so.4) is needed by python-2.2-4 and I don't see the lib* rpms on the toolbox download page method 2 - install gcc and g++ from the toolbox site and compile Ptyhon 2.3.4 from source a) ./configure bombs out with: checking for g++... g++ checking for C++ compiler default output... configure: error: C++ compiler cannot create executables See `config.log' for more details. and config log complains of "collect2: Library libm not found" so, b) ./configure --with-gcc --with-cxx=g++ --with-libm="" --disable-ipv6 at least makes me a Makefile, but wont compile (several autoconf warning) --- make g++ -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Modules/ccpython.o ./Modules/ccpython.cc In file included from Include/Python.h:28, from ./Modules/ccpython.cc:3: /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/include/stdio.h:386: sys/types.h: The file access permissions do not allow the specified action. In file included from Include/Python.h:33, from ./Modules/ccpython.cc:3: /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/include/string.h:39: sys/types.h: The file access permissions do not allow the specified action. In file included from /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/include/math.h:386, from Include/pyport.h:92, from Include/Python.h:48, from ./Modules/ccpython.cc:3: /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/include/stdlib.h:227: sys/wait.h: The file access permissions do not allow the specified action. /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/include/stdlib.h:439: sys/types.h: The file access permissions do not allow the specified action. /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/include/stdlib.h:443: sys/localedef.h: The file access permissions do not allow the specified action. In file included from Include/pyport.h:105, from Include/Python.h:48, from ./Modules/ccpython.cc:3: /usr/include/time.h:157: sys/types.h: The file access permissions do not allow the specified action. In file included from Include/Python.h:48, from ./Modules/ccpython.cc:3: Include/pyport.h:157: sys/stat.h: The file access permissions do not allow the specified action. Include/pyport.h:554: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." In file included from Include/unicodeobject.h:55, from Include/Python.h:74, from ./Modules/ccpython.cc:3: /usr/include/ctype.h:110: sys/localedef.h: The file access permissions do not allow the specified action. In file included from Include/Python.h:135, from ./Modules/ccpython.cc:3: Include/pyfpe.h:8: warning: `\' followed by white space at end of line make: 1254-004 The error code from the last command is 1. Stop. --- and all this is to try and run Mailman on the machine (any chance of a toolbox image?) Any hints? |
From: Philip K W. <pk...@us...> - 2004-08-05 21:49:59
|
aix...@ww... wrote on 08/05/2004 08:50:59 AM: > rpm -Uvh python-2.2-4.aix4.3.ppc.rpm > error: failed dependencies: > libdb.a(libdb-3.3.so.0) is needed by python-2.2-4 > libexpat.a(libexpat.so.0) is needed by python-2.2-4 > libgdbm.a(libgdbm.so.2) is needed by python-2.2-4 > libreadline.a(libreadline.so.4) is needed by python-2.2-4 You need the following: ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/db/db-3.3.11-3.aix4.3.ppc.rpm ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/expat/expat-1.95.2-4.aix5.1.ppc.rpm ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gdbm/gdbm-1.8.0-5.aix4.3.ppc.rpm ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/readline/readline-4.3-1.aix5.1.ppc.rpm In addition, these packages may pull in additional dependencies, but they will at least allow you to proceed. > and config log complains of "collect2: Library libm not found" You are likely missing the bos.adt.libm package, which is shipped with AIX and provides the math library /usr/lib/libm.a. This library is required to build (and run) a lot of software on AIX. > sys/types.h: The file access permissions do not allow the specified action. > sys/wait.h: The file access permissions do not allow the specified action. > sys/localedef.h: The file access permissions do not allow the specified action. These are not good error messages to get while compiling. GCC runs a program called fixincludes after it is installed, which creates a set of include files which have been "sanitized" for use by GCC. I would think that these error messages indicate that the permissions on the files created by the fixincludes script are not correct. Can you verify that the include files installed under /opt/GNUpro have correct permissions that allow access by the user compiling python? You may also want to check the permissions on the system include files in /usr/include to make sure they are correct as well. Running a program like lppchk may help determine if the system include files have incorrect permissions. -- Philip K. Warren pk...@us... Phone: 512.838.8924 T/L 678.8924 |
From: Andrew E. <and...@gm...> - 2004-08-06 14:08:43
|
> You need the following: > ... > > and config log complains of "collect2: Library libm not found" Thanks for that - I got 2.2 installed from RPM then realised the release notes for my app were wrong - it needed the new email stuff from 2.2.2 :-( > created by the fixincludes script are not correct. Can you verify that the > include files installed under /opt/GNUpro have correct permissions that > allow access by the user compiling python? aha - some dirs were missing go+x Ta Nailed that, installed 2.3.4 from source and all ok Thanks Andrew |