cooc123 发表于 2012-6-6 22:52:39

Ubuntu PHP 编译出错

root@zou-Lenovo-G470:~/soft/lnmp0.9-full# cat /etc/issue
Ubuntu 11.10 \n \l

ext/gd/libgd/gdkanji.o: In function `do_convert':
/home/zou/soft/lnmp0.9-full/php-5.2.17/ext/gd/libgd/gdkanji.c:350: undefined reference to `libiconv_open'
/home/zou/soft/lnmp0.9-full/php-5.2.17/ext/gd/libgd/gdkanji.c:365: undefined reference to `libiconv'
/home/zou/soft/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':
/home/zou/soft/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open'
/home/zou/soft/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv'
/home/zou/soft/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** 错误 1
strip: '/usr/local/php/bin/php-cgi': No such file
ln: 创建符号链接 "/usr/bin/php": 文件已存在
ln: 创建符号链接 "/usr/bin/phpize": 文件已存在
ln: 创建符号链接 "/usr/bin/php-fpm": 文件已存在

licess 发表于 2012-6-7 09:02:37

先看看libiconv装上了没

如果装上了,手动执行make ZEND_EXTRA_LIBS='-liconv'试试

不行的话也可以修改Makefile,在 EXTRA_LIBS里面添加 -liconv 再make试试

再不行就暂时无解了,就只能换系统了

cooc123 发表于 2012-6-7 10:23:43

原帖由 licess 于 2012-6-7 09:02 发表 https://bbs.vpser.net/images/common/back.gif
先看看libiconv装上了没

如果装上了,手动执行make ZEND_EXTRA_LIBS='-liconv'试试

不行的话也可以修改Makefile,在 EXTRA_LIBS里面添加 -liconv 再make试试

再不行就暂时无解了,就只能换系统了 ...
怎样看libiconv装上了没

licess 发表于 2012-6-7 13:50:03

find / -name libiconv

也可以先按https://bbs.vpser.net/thread-7823-1-1.html 这个试试

cooc123 发表于 2012-6-7 16:26:27

原帖由 licess 于 2012-6-7 13:50 发表 https://bbs.vpser.net/images/common/back.gif
find / -name libiconv

也可以先按https://bbs.vpser.net/thread-7823-1-1.html 这个试试
这个补丁打过了的

cooc123 发表于 2012-6-8 23:47:15

好无语

我吧openssl 编译参数去掉后 那个iconv 错误也没了,还是 12.04的版本


=========================================================================
Manager for LNMP V0.9,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is runing!
php-fpm is runing!
* MySQL running (16461)
激活Internet连接 (仅服务器)
Proto Recv-Q Send-Q Local Address         Foreign Address         State      
tcp      0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN   
tcp      0      0 0.0.0.0:80            0.0.0.0:*               LISTEN   
tcp      0      0 127.0.0.1:53            0.0.0.0:*               LISTEN   
tcp      0      0 127.0.0.1:631         0.0.0.0:*               LISTEN   
tcp6       0      0 ::1:631               :::*                  LISTEN   
root@zou-Lenovo-G470:~/soft/lnmp0.9-full# cat /etc/issue
Ubuntu 12.04 LTS \n \l

root@zou-Lenovo-G470:~/soft/lnmp0.9-full#

licess 发表于 2012-6-9 09:27:28

去掉可以,但是就是不支持openssl了
页: [1]
查看完整版本: Ubuntu PHP 编译出错