- 积分
- 4
- 威望
-
- 金钱
-
- 注册时间
- 2013-5-26
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
终于搞定lnmp0.9, 502错误,debian7系统
应该是跟这两个问题一样,搞定了上来分享一下
错误应该是php-fpm没装上,错误信息有以下:- ext/iconv/iconv.o: In function `php_iconv_string':
- /root/lnmp0.9/php-5.2.17/ext/iconv/iconv.c:441: undefined reference to `libiconv_open'
- /root/lnmp0.9/php-5.2.17/ext/iconv/iconv.c:453: undefined reference to `libiconv'
- /root/lnmp0.9/php-5.2.17/ext/iconv/iconv.c:467: undefined reference to `libiconv'
- /root/lnmp0.9/php-5.2.17/ext/iconv/iconv.c:478: undefined reference to `libiconv_close'
- ext/iconv/iconv.o: In function `_php_iconv_strpos':
- /root/lnmp0.9/php-5.2.17/ext/iconv/iconv.c:851: undefined reference to `libiconv_open'
- /root/lnmp0.9/php-5.2.17/ext/iconv/iconv.c:879: undefined reference to `libiconv'
- /root/lnmp0.9/php-5.2.17/ext/iconv/iconv.c:993: undefined reference to `libiconv_close'
- ext/openssl/xp_ssl.o: In function `php_openssl_setup_crypto':
- /root/lnmp0.9/php-5.2.17/ext/openssl/xp_ssl.c:337: undefined reference to `SSLv2_client_method'
- /root/lnmp0.9/php-5.2.17/ext/openssl/xp_ssl.c:357: undefined reference to `SSLv2_server_method'
- ext/gd/libgd/gdkanji.o: In function `do_convert':
- /root/lnmp0.9/php-5.2.17/ext/gd/libgd/gdkanji.c:350: undefined reference to `libiconv_open'
- /root/lnmp0.9/php-5.2.17/ext/gd/libgd/gdkanji.c:365: undefined reference to `libiconv'
- /root/lnmp0.9/php-5.2.17/ext/gd/libgd/gdkanji.c:381: undefined reference to `libiconv_close'
- ext/xmlrpc/libxmlrpc/encodings.o: In function `convert':
- /root/lnmp0.9/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open'
- /root/lnmp0.9/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv'
- /root/lnmp0.9/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
- /root/lnmp0.9/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
- oollect2: error: ld returned 1 exit status
复制代码 google了下:
修改debian.sh脚本:
在234行,配置libiconv时加上- ./configure --prefix=/usr/local/libiconv --enable-static
复制代码 同时在376行,配置php时,将改为- --with-iconv=/usr/local/libiconv
复制代码 还有一步,在373行出打个open-ssl补丁- wget http://www.centos.bz/wp-content/uploads/2012/06/debian_patches_disable_SSLv2_for_openssl_1_0_0.patch
- patch -p1 < debian_patches_disable_SSLv2_for_openssl_1_0_0.patch
复制代码 然后重新执行下debian.sh,执行前先卸载下,不用等6.1了
跟这个错误挺像的
https://bbs.vpser.net/thread-9553-1-1.html
https://bbs.vpser.net/thread-9571-1-1.html
[ 本帖最后由 hjh 于 2013-5-29 22:26 编辑 ] |
|