AIX

AIX

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


#Power
 View Only
  • 1.  Compile PHP on AIX 5.2 Error

    Posted Thu March 17, 2011 04:54 AM

    Originally posted by: dtiger


    Hello,
    I am trying to compile PHP 5.3.5 on AIX 5.2 with Apache 2.2.17 and Mysql 3.23.58
    Apache und Mysql are working fine but if i try to compile PHP i get this error:
    with make:
    sapi/apache2handler/php_functions.lo main/internal_functions.lo -lmysqlclient -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lbz2 -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -o libphp5.la
    grep: can't open /opt/freeware/lib/libintl.la
    sed: Cannot find or open file /opt/freeware/lib/libintl.la.
    libtool: link: `/opt/freeware/lib/libintl.la' is not a valid libtool archive
    make: 1254-004 The error code from the last command is 1.
    with gmake:

    sapi/apache2handler/php_functions.lo main/internal_functions.lo -lmysqlclient -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lbz2 -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -o libphp5.la
    grep: can't open /opt/freeware/lib/libintl.la
    sed: Cannot find or open file /opt/freeware/lib/libintl.la.
    libtool: link: `/opt/freeware/lib/libintl.la' is not a valid libtool archive
    gmake: *** http://libphp5.la Error 1

    ./configure --prefix=/usr/local
    --with-apxs2=/usr/local/apache2/bin/apxs
    --with-config-file-path=/usr/local/apache2/conf
    --with-gd
    --with-zlib-dir=/opt/freeware/lib
    --enable-shared --disable-static
    --with-png
    --with-zlib
    --with-bz2
    --with-xml
    --with-jpeg-dir=/opt/freeware/lib
    --with-png-dir=/opt/freeware/lib
    --with-xpm-dir=/opt/freeware/lib
    --with-freetype-dir=/opt/freeware/lib
    --with-mysql=/usr/local/mysql
    #AIX-Forum


  • 2.  Re: Compile PHP on AIX 5.2 Error

    Posted Thu March 17, 2011 07:46 AM

    Originally posted by: DjRobin69


    Did you search for libintl.la? Maybe it is in a different location?
    #AIX-Forum


  • 3.  Re: Compile PHP on AIX 5.2 Error

    Posted Thu March 17, 2011 08:14 AM

    Originally posted by: dtiger


    yes but it isn't anywere
    #AIX-Forum


  • 4.  Re: Compile PHP on AIX 5.2 Error

    Posted Thu March 17, 2011 08:45 AM

    Originally posted by: DjRobin69


    Try this link
    http://www.perzl.org/aix/
    #AIX-Forum


  • 5.  Re: Compile PHP on AIX 5.2 Error

    Posted Thu March 17, 2011 09:02 AM

    Originally posted by: dtiger


    i have allready try rpm and pware files, but if i use these files, php cant connect to mysql database. Apache, php and mysql are running, but php is unable to use mysql.
    #AIX-Forum


  • 6.  Re: Compile PHP on AIX 5.2 Error

    Posted Tue March 22, 2011 01:19 AM

    Originally posted by: Vincent-Lee


    I have the same problem. I want to compile php 5.2.17 on AIX 6.1.
    I have to install gettext and the problem comes.
    I have to install it with --nodeps option.
    Then the make is not able to find /opt/freeware/bin/libintl.la(but libintl.a is there).
    Then I find a libintl.la on the net. But this time, libintl.h is missing.
    Please solve this problem....
    #AIX-Forum


  • 7.  Re: Compile PHP on AIX 5.2 Error

    Posted Tue May 17, 2011 05:22 AM

    Originally posted by: Montecarlo


    I had the same problem compiling php 5.2-12 on 6100-04-06-1034
    Installing gettext-devel-0.17-1.aix5.1.ppc.rpm allowed the compilation to succeed.
    Simon
    #AIX-Forum


  • 8.  Re: Compile PHP on AIX 5.2 Error

    Posted Thu March 29, 2012 04:09 AM

    Originally posted by: oczkov


    I confirm that installing gettex-devel package solved the issue in my case. I had it when compiling curlpp on AIX 6.1 TL7. The error looked like this (during make phase):

    1. make
    Making all in src
    make[1]: Entering directory `/tmp/rpms_AIX61/curlpp/curlpp-0.7.3/src'
    Making all in utilspp
    make[2]: Entering directory `/tmp/rpms_AIX61/curlpp/curlpp-0.7.3/src/utilspp'
    /bin/sh ../../libtool --silent --tag=CXX --mode=link g++ -g -W -Wall -Werror -I/opt/freeware/include -I/usr/local/include -o libutilspp.la -rpath /usr/local/lib LifetimeLibrary.lo PrivateMembers.lo -lstdc++ -L/opt/freeware/lib -lcurl -L/opt/freeware/lib -L/opt/freeware/lib -Wl,-bmaxdata:0x80000000 -L/opt/freeware/lib -lidn -lssh2 -lssl -lcrypto -llber -lldap -lssl -lcrypto -lz
    grep: can't open /opt/freeware/lib/libintl.la
    sed: Cannot find or open file /opt/freeware/lib/libintl.la.
    libtool: link: `/opt/freeware/lib/libintl.la' is not a valid libtool archive
    make[2]: *** http://libutilspp.la Error 1
    make[2]: Leaving directory `/tmp/rpms_AIX61/curlpp/curlpp-0.7.3/src/utilspp'
    make[1]: *** all-recursive Error 1
    make[1]: Leaving directory `/tmp/rpms_AIX61/curlpp/curlpp-0.7.3/src'
    make: *** all-recursive Error 1
    #
    For getting the required rpm(s) go to http://www.perzl.org/aix/index.php?n=Main.HomePage or http://www.oss4aix.org/download/RPMS/

    Regards,
    #AIX-Forum