VPS侦探论坛

 找回密码
 注册
查看: 6125|回复: 4

需要安装calendar支持,重新编译php出错

[复制链接]
发表于 2011-10-2 12:24:48 | 显示全部楼层 |阅读模式

程序需要安装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: *** [sapi/cli/php] Error 1
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-10-2 13:10:35 | 显示全部楼层


先确定有没有安装libiconv,如果没安装安装一下,如果已经安装了,可以试试这个
make ZEND_EXTRA_LIBS=’-liconv’
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-10-2 16:59:15 | 显示全部楼层

我下载了libiconv编译安装,安装过程没有出现报错。
之后重新编译php还是出现上述错误。
尝试 make ZEND_EXTRA_LIBS=’-liconv’
提示 gcc: ¡¯-liconv¡¯: No such file or directory
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-10-2 17:39:02 | 显示全部楼层



安装libiconv后在/usr/local/bin/目录下有iconv文件。运行/usr/local/bin/iconv无出错提示。但也无其它显示。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-10-2 18:25:47 | 显示全部楼层

多试了几次,现在好了。

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 10:46 , Processed in 0.026176 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表