Closed zvg closed 11 years ago
5.2.17 也挂了.
Centos 6.4 x64 lnmp 1.0 安装正常.
collect2: ld returned 1 exit status
make: * [sapi/cli/php] 错误 1
make: * 正在等待未完成的任务....
ext/gd/libgd/gdkanji.o: In function do_convert': /home/soft/EZHTTP/soft/php-5.2.17/ext/gd/libgd/gdkanji.c:350: undefined reference to
libiconv_open'
/home/soft/EZHTTP/soft/php-5.2.17/ext/gd/libgd/gdkanji.c:365: undefined reference to libiconv' /home/soft/EZHTTP/soft/php-5.2.17/ext/gd/libgd/gdkanji.c:381: undefined reference to
libiconv_close'
ext/iconv/iconv.o: In function _php_iconv_appendl': /home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:348: undefined reference to
libiconv'
/home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:385: undefined reference to libiconv' ext/iconv/iconv.o: In function
_php_iconv_mime_decode':
/home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:1354: undefined reference to libiconv_open' /home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:1823: undefined reference to
libiconv_close'
/home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:1826: undefined reference to libiconv_close' /home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:1465: undefined reference to
libiconv_close'
/home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:1468: undefined reference to libiconv_open' ext/iconv/iconv.o: In function
_php_iconv_strlen':
/home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:603: undefined reference to libiconv_open' /home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:626: undefined reference to
libiconv'
/home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:660: undefined reference to libiconv_close' ext/iconv/iconv.o: In function
_php_iconv_substr':
/home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:723: undefined reference to libiconv_open' /home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:747: undefined reference to
libiconv'
/home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:802: undefined reference to libiconv_close' /home/soft/EZHTTP/soft/php-5.2.17/ext/iconv/iconv.c:806: undefined reference to
libiconv_close'
#########################################################
failed to install php-5.2.17.
please visit website http://www.centos.bz/ezhttp/
and submit /root/ezhttp_errors.log ask for help.
#########################################################
代码已经更新,可以重新下载安装,如果还有什么问题,欢迎反馈
这里失败了.
creating modules/examples/Makefile creating modules/experimental/Makefile creating modules/filters/Makefile creating modules/http/Makefile creating modules/ldap/Makefile creating modules/loggers/Makefile creating modules/lua/Makefile creating modules/metadata/Makefile creating modules/proxy/Makefile creating modules/session/Makefile creating modules/slotmem/Makefile creating modules/ssl/Makefile creating modules/test/Makefile creating os/unix/Makefile creating modules/proxy/balancers/Makefile creating server/mpm/Makefile creating server/mpm/event/Makefile creating modules/arch/unix/Makefile creating modules/cluster/Makefile creating modules/dav/main/Makefile creating modules/generators/Makefile creating modules/dav/fs/Makefile creating modules/dav/lock/Makefile creating modules/mappers/Makefile creating Makefile creating modules/Makefile creating srclib/Makefile creating os/Makefile ######################################################### failed to install httpd-2.4.4. please visit website http://www.centos.bz/ezhttp/ and submit /root/ezhttp_errors.log ask for help. #########################################################
没看到错误信息,可否提供/root/ezhttp_errors.log 文件
好像脚本把你的系统识别成了ubuntu,看下cat /proc/version输出结果
呃.比较郁闷.竟然出现 debian 字样
$ cat /proc/version Linux version 3.10.9-xxxx-grs-ipv6-64 (kernel@kernel.ovh.net) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Wed Aug 21 11:51:59 CEST 2013
$ cat /etc/redhat-release CentOS release 6.4 (Final)
$ cat /etc/issue CentOS release 6.4 (Final) Linux xxx.ip-19.net 3.10.9-xxxx-grs-ipv6-64 #1 SMP Wed Aug 21 11:51:59 CEST 2013 x86_64 x86_64 x86_64 GNU/Linux
测试了手里几台 ovh 服务器,都有这样的问题.
已修复
好像还是不行.依然识别为 debian .
不应该呀,我是用这个函数来识别的。
check_sys_version(){
if cat /etc/issue | grep -q -E -i "ubuntu|debian";then
echo "debian"
elif cat /etc/issue | grep -q -E -i "centos|red hat|redhat";then
echo "centos"
elif cat /proc/version | grep -q -E -i "ubuntu|debian";then
echo "debian"
elif cat /proc/version | grep -q -E -i "centos|red hat|redhat";then
echo "centos"
fi
}
check_sys_version
你试执行一下,并确认安装包下的func文件是不是包含此函数
对了,有没有下载最新代码
$ cat func | grep check_sys_version
check_sys_version(){
if [ "check_sys_version
" == "debian" ];then
elif [ "check_sys_version
" == "centos" ];then
能否贴出check_sys_version函数的完整代码,比如 check_sys_version(){ ... ... ... }
看了你的错误文件,你的不是最新代码
check_sys_version(){ cat /proc/version | grep -q -E -i "ubuntu|debian" && echo "debian" cat /proc/version | grep -q -E -i "centos|red hat|redhat" && echo "centos" }
package_support(){ cat /proc/version | grep -q -E -i "ubuntu|debian" && echo 1 cat /proc/version | grep -q -E -i "centos|red hat|redhat" && echo 1 }
这个不是最新,更新下代码吧
wow
成功安装.
/home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2473: undefined reference to
libiconv_close' ext/iconv/.libs/iconv.o: In function
php_iconv_stream_filter_append_bucket': /home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2624: undefined reference tolibiconv' /home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2623: undefined reference to
libiconv' /home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2545: undefined reference tolibiconv' ext/iconv/.libs/iconv.o: In function
php_iconv_stream_filter_ctor': /home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2499: undefined reference to `libiconv_open' collect2: ld returned 1 exit status make: *\ [sapi/cli/php] 错误 1failed to install php-5.3.26. please visit website http://www.centos.bz/ezhttp/ and submit /root/ezhttp_errors.log ask for help.