Install issue

Discussion in 'Install/Configuration' started by dryaf, Jan 10, 2010.

  1. dryaf

    dryaf New Member

    Hi

    I am getting in trouble following the wiki PHP 4/5 with LSAPI Compile/Install How-To since yesterday and I didn't succeed to install. Everything sound fine from step 1 to 4.

    When I tip : ./buildconf --force I get :

    Code:
    Forcing buildconf
    In the fifth step, when I run ./configure '--prefix=/lsphp5' '--with-litespeed' --with-mysql ... in php-5.2.12 folder I get :

    Code:
    ./configure: 9246: checking whether to enable path info checking... : not found
    ./configure: 9246: 5: Bad file descriptor
    ./configure: 9246: :: result: yes: not found
    ./configure: 9246: 6: Bad file descriptor
    ./configure: 1: :: result: no: not found
    ./configure: 1: 6: Bad file descriptor
    ./configure: 1: no: not found
    ./configure: 10856: 5: Bad file descriptor
    ./configure: 10856: :: checking for __res_search: not found
    ./configure: 10856: 6: Bad file descriptor
    ./configure: 10856: checking for __res_search... : not found
    ./configure: 1: ac_fn_c_try_link: not found
    ./configure: 1: 5: Bad file descriptor
    ./configure: 1: :: result: no: not found
    ./configure: 1: 6: Bad file descriptor
    ./configure: 1: no: not found
    ./configure: 11276: 5: Bad file descriptor
    ./configure: 11276: :: checking for res_search in -lresolv: not found
    ./configure: 11276: 6: Bad file descriptor
    ./configure: 11276: checking for res_search in -lresolv... : not found
    ./configure: 11276: ac_fn_c_try_link: not found
    ./configure: 11276: 5: Bad file descriptor
    ./configure: 11276: :: result: no: not found
    ./configure: 11276: 6: Bad file descriptor
    ./configure: 11276: no: not found
    ./configure: 11276: 5: Bad file descriptor
    ./configure: 11276: :: checking for __res_search in -lresolv: not found
    ./configure: 11276: 6: Bad file descriptor
    ./configure: 11276: checking for __res_search in -lresolv... : not found
    ./configure: 11276: ac_fn_c_try_link: not found
    ./configure: 11276: 5: Bad file descriptor
    ./configure: 11276: :: result: no: not found
    ./configure: 11276: 6: Bad file descriptor
    ./configure: 11276: no: not found
    ./configure: 11276: 5: Bad file descriptor
    ./configure: 11276: :: checking for res_search in -lbind: not found
    ./configure: 11276: 6: Bad file descriptor
    ./configure: 11276: checking for res_search in -lbind... : not found
    ...
    ./configure: 11295: 6: Bad file descriptor
    ./configure: 11295: checking for __inet_aton... : not found
    ./configure: 1: ac_fn_c_try_link: not found
    ./configure: 1: 5: Bad file descriptor
    ./configure: 1: :: result: no: not found
    ./configure: 1: 6: Bad file descriptor
    ./configure: 1: no: not found
    ./configure: 11580: 5: Bad file descriptor
    ./configure: 11580: :: checking for inet_aton in -lresolv: not found
    ./configure: 11580: 6: Bad file descriptor
    ./configure: 11580: checking for inet_aton in -lresolv... : not found
    ./configure: 11580: ac_fn_c_try_link: not found
    ./configure: 11580: 5: Bad file descriptor
    ./configure: 11580: :: result: no: not found
    ./configure: 11580: 6: Bad file descriptor
    ./configure: 11580: no: not found
    ./configure: 11580: 5: Bad file descriptor
    ./configure: 11580: :: checking for __inet_aton in -lresolv: not found
    ./configure: 11580: 6: Bad file descriptor
    ./configure: 11580: checking for __inet_aton in -lresolv... : not found
    ./configure: 11580: ac_fn_c_try_link: not found
    ./configure: 11580: 5: Bad file descriptor
    ./configure: 11580: :: result: no: not found
    ./configure: 11580: 6: Bad file descriptor
    ./configure: 11580: no: not found
    ./configure: 11580: 5: Bad file descriptor
    ./configure: 11580: :: checking for inet_aton in -lbind: not found
    ./configure: 11580: 6: Bad file descriptor
    ./configure: 11580: checking for inet_aton in -lbind... : not found
    ./configure: 11580: ac_fn_c_try_link: not found
    ./configure: 11580: 5: Bad file descriptor
    ./configure: 11580: :: result: no: not found
    ./configure: 11580: 6: Bad file descriptor
    ./configure: 11580: no: not found
    ./configure: 11580: 5: Bad file descriptor
    ./configure: 11580: :: checking for __inet_aton in -lbind: not found
    ./configure: 11580: 6: Bad file descriptor
    ./configure: 11580: checking for __inet_aton in -lbind... : not found
    ./configure: 11580: ac_fn_c_try_link: not found
    ./configure: 11580: 5: Bad file descriptor
    ./configure: 11580: :: result: no: not found
    ./configure: 11580: 6: Bad file descriptor
    ./configure: 11580: no: not found
    ./configure: 11587: 5: Bad file descriptor
    ./configure: 11587: :: checking for dn_skipname: not found
    ./configure: 11587: 6: Bad file descriptor
    ./configure: 11587: checking for dn_skipname... : not found
    ./configure: 1: ac_fn_c_try_link: not found
    ./configure: 1: 5: Bad file descriptor
    ./configure: 1: :: result: no: not found
    ./configure: 1: 6: Bad file descriptor
    ./configure: 1: no: not found
    ./configure: 11598: 5: Bad file descriptor
    ./configure: 11598: :: checking for __dn_skipname: not found
    ./configure: 11598: 6: Bad file descriptor
    ./configure: 11598: checking for __dn_skipname... : not found
    ./configure: 1: ac_fn_c_try_link: not found
    ./configure: 1: 5: Bad file descriptor
    ./configure: 1: :: result: no: not found
    ./configure: 1: 6: Bad file descriptor
    ./configure: 1: no: not found
    ./configure: 11883: 5: Bad file descriptor
    ./configure: 11883: :: checking for dn_skipname in -lresolv: not found
    ./configure: 11883: 6: Bad file descriptor
    ./configure: 11883: checking for dn_skipname in -lresolv... : not found
    ./configure: 11883: ac_fn_c_try_link: not found
    ./configure: 11883: 5: Bad file descriptor
    ./configure: 11883: :: result: no: not found
    ./configure: 11883: 6: Bad file descriptor
    ./configure: 11883: no: not found
    ./configure: 11883: 5: Bad file descriptor
    ./configure: 11883: :: checking for __dn_skipname in -lresolv: not found
    ./configure: 11883: 6: Bad file descriptor
    ./configure: 11883: checking for __dn_skipname in -lresolv... : not found
    ./configure: 11883: ac_fn_c_try_link: not found
    ./configure: 11883: 5: Bad file descriptor
    ./configure: 11883: :: result: no: not found
    ./configure: 11883: 6: Bad file descriptor
    ./configure: 11883: no: not found
    ./configure: 11883: 5: Bad file descriptor
    ./configure: 11883: :: checking for dn_skipname in -lbind: not found
    ./configure: 11883: 6: Bad file descriptor
    ./configure: 11883: checking for dn_skipname in -lbind... : not found
    ./configure: 11883: ac_fn_c_try_link: not found
    ./configure: 11883: 5: Bad file descriptor
    ./configure: 11883: :: result: no: not found
    ./configure: 11883: 6: Bad file descriptor
    ./configure: 11883: no: not found
    ./configure: 11883: 5: Bad file descriptor
    ./configure: 11883: :: checking for __dn_skipname in -lbind: not found
    ./configure: 11883: 6: Bad file descriptor
    ./configure: 11883: checking for __dn_skipname in -lbind... : not found
    ./configure: 11883: ac_fn_c_try_link: not found
    ./configure: 11883: 5: Bad file descriptor
    ./configure: 11883: :: result: no: not found
    ./configure: 11883: 6: Bad file descriptor
    ./configure: 11883: no: not found
    ./configure: 11888: 5: Bad file descriptor
    ./configure: 11888: :: checking for ANSI C header files: not found
    ./configure: 11888: 6: Bad file descriptor
    ./configure: 11888: checking for ANSI C header files... : not found
    ./configure: 11987: ac_fn_c_try_compile: not found
    ./configure: 11989: 5: Bad file descriptor
    ./configure: 11989: :: result: no: not found
    ./configure: 11989: 6: Bad file descriptor
    ./configure: 11989: no: not found
    ./configure: 12037: ac_cv_header_dirent_dirent.h: not found
    ./configure: 12037: 5: Bad file descriptor
    ./configure: 12037: :: checking for dirent.h that defines DIR: not found
    ./configure: 12037: 6: Bad file descriptor
    ./configure: 12037: checking for dirent.h that defines DIR... : not found
    eval: 1: Bad substitution
    
    This is the code error I am able to take and copy past to you here. The command make and make install didn't succeed I am running commands as root of course.

    Please assists me, I didn't find any other helping resources and I was working hardly with this since yesterday I installed any dependencies but I don't know what to do now.

    Thank you
  2. mistwang

    mistwang LiteSpeed Staff

    Is that a VPS? maybe some resource issue. Never seen that before.
  3. NiteWave

    NiteWave Administrator

    looks strange error .... which linux/unix platform are you on?
  4. dryaf

    dryaf New Member

    Thanks for your replies both. I am training on my Ubuntu 9.10 x64 machine. I can access Litespeed Admin console, type admin username password and login it work but following to next steps whenever I arrive to this step which is install php it fails always, I installed many dependencies contacting many forums still couldn't find a solution to that. I am testing on my machine to make sure that everything is fine before switching to the VPS. By following the tutorial everything sound fine until I arrive here and always fail I couldn't continue as this step is essential.

    Thank you
    Last edited: Jan 12, 2010
  5. NiteWave

    NiteWave Administrator

    I traced that error, it can be simplified as following script:

    Code:
    ~>cat test.sh
    #! /bin/sh
    exec 5>config.log
    cat >&5 <<_ACEOF
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    
    It was created by $as_me, which was
    generated by GNU Autoconf 2.59.  Invocation command line was
    
    _ACEOF
    echo "$as_me:$LINENO: checking whether to enable path info checking" >&5
    
    the error is come from the last line:
    Code:
    ./configure: 9246: checking whether to enable path info checking... : not found
    ./configure: 9246: 5: Bad file descriptor
    
    can you run above test.sh, to see if any problem?
    also, check config.log under your php-5.2.12 folder, see if any abnormal.
  6. dryaf

    dryaf New Member

    When I run your script sudo sh test.sh I get :
    Code:
    test.sh: 1: /home/dryaf: Permission denied
    In the log file I have :
    Code:
    ..It was created by, which was generated by GNU Autoconf 2.59. Invocation command line was
    
    :: checking whether to enable path info checking
    
    Thank you
  7. NiteWave

    NiteWave Administrator

    chmod +x test.sh
    then
    ./test.sh
  8. dryaf

    dryaf New Member

    I do this command as root using sudo, I get the seem message shown above.
    Code:
    test.sh: 1: /home/dryaf: Permission denied
    I have the php-5.2.12 folder on the /usr/local/lsws/

    Thank you
  9. mistwang

    mistwang LiteSpeed Staff

    looks like a permission issue with /home/dryaf directory. Are you using some special kernel with grsecurity/PaX?

Share This Page