wwg3320 发表于 2013-5-15 18:45:17

刚装的Debian 64 bit系统安装lnmp后无法运行php

刚装的Debian 64 bit系统安装lnmp后无法运行php502 Bad Gateway

licess 发表于 2013-5-15 21:18:58

/root/lnmp0.9-full/php-5.2.17/ext/gd/libgd/gdkanji.c:350: undefined reference to `libiconv_open'
/root/lnmp0.9-full/php-5.2.17/ext/gd/libgd/gdkanji.c:365: undefined reference to `libiconv'
/root/lnmp0.9-full/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-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open'
/root/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv'
/root/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
/root/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
make: *** Error 1
strip: '/usr/local/php/bin/php-cgi': No such file
php没编译安装成功

在libiconv 的configure 后面加上一个--enable-static,./uninstall.sh 后,删除lnmp包和目录,重新下载安装脚本试试
哪家的vps?

wwg3320 发表于 2013-5-15 22:16:02

好的,谢谢 军哥
我安装的是 Linode Manager 好像是国外的vps 是按月付款的,好用就继续用,不好用就只用一个月
页: [1]
查看完整版本: 刚装的Debian 64 bit系统安装lnmp后无法运行php