phpinfo 中--without-gd如何解决

ganggang4321 2010-01-30 10:10:09
'./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=也没有一个,这是怎么回事啊,请问哪位知道帮个忙
...全文
421 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
ganggang4321 2010-06-04
  • 打赏
  • 举报
回复
过程可能有问题吧,下面给个地址, 是我以后配置的手记,
http://xiaogg.fun.gg/article/10-05-27/55.html
这样配置肯定成功,没有上面的问题
ganggang4321 2010-02-01
  • 打赏
  • 举报
回复
不会是源的问题吧,换一个源试试,
或者yum update 一下
ganggang4321 2010-01-30
  • 打赏
  • 举报
回复
yum -y install freetype
ghostxyz0 2010-01-30
  • 打赏
  • 举报
回复
我也正在為GD庫煩惱中

怎麼裝都裝不上去FREETYPE

LZ怎麼裝的啊...支下招啊
ganggang4321 2010-01-30
  • 打赏
  • 举报
回复
那为什么我用火狐浏览显示这样
图像 “http://192.168.128.135/xx.png” 因其本身有错无法显示。
xuzuning 2010-01-30
  • 打赏
  • 举报
回复
PNG Support: 1

表示你可以用 gd 处理 PNG 图片
ganggang4321 2010-01-30
  • 打赏
  • 举报
回复
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
ganggang4321 2010-01-30
  • 打赏
  • 举报
回复
没用,--without-gd' 这个是不是没有启用gd啊
llj480028 2010-01-30
  • 打赏
  • 举报
回复
你还没解决呢?
yum -y install php-gd
好像是这个命令!
ganggang4321 2010-01-30
  • 打赏
  • 举报
回复
现在的毛病就是显示 不了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图片呢
ghostxyz0 2010-01-30
  • 打赏
  • 举报
回复
怎麼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
htrxht 2010-01-30
  • 打赏
  • 举报
回复
参考:
http://school.itzcn.com/special-spid-30.html
上面有相关信息,希望对楼主有所帮助。
LuciferStar 2010-01-30
  • 打赏
  • 举报
回复
linux下不比windows。
ubuntu下,装gd,是
sudo apt-get install php_gd

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧