AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  New to Building PHP 5.3 on AIX

    Posted Mon June 13, 2011 08:49 AM

    Originally posted by: ArunG11


    Hi All,

    I am new to AIX, trying to build PHP 5.3 on AIX 6.1. Here are my attempts to install a C compiler

    There was no C compiler available, tried installing gcc got dependency issues while installing and getting a message as below when i invoke gcc.

    exec(): 0509-036 Cannot load program gcc because of the following errors:
    0509-150 Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.
    0509-022 Cannot load module /opt/freeware/lib/libiconv.a(libiconv.so.2).
    0509-026 System error: A file or directory in the path name does not

    I tried with installing from the gcc-4.4.5-1.aix6.1.ppc.rpm file and getting dependency problems again as below
    info is needed by gcc-4.4.5-1
    libgmp.a(libgmp.so.10) is needed by gcc-4.4.5-1
    libiconv.a(libiconv.so.2) is needed by gcc-4.4.5-1
    libmpfr.a(libmpfr.so.4) is needed by gcc-4.4.5-1
    when i tried to resolve each dependency its dependency list goes up.

    I downloaded a XLC compiler package from the IBM site, and i am able to install and the compiler works fine, but to continue with PHP it needs gcc only.

    Please help me on installing the PHP with gcc, correct if i have done something wrong above and from where can i get a complete gcc package without dependency.

    Thanks in Advance
    Arun
    #AIX-Forum


  • 2.  Re: New to Building PHP 5.3 on AIX

    Posted Thu June 16, 2011 11:32 AM

    Originally posted by: TRB


    gcc-4.2.0-3.aix6.1.ppc.rpm,
    available from IBM at:

    ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/

    Has only these requirements (which are satisfied with a base AIX 6.1 system):
    AIX-rpm >= 6.1.0.0
    /bin/sh
    /bin/sh
    libc.a(shr.o)
    libiconv.a(shr4.o)
    libintl.a(libintl.so.1)
    #AIX-Forum


  • 3.  Re: New to Building PHP 5.3 on AIX

    Posted Thu June 16, 2011 11:36 AM

    Originally posted by: TRB


    Opps... I just noticed you need 5.3...
    ...Try from the same site:

    gcc-4.2.0-3.aix5.3.ppc.rpm

    Its requirements are:
    /sbin/install-info
    AIX-rpm >= 5.3.0.0
    /bin/sh
    /bin/sh
    libc.a(shr.o)
    libiconv.a(shr4.o)
    libintl.a(libintl.so.1)
    -tony
    #AIX-Forum


  • 4.  Re: New to Building PHP 5.3 on AIX

    Posted Thu June 16, 2011 02:23 PM

    Originally posted by: shargus


    You might also take a look at this:

    Link: http://www.ibm.com/developerworks/wikis/display/WikiPtype/aixopen
    #AIX-Forum