[solved] problem compiling php

Discussion in 'General' started by SilentCoder, Feb 12, 2011.

  1. SilentCoder

    SilentCoder New Member

    I get this error when i compile php what should i do?

    My Configurations:
    Code:
    '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-mysql' '--with-litespeed' '--with-config-file-path=/usr/local/lsws/configs' '--with-litespeed' '--with-mysql' '--with-mysqli'
    My Error:
    Code:
    **LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1297554546.3.log
    
    ==============================================
    Start building PHP 5.3.5 with LSAPI
    ==============================================
    Sat Feb 12 23:49:21 UTC 2011
    
    Changing to build directory /usr/local/lsws/phpbuild/php-5.3.5
    Configuring PHP build (2-3 minutes)
    ./configure '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-mysql' '--with-litespeed' '--with-config-file-path=/usr/local/lsws/configs' '--with-litespeed' '--with-mysql' '--with-mysqli'
    creating cache ./config.cache
    checking for Cygwin environment... no
    checking for mingw32 environment... no
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for gcc... no
    checking for cc... no
    configure: error: no acceptable cc found in $PATH
    **ERROR** Could not configure PHP build
    Last edited by a moderator: Feb 14, 2011
  2. NiteWave

    NiteWave Administrator

    gcc is not installed at the box ?
  3. SilentCoder

    SilentCoder New Member

    i get this error now :

    Code:
    checking for strftime... (cached) yes
    checking which regex library to use... php
    checking whether to enable LIBXML support... yes
    checking libxml2 install dir... no
    checking for xml2-config path... 
    configure: error: xml2-config not found. Please check your libxml2 installation.
    **ERROR** Could not configure PHP build
    I installed libxml2
  4. NiteWave

    NiteWave Administrator

  5. SilentCoder

    SilentCoder New Member

    Thank i compiled it :)

    Nice support guide Btw. Really helps

Share This Page