centos-bz / ezhttp

The bash shell script stack for installation of Nginx OpenResty Tengine lua_nginx_module nginx_concat_module nginx_upload_module ngx_substitutions_filter_module Apache-2.2 Apache-2.4 MySQL-5.1 MySQL-5.5 MySQL-5.6 MySQL-5.7 PHP-5.2 PHP-5.3 PHP-5.4 PHP-5.5 PHP-5.6 ZendOptimizer ZendGuardLoader Xcache Eaccelerator Imagemagick IonCube Memcache Memcached Redis Mongo Xdebug Mssql Memcached PureFtpd PhpMyAdmin Redis Mongodb PhpRedisAdmin MemAdmin RockMongo Jdk7 Jdk8 Tomcat7 Tomcat8
434 stars 158 forks source link

php 5.3.26 安装过程中报错. #2

Closed zvg closed 11 years ago

zvg commented 11 years ago

/home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2473: undefined reference to libiconv_close' ext/iconv/.libs/iconv.o: In functionphp_iconv_stream_filter_append_bucket': /home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2624: undefined reference to libiconv' /home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2623: undefined reference tolibiconv' /home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2545: undefined reference to libiconv' ext/iconv/.libs/iconv.o: In functionphp_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] 错误 1

failed to install php-5.3.26. please visit website http://www.centos.bz/ezhttp/ and submit /root/ezhttp_errors.log ask for help.

zvg commented 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 tolibiconv_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 tolibiconv_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 tolibiconv' /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 tolibiconv_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 tolibiconv_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 tolibiconv' /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 tolibiconv' /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 tolibiconv_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. #########################################################

centos-bz commented 11 years ago

代码已经更新,可以重新下载安装,如果还有什么问题,欢迎反馈

zvg commented 11 years ago

这里失败了.

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. #########################################################

centos-bz commented 11 years ago

没看到错误信息,可否提供/root/ezhttp_errors.log 文件

zvg commented 11 years ago

http://pan.baidu.com/share/link?shareid=663727136&uk=252697543

centos-bz commented 11 years ago

好像脚本把你的系统识别成了ubuntu,看下cat /proc/version输出结果

zvg commented 11 years ago

呃.比较郁闷.竟然出现 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

zvg commented 11 years ago

测试了手里几台 ovh 服务器,都有这样的问题.

centos-bz commented 11 years ago

已修复

zvg commented 11 years ago

好像还是不行.依然识别为 debian .

centos-bz commented 11 years ago

不应该呀,我是用这个函数来识别的。 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文件是不是包含此函数

centos-bz commented 11 years ago

对了,有没有下载最新代码

zvg commented 11 years ago

$ cat func | grep check_sys_version check_sys_version(){ if [ "check_sys_version" == "debian" ];then elif [ "check_sys_version" == "centos" ];then

centos-bz commented 11 years ago

能否贴出check_sys_version函数的完整代码,比如 check_sys_version(){ ... ... ... }

centos-bz commented 11 years ago

看了你的错误文件,你的不是最新代码

zvg commented 11 years ago

判断系统版本

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 }

centos-bz commented 11 years ago

这个不是最新,更新下代码吧

zvg commented 11 years ago

wow

成功安装.