Compiling Python 2.5.2 on AIX 5.2

M.-A. Lemburg mal at egenix.com
Mon Apr 14 10:01:27 EDT 2008


On 2008-04-13 18:57, Randy.Galbraith at gmail.com wrote:
> I'm investigating the possible use of Mecurial SCM as a replacement
> for CVS.  Mecurial is written in Python.  I have a background in GNU/
> Linux, Solaris, sparc and Perl.  However AIX, powerpc and Python are
> new to me.

On AIX 5.3, Python 2.5.2 should build out of the box using gcc.

We've successfully build Python 2.3, 2.4 and 2.5 on AIX 5.3
using the gcc compiler suite and tools installed from the
AIX Linux Toolbox:

http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/altlic.html

./configure --enable-unicode=ucs2 --with-gcc

For 2.3 and 2.4 you need to patch pyconfig.h after the
configure run:

*** pyconfig.h~ Wed Nov 14 17:22:01 2007
--- pyconfig.h  Wed Nov 14 17:22:01 2007
***************
*** 49,55 ****
   /* #undef HAVE_BROKEN_POLL */

   /* Define if the Posix semaphores do not work on your system */
! /* #undef HAVE_BROKEN_POSIX_SEMAPHORES */

   /* Define if pthread_sigmask() does not work on your system. */
   /* #undef HAVE_BROKEN_PTHREAD_SIGMASK */
--- 49,55 ----
   /* #undef HAVE_BROKEN_POLL */

   /* Define if the Posix semaphores do not work on your system */
! #define HAVE_BROKEN_POSIX_SEMAPHORES 1

   /* Define if pthread_sigmask() does not work on your system. */
   /* #undef HAVE_BROKEN_PTHREAD_SIGMASK */


-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Apr 14 2008)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::


    eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
     D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
            Registered at Amtsgericht Duesseldorf: HRB 46611



More information about the Python-list mailing list