How to Compile Mssql & Mysql in PHP

Discussion in 'PHP' started by SilentCoder, Oct 3, 2010.

  1. SilentCoder

    SilentCoder New Member

    How to Compile Mssql & Mysql in PHP [RESOLVED]

    I want to compile mssql and mysql in php 5.3.3 because i want mssql and mysql connections how do i do it?
    Last edited: Oct 24, 2010
  2. NiteWave

    NiteWave Administrator

  3. SilentCoder

    SilentCoder New Member

    Should i install FreeTDS then compile php with mssql?
  4. NiteWave

    NiteWave Administrator

    you need install the develop package first. in CentOS, it's:
    freetds-devel.x86_64 : Header files, libraries and development documentation for freetds

    in debian, may need search the package first:
    aptitude search freetds
    the install it.
  5. SilentCoder

    SilentCoder New Member

    Error i get while compiling PHP.ini. I know its missing libxml2 and even after i downloaded it it still gives same error.

    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
  6. NiteWave

    NiteWave Administrator

    on CentOS,
    will resolve the issue.

    not sure on debian, you may need "aptitude search libxml2" first
  7. SilentCoder

    SilentCoder New Member

    Now i get this error:


    checking for T1lib support... no
    checking whether to enable truetype string function in GD... no
    checking whether to enable JIS-mapped Japanese font support in GD... no
    checking for fabsf... yes
    checking for floorf... yes
    If configure fails try --with-jpeg-dir=<DIR>
    configure: error: libpng.(a|so) not found.
    **ERROR** Could not configure PHP build
  8. NiteWave

    NiteWave Administrator

    same way to resolve these errors. in CentOS,
  9. SilentCoder

    SilentCoder New Member

    i changed my Os to CentOS and i get this error while compiling

    Code:
    Changing to build directory /usr/local/lsws/phpbuild/php-5.3.3
    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-litespeed'
    loading 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
  10. SilentCoder

    SilentCoder New Member

    Compiling Problem Resolved. Thank You.
    Last edited: Oct 10, 2010

Share This Page