[Solved] Build Matching PHP Problem

Discussion in 'Install/Configuration' started by dlewis23, Mar 8, 2011.

  1. dlewis23

    dlewis23 New Member

    Hello,

    I installed Litespeed on my cPanel server and I went to build a matching PHP build and it stopped with the following error. Does anyone have any idea what I need to do to fix this? I tried looking on google but couldn't come up with a answer.

    Thanks

    Code:
    libtool: link: `/usr/lib64/libltdl.la' is not a valid libtool archive
    make: *** [sapi/litespeed/php] Error 1
    **ERROR** Could not compile PHP
    
  2. webizen

    webizen New Member

    You should run EasyApache before build matching PHP from LSWS.
  3. dlewis23

    dlewis23 New Member

    I tired that, and I still get the same error.
  4. webizen

    webizen New Member

    Please paste a few (3-5) lines prior to the error to see if anything related to it.
  5. dlewis23

    dlewis23 New Member

  6. webizen

    webizen New Member

    try adding libtool-ltdl-devel pkg from command line:

    Code:
    yum install libtool-ltdl-devel
    
  7. dlewis23

    dlewis23 New Member

    I already had that installed and it was the newest version.

    I tried reinstalling and I still get the same error.

    Thanks for your continued help on this.
  8. webizen

    webizen New Member

    please pm your server temporary root access if you like us to further investigate it.
  9. mistwang

    mistwang LiteSpeed Staff

    that's a strange problem. The content of libltdl.la on our test server is
    # rpm -qa | grep ltdl
    libtool-ltdl-devel-1.5.22-7.el5_4
    libtool-ltdl-1.5.22-7.el5_4
  10. dlewis23

    dlewis23 New Member

    PM Sent. Thank You


    Yes very strange.

    If I run the same command, it shows 4 of those libtools on my server.

    rpm -qa | grep ltdl
    libtool-ltdl-1.5.22-7.el5_4
    libtool-ltdl-devel-1.5.22-7.el5_4
    libtool-ltdl-devel-1.5.22-7.el5_4
    libtool-ltdl-1.5.22-7.el5_4
  11. webizen

    webizen New Member

    Server access received. Will let you know what we find out.

    Among the 4 rpms installed, two are for i386, the other two are for x86_64. Ours are for x86_64 only.
  12. dlewis23

    dlewis23 New Member

    Ok Thank you. Will be awaiting your findings.
  13. webizen

    webizen New Member

    your /usr/lib64/libltdl.la is a binary file which is wrong.

    It is supposed to be a text file as shown earlier.


    Please remove the libtool-ltdl-devel-1.5.22-7.el5_4.x86_64 rpm, remove the file if needed and re-install the rpm.
    Code:
    rpm -e libtool-ltdl-devel-1.5.22-7.el5_4.x86_64
    if [ -e /usr/lib64/libltdl.la ]; then rm /usr/lib64/libltdl.la; fi;
    yum install libtool-ltdl-devel-1.5.22-7.el5_4.x86_64
    ls -l /usr/lib64/libltdl.*
    
  14. webizen

    webizen New Member

    The rpm is re-installed. Matching PHP is built successfully.

  15. dlewis23

    dlewis23 New Member

    Thank webizen for working on this. I have litespeed installed with a matching PHP build and its working great so far. Much faster then Apache. :D

Share This Page