所谓的安装好了就是在phpinfo中能看到gd相关的信息了吧,这样应该就可以使用gd库了啊绑定是什么概念?

解决方案 »

  1.   

    apt-get 安装需要你的php也是apt-get安装的,apt-get install php5-gd,如果php是编译安装的,那没办法了,只能重新编译一次php了
      

  2.   

    要激活   GD   支持,配置   PHP   时加上   --with-gd[=DIR],DIR   是   GD   的基本安装目录。要使用推荐的绑定的   GD   库版本(首次绑定于   PHP   4.3.0),使用   --with-gd君邻天下,我是用你所说的apt-get install php5-gd安装的,所以用的并不是绑定的GD库!问题是我需要的绑定的GD库啊....
    你所指的重新编译一次是?能不能具体点?
      

  3.   

    你的php是怎么安装的?  apt-get install php5 还是 ./configure  make make install ?
    前者的可以直接apt-get install 安装 gd ,后者就要删掉之前的php 重新configure 加上 --with-gd,
    还有安装好以后要重新启动apache
      

  4.   

    还有,php里边的gd函数库有一些是依赖freetype的, 也要安装freetype
      

  5.   

    我是用apt-get install php5安装的,直接安装不是绑定的GD库吧,imagerotate函数 用不了啊
      

  6.   

    我遇到的情况跟http://www.erya.cn/archives/200606/86.html里面一样,但它里面的解决方案执行到第三步就不行了,产了了好多依赖,如apache的一些东西
      

  7.   

    我使用的是ubuntu,安装gd没有什么错误, 你phpinfo看一下, 看看gd那里显示的信息, 有没有gd, gd的版本, 有没有freetype
      

  8.   

    安装GD,我也成功了,那些图片函数我也可以用,但有些函数如imagerotate要在绑定的GD库下才能用
    你仔细看下phpinfo里面关于GD的信息,其中那个GD Version是bundled (2.0.28 compatible)才是绑定的,如果是2.0 or higher就不是了
    你的GD库是什么情况?绑定的?
      

  9.   

    As you are probably aware, PHP has bundled an upgraded GD library for some time, which supports image rotation, convolution and alpha blending. The package php5-gd still uses Boutell's version of the library, which restricts the abilities of the PHP module.It would be great if future versions of php5-gd can be built against PHP's GD library in order that the GD module can be used to its greatest extent.这是网上找到的, 现在算是一个bug吧,再等两天ubuntu7.10出来不知道会不会修正
      

  10.   

    喔,非常感谢!但我用的是debian的操作系统,不是ubuntu!debian也有这样的bug吗?
      

  11.   

    ubuntu是从debian上过来的, 应该也算是继承了吧 
      

  12.   

    另外手册里边有老外自己写了imagerotate函数, 可以参考一下拿来用
      

  13.   

    恩,刚我同事也说在debian上看到这是个bug,那只能是用别的办法安装了
      

  14.   

    又帮你找到点资料,看看吧
    http://blog.madtech.cx/2006/12/08/debian-etch-libapache2-mod-php5-with-bundled-libgd-gdlib/