Can't get GD2 to be recognized

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dustin

    Can't get GD2 to be recognized

    Hi all,

    I have the gd and gd2 libraries compiled into my php install, but the
    jpeg functions do not exist. I found out this is because I don't have
    jpeg support compiled in specifically. So, I installed the jpeg
    libraries from ftp://ftp.uu.net/graphics/jpeg/. When configuring, I
    used the --enable-shared flag. Then I added the --with-jpeg-dir=/usr/
    local/lib to the php configure command. When I was all done, I was
    still getting the jpeg functions do not exist errors. I have no idea
    why. Any ideas would be greatly appreciated.

    Note: I have pasted pertinent sections of my phpinfo() below.





    PHP Version 5.2.0

    System Linux 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:14:12 EST 2006 i686
    Build Date Apr 16 2007 11:47:04
    Configure Command './configure' '--prefix=/usr' '--disable-debug' '--
    with-config-file-path=/etc/httpd/conf.d' '--with-apxs2=/usr/sbin/apxs'
    '--with-mysql=/usr/local/mysql' '--with-zlib' '--enable-gd-native-ttf'
    '--enable-pic' '--with-gmp' '--with-ncurses' '--enable-shmop' '--
    enable-track-vars' '--with-ttf' '--with-gettext' '--enable-mbstring'
    '--with-gd' '--with-gd2' '--with-jpeg-dir=/usr/local/lib' '--enable-
    safe-mode' '--enable-xml' '--enable-cli'
    Server API Apache 2.0 Handler
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /etc/php.ini
    PHP API 20041225
    PHP Extension 20060613
    Zend Extension 220060519
    Debug Build no
    Thread Safety disabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams php, file, data, http, ftp, compress.zlib, zip
    Registered Stream Socket Transports tcp, udp, unix, udg
    Registered Stream Filters string.rot13, string.toupper,
    string.tolower, string.strip_ta gs, convert.*, consumed,
    convert.iconv.* , zlib.*

    gd
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with TTF library
    FreeType Version 1.4
    GIF Read Support enabled
    GIF Create Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled

Working...