- 论坛徽章:
- 0
|
各位好:
本人需要编译php支持GD库,centos5 自带的是php5.1.6,默认没有编译GD。使用rpm -e php,成功卸载自带的php后,成功安装GD及其相关库。重新安装php5.3.2 使用参数如下: ./configure '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-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/local/freetype2/' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext=/usr/local/gettext/' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/jpeg6/' '--with-openssl' '--with-png=/usr/local/libpng2/' '--with-expat-dir=/usr' '--with-zlib=/usr/local/zlib1.2.3/' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml=/usr/local/libxml2' '--with-xml' '--without-mysql' '--with-gd=/usr/local/gd2' '--without-odbc' '--without-mysql' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'
configure 成功,make成功,make install的时候没有任何报错信息直接退出,如下:
[root@test php-5.3.2]# make install
Installing PHP SAPI module: cgi
Installing PHP CGI binary: /usr/bin/
Installing PHP CLI binary: /usr/bin/
Installing PHP CLI man page: /usr/share/man/man1/
Installing build environment: /usr/lib/build/
Installing header files: /usr/include/php/
Installing helper programs: /usr/bin/
program: /usrphpize
program: /usrphp-config
Installing man pages: /usr/share/man/man1/
page: /usrphpize.1
page: /usrphp-config.1
/root/php-5.3.2/build/shtool install -c ext/phar/phar.phar /usr/bin
ln -s -f /usr/bin/phar.phar /usr/bin/phar
[root@test php-5.3.2]#
我现在目的就是要得到一个支持GD库的php环境,重新编译php5.1.6也好,还是卸载重装也好,请各位予以帮助。谢了。 |
|