VPS侦探论坛

 找回密码
 注册
查看: 524|回复: 7

LNMP 1.7 PHP安装失败

[复制链接]
发表于 2020-11-30 18:20:39 | 显示全部楼层 |阅读模式



系统Debian 9看起来地方像
make: [sapi/cli/php] Error 1

详情见附件
您有一份文件待查收!即刻点击链接获取文件:https://cowtransfer.com/s/ea62c73e819a40 或进入 cowtransfer.com 获取,在首页输入取件码:786442(24小时内有效)


多谢
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-11-30 21:53:58 | 显示全部楼层


curl: (48) An unknown option was passed in to libcurl
。。。。。。
/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libcrypto.so.1.0.2, needed by /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1
/usr/bin/ld: warning: libcrypto.so.1.0.2, needed by /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1
/usr/bin/ld: warning: libcrypto.so.1.0.2, needed by /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1
/usr/bin/ld: warning: libcrypto.so.1.0.2, needed by /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1
ext/curl/.libs/interface.o: In function `build_mime_structure_from_hash':
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2278: undefined reference to `curl_mime_addpart'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2284: undefined reference to `curl_mime_name'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2285: undefined reference to `curl_mime_data'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2244: undefined reference to `curl_mime_addpart'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2249: undefined reference to `curl_mime_name'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2179: undefined reference to `curl_mime_init'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2250: undefined reference to `curl_mime_data_cb'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2251: undefined reference to `curl_mime_filename'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2252: undefined reference to `curl_mime_type'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2278: undefined reference to `curl_mime_addpart'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2284: undefined reference to `curl_mime_name'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2285: undefined reference to `curl_mime_data'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2244: undefined reference to `curl_mime_addpart'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2249: undefined reference to `curl_mime_name'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2179: undefined reference to `curl_mime_init'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2250: undefined reference to `curl_mime_data_cb'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2251: undefined reference to `curl_mime_filename'
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:2252: undefined reference to `curl_mime_type'
ext/curl/.libs/interface.o: In function `curl_free_post':
/root/lnmp1.7/src/php-7.4.12/ext/curl/interface.c:1791: undefined reference to `curl_mime_free'

你系统上的curl有问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-12-1 11:14:51 | 显示全部楼层



/usr/bin/curl -V
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2u zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
---------------------------------------------------------------------------------------
/usr/local/bin/curl -V
curl 7.62.0 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2u zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Release-Date: 2018-10-31
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

-------------------------------------------------------------------------
看上去安装脚本会再/usr/local/bin里面生成curl,但是与系统里的libcurl的版本不匹配。
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-12-1 18:23:37 | 显示全部楼层



首先lnmp根据不同情况会安装另外的curl,但是首先的原则是不干扰系统自带的,而且不在你上面贴出的目录,而在 /usr/local/curl 目录,且版本目前为 curl-7.62.0
你贴出的这两个应该是你通过其他方式安装上去的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-12-1 18:58:05 | 显示全部楼层

/usr/local/bin/curl 的是lnmp装上去的 7.62,且优先级高于 /usr/bin/curl
解决方法:
编辑version.sh
把libcurl的版本改成和系统内置的一样 7.52.1
由于lnmp自带源没有 7.52.1的curl包
修改 init.sh
Install_Curl里面修改下载地址为
Download_Files https://curl.se/download/${Curl_Ver}.tar.bz2 ${Curl_Ver}.tar.bz2

安装成功

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

 楼主| 发表于 2020-12-3 10:59:27 | 显示全部楼层

licess 发表于 2020-12-1 18:23
首先lnmp根据不同情况会安装另外的curl,但是首先的原则是不干扰系统自带的,而且不在你上面贴出的目录,而 ...

看了下 php.sh
  1. Check_Curl()
  2. {
  3.     if [ -s /usr/local/curl/bin/curl ]; then
  4.         Echo_Green "Curl ...ok"
  5.     else
  6.         Install_Curl
  7.     fi
  8. }
复制代码

判断CURL的逻辑是在 /usr/local/curl...但是Debian9的情况,lnmp安装curl安装的位置是在 /usr/local/bin/curl
虽然init.sh 脚本里 “--prefix=/usr/local/curl”
 楼主| 发表于 2020-12-3 11:09:53 | 显示全部楼层

licess 发表于 2020-12-1 18:23
首先lnmp根据不同情况会安装另外的curl,但是首先的原则是不干扰系统自带的,而且不在你上面贴出的目录,而 ...
curl version:     7.62.0
  Host setup:       x86_64-pc-linux-gnu
  Install prefix:   /usr/local
  Compiler:         gcc
  SSL support:      enabled (OpenSSL)
  SSH support:      no      (--with-libssh2)
  zlib support:     enabled
  brotli support:   no      (--with-brotli)
  GSS-API support:  no      (--with-gssapi)
  TLS-SRP support:  enabled
  resolver:         POSIX threaded


之前log里面25452行也可以看到, prefix是 /usr/local,看起来像是curl的configure的prefix没生效?
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-12-3 20:17:33 | 显示全部楼层



setmefree 发表于 2020-12-3 11:09
之前log里面25452行也可以看到, prefix是 /usr/local,看起来像是curl的configure的prefix没生效? ...

几台测试机测试都没有安装到/usr/local 下的情况,正常debian9也是不另外安装的,脚本一个地方判断条件规则稍微不严谨导致的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2021-5-12 07:35 , Processed in 0.100201 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表