当前位置: 技术问答>linux和unix
php的编译问题
来源: 互联网 发布时间:2016-06-21
本文导语: 配置如下: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv --enable-mbstring --with-freetype-dir=/usr/local/freetype --enable-sockets --with-db...
配置如下:
./configure
--prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-iconv
--enable-mbstring
--with-freetype-dir=/usr/local/freetype
--enable-sockets
--with-db4
--with-regex=php
--with-bz2
--with-ttf
--with-gd=/usr/local/gd2
--enable-gd-native-ttf
--enable-gd-jis-conv
--with-curl
--disable-debug
--enable-force-cgi-redirect
--enable-ftp
--with-zlib
--with-png-dir
--with-libxml-dir=/usr/local/libxml2
--with-jpeg-dir=/usr/local/jpeg6
--with-mcrypt=/usr/local/libmcrypt
--enable-soap
--enable-exif
--disable-ipv6
--enable-fastcgi
--enable-safe-mode
make时报如下错误:
libtool: link: warning: library `/usr/local/lib/libgd.la' was moved.
libtool: link: warning: library `/usr/local/jpeg6/lib/libjpeg.la' was moved.
libtool: link: warning: library `/usr/local/lib/libgd.la' was moved.
libtool: link: warning: library `/usr/local/jpeg6/lib/libjpeg.la' was moved.
/usr/bin/ld: warning: libssl.so.4, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libcurl.so, may conflict with libssl.so.0.9.8
/usr/bin/ld: warning: libssl.so.4, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libcurl.so, may conflict with libssl.so.0.9.8
/usr/bin/ld: warning: libssl.so.4, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libcurl.so, may conflict with libssl.so.0.9.8
/usr/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libssl.so, may conflict with libcrypto.so.4
/usr/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libssl.so, may conflict with libcrypto.so.4
/usr/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libssl.so, may conflict with libcrypto.so.4
ext/gd/.libs/gd.o(.text+0x78f): In function `zm_deactivate_gd':
/root/sourcesoft/soft/php-5.2.5/ext/gd/gd.c:1346: undefined reference to `gdFontCacheShutdown'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1
请高手指点啊,谢谢。
./configure
--prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-iconv
--enable-mbstring
--with-freetype-dir=/usr/local/freetype
--enable-sockets
--with-db4
--with-regex=php
--with-bz2
--with-ttf
--with-gd=/usr/local/gd2
--enable-gd-native-ttf
--enable-gd-jis-conv
--with-curl
--disable-debug
--enable-force-cgi-redirect
--enable-ftp
--with-zlib
--with-png-dir
--with-libxml-dir=/usr/local/libxml2
--with-jpeg-dir=/usr/local/jpeg6
--with-mcrypt=/usr/local/libmcrypt
--enable-soap
--enable-exif
--disable-ipv6
--enable-fastcgi
--enable-safe-mode
make时报如下错误:
libtool: link: warning: library `/usr/local/lib/libgd.la' was moved.
libtool: link: warning: library `/usr/local/jpeg6/lib/libjpeg.la' was moved.
libtool: link: warning: library `/usr/local/lib/libgd.la' was moved.
libtool: link: warning: library `/usr/local/jpeg6/lib/libjpeg.la' was moved.
/usr/bin/ld: warning: libssl.so.4, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libcurl.so, may conflict with libssl.so.0.9.8
/usr/bin/ld: warning: libssl.so.4, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libcurl.so, may conflict with libssl.so.0.9.8
/usr/bin/ld: warning: libssl.so.4, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libcurl.so, may conflict with libssl.so.0.9.8
/usr/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libssl.so, may conflict with libcrypto.so.4
/usr/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libssl.so, may conflict with libcrypto.so.4
/usr/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libssl.so, may conflict with libcrypto.so.4
ext/gd/.libs/gd.o(.text+0x78f): In function `zm_deactivate_gd':
/root/sourcesoft/soft/php-5.2.5/ext/gd/gd.c:1346: undefined reference to `gdFontCacheShutdown'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1
请高手指点啊,谢谢。
|
不知道.. 帮顶个
|
先说下,你是编译什么东东?
是想搞apache吗?
是想搞apache吗?
|
选项这多,请先看一下Readme或者Insatll再决定如何?
|
貌似libgd的版本有问题啊。