'./configure' '--host=i686-redhat-linux-gnu' '--build=i686-redhat-linux-gnu' '--target=i386-redhat-linux' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell' 请问这个怎么解决啊,版本PHP Version 5.2.11
系统centos 5.4 
我在php.ini没有找到extension=php_gd2.dll 
就是别的extension=也没有一个,这是怎么回事啊,请问哪位知道帮个忙

解决方案 »

  1.   

    现在的毛病就是显示 不了png图片jpg和gif显示正常
    <?php
    if(extension_loaded('gd')) {
    echo '你可以使用gd<br>';
    foreach(gd_info() as $cate=>$value)
    echo $cate.': '.$value.'<br>';
    }else
    echo '你没有安装gd扩展';
    ?>
    结果:
    你可以使用gd
    GD Version: bundled (2.0.34 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 
    XBM Support: 1
    JIS-mapped Japanese Font Support: 请问为什么无法浏览png图片呢
      

  2.   

    你还没解决呢?
    yum -y install php-gd 
    好像是这个命令!
      

  3.   

    没用,--without-gd' 这个是不是没有启用gd啊
      

  4.   

     yum -y install php-gd
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: centos.ustc.edu.cn
     * base: centos.ustc.edu.cn
     * extras: centos.ustc.edu.cn
     * updates: centos.ustc.edu.cn
    Setting up Install Process
    Package php-gd-5.2.11-jason.1.i386 already installed and latest version
    Nothing to do
      

  5.   

    PNG Support: 1 表示你可以用 gd 处理 PNG 图片
      

  6.   

    那为什么我用火狐浏览显示这样
    图像 “http://192.168.128.135/xx.png” 因其本身有错无法显示。
      

  7.   

    我也正在為GD庫煩惱中怎麼裝都裝不上去FREETYPELZ怎麼裝的啊...支下招啊
      

  8.   

    yum -y install freetype
      

  9.   

    linux下不比windows。
    ubuntu下,装gd,是
    sudo apt-get install php_gd
      

  10.   

    参考:
    http://school.itzcn.com/special-spid-30.html
    上面有相关信息,希望对楼主有所帮助。
      

  11.   

    怎麼yum -y install freetype 也不行啊
    [root@localhost ~]# yum -y install freetype
    Loading "security" plugin
    Loading "installonlyn" plugin
    Loading "rhnplugin" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    Parsing package install arguments
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    No Match for argument: freetype
    Nothing to do
      

  12.   

    不会是源的问题吧,换一个源试试,
    或者yum update 一下
      

  13.   

    过程可能有问题吧,下面给个地址, 是我以后配置的手记,
    http://xiaogg.fun.gg/article/10-05-27/55.html
    这样配置肯定成功,没有上面的问题