需要安装calendar支持,重新编译php出错
程序需要安装calendar支持,重新编译php出错,向各位求助。make clean
'./configure' '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-iconv-dir' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-discard-path' '--enable-magic-quotes' '--enable-safe-mode' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--with-curlwrappers' '--enable-mbregex' '--enable-mbstring' '--enable-calendar' '--with-mcrypt' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--without-pear' '--with-gettext' '--with-mime-magic'
make install
编译出错
ext/xmlrpc/libxmlrpc/.libs/encodings.o(.text+0x89): In function `convert':
/home/lnmp0.7-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
ext/xmlrpc/libxmlrpc/.libs/encodings.o(.text+0xca):/home/lnmp0.7-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined refe
rence to `libiconv_open'
ext/xmlrpc/libxmlrpc/.libs/encodings.o(.text+0x110):/home/lnmp0.7-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined ref
erence to `libiconv'
collect2: ld returned 1 exit status
make: *** Error 1
先确定有没有安装libiconv,如果没安装安装一下,如果已经安装了,可以试试这个
make ZEND_EXTRA_LIBS=’-liconv’ 我下载了libiconv编译安装,安装过程没有出现报错。
之后重新编译php还是出现上述错误。
尝试 make ZEND_EXTRA_LIBS=’-liconv’
提示 gcc: ¡¯-liconv¡¯: No such file or directory 安装libiconv后在/usr/local/bin/目录下有iconv文件。运行/usr/local/bin/iconv无出错提示。但也无其它显示。 多试了几次,现在好了。
页:
[1]