Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2006
    Posts
    59

    Curl & GD on PHP5.2.5 = Problem !

    Hello, I have PHP 5.2.5 compiled with GD library working on my webserver,
    yesterday i wanted to add Curl Support, so i had to recompile php.

    I downloaded and installed Curl latest version and tried to recompile PHP :


    './configure' \
    '--prefix=/usr/local/php' \
    '--enable-discard-path' \
    '--disable-force-cgi-redirect' \
    '--enable-shared' \
    '--disable-static' \
    '--disable-debug' \
    '--disable-rpath' \
    '--enable-pic' \
    '--enable-inline-optimization' \
    '--enable-memory-limit' \
    '--with-gd' \
    '--with-png-dir' \
    '--with-jpeg-dir' \
    '--with-config-file-path=/etc' \
    '--with-config-file-scan-dir=/etc/php' \
    '--with-pear=/usr/share/pear' \
    '--enable-magic-quotes' \
    '--enable-debugger' \
    '--enable-track-vars' \
    '--with-exec-dir=/usr/bin' \
    '--with-versioning' \
    '--with-mod_charset' \
    '--with-regex=php' \
    '--enable-track-vars' \
    '--enable-trans-sid' \
    '--enable-safe-mode' \
    '--enable-ctype' \
    '--enable-ftp' \
    '--with-gettext=/usr' \
    '--enable-posix' \
    '--enable-session' \
    '--enable-sysvsem' \
    '--enable-sysvshm' \
    '--with-openssl=/usr' \
    '--without-kerberos' \
    '--with-freetype-dir=/usr' \
    '--with-zlib=/usr' \
    '--with-zlib=/usr' \
    '--with-zlib-dir=/usr' \
    '--with-zlib-dir' \
    '--enable-xslt' \
    '--with-xslt-sablot' \
    '--with-iconv-dir=/usr/local/lib' \
    '--with-mysql-sock=/var/lib/mysql/mysql.sock' \
    '--with-mysql' \
    '--enable-mbstring=all' \
    '--enable-fastcgi' \
    '--enable-discard-path' \
    '--enable-force-cgi-redirect' \
    '--with-curl=/usr/local/curl' \


    I can't get it working, this is the error i get :

    ..

    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>
    checking for png_write_image in -lpng... yes
    If configure fails try --with-xpm-dir=<DIR>
    If configure fails try --with-freetype-dir=<DIR>
    configure: error: GD build test failed. Please check the config.log for
    details.


    I think i'm not the only one who is experiencing this problem, take a look here :
    http://bugs.php.net/bug.php?id=43860


    Why do PHP.net don't give much importance to this BUG ??

    I'm using the same OS : Centos 5

    Can anyone help me ?

  2. #2
    Join Date
    Feb 2004
    Location
    UK
    Posts
    1,431
    Hi

    How did you install Curl ? Was it via Yum ?

    Thanks

  3. #3
    Join Date
    Jan 2006
    Location
    Athens, Greece
    Posts
    1,481
    '--with-gd' \
    '--with-png-dir=/usr/local'
    '--with-jpeg-dir=/usr/local'


    if they are installed on /usr/local

  4. #4
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    You can confirm the path, it could be /usr/lib or /usr/local/lib

    locate libjpeg
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  5. #5
    Join Date
    Dec 2006
    Posts
    59
    Solved using old version (2006) of CURL!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •