LINUX不熟,不是应该重新编译PHP的吗?在编译的时候加--with

解决方案 »

  1.   

    执行./configure 的时候没有相应的提示吗?
      

  2.   

    要激活 GD 支持,配置 PHP 时加上 --with-gd[=DIR],DIR 是 GD 的基本安装目录。要使用推荐的绑定的 GD 库版本(首次绑定于 PHP 4.3.0),使用 --with-gd。要编译 GD 库,需要libpng 和 libjpeg。 
      

  3.   

    --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local
    ========================
    你前面都有具体指定路径。在gd时是否要指定?--with-gd-dir=/usr/local还有,在加上 -with-libxml-dir=/usr/local/lib 试试我很想知道。因为我以前也不 成功, 后来不知道怎么搞的就好了。现在我想知道。希望你解决了说一下你是怎样解决的。谢
      

  4.   

    GD库已经装上了,PHPINFO()只显示GD
    GD Support  enabled  
    GD Version  2.0 or higher  
    GIF Read Support  enabled  
    GIF Create Support  enabled  
    PNG Support  enabled  
    WBMP Support  enabled  没jpeg和freetype页面显示验证码图片页面出错
    Call to undefined function imagettftext()有谁知道怎样解决
      

  5.   

    你还一个参数,那就是 freetype 。我开始的时候,也是没有freetype 。后来装了就好了下面是我编译的部分参数及路径。你把他对应的加到你那去看看吧--with-jpeg-dir=/usr/local/lib
    --with-freetype-dir=/usr/local/libps:关掉apache,重新编译php