一键包安装失败
系统:centos官方下载的 7.7.1908 Minimal 版本Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.
/tmp/lnmp1.6/src/php-5.2.17/ext/mysqli/mysqli.c:1175: undefined reference to `client_errors'
ext/xmlrpc/libxmlrpc/encodings.o: In function `convert':
/tmp/lnmp1.6/src/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open'
/tmp/lnmp1.6/src/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv'
/tmp/lnmp1.6/src/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
/tmp/lnmp1.6/src/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
lnmp都对这个做过优化了,还报错就没办法了,只能用php 5.2对话只能换centos 6或其他版本比较低的linux 发行版 上面的问题解决了,现在出现这个错误,要怎么解决?
/tmp/lnmp1.6/src/php-5.2.17/ext/mysqli/mysqli.c:1064: undefined reference to `client_errors'
ext/mysqli/mysqli.o: In function `php_local_infile_read':
/tmp/lnmp1.6/src/php-5.2.17/ext/mysqli/mysqli.c:1113: undefined reference to `client_errors'
ext/mysqli/mysqli.o: In function `php_local_infile_error':
/tmp/lnmp1.6/src/php-5.2.17/ext/mysqli/mysqli.c:1175: undefined reference to `client_errors'
collect2: error: ld returned 1 exit status
补充内容 (2020-1-22 13:37):
已经解决了。 othlnmp 发表于 2020-1-22 13:24
上面的问题解决了,现在出现这个错误,要怎么解决?
检查mysql是否已经安装成功,检查mysql版本,检查是否自己修改了编译参数
如果你还是选的mysql 5.7的话php 5.2和mysql 5.7是有兼容性问题的,mysql 5.7发布时php 5.2早都EOL很多年了
页:
[1]