setmefree 发表于 2020-11-30 18:20:39

LNMP 1.7 PHP安装失败

系统Debian 9看起来地方像
make: Error 1

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


多谢

licess 发表于 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有问题

setmefree 发表于 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的版本不匹配。

licess 发表于 2020-12-1 18:23:37

首先lnmp根据不同情况会安装另外的curl,但是首先的原则是不干扰系统自带的,而且不在你上面贴出的目录,而在 /usr/local/curl 目录,且版本目前为 curl-7.62.0
你贴出的这两个应该是你通过其他方式安装上去的

setmefree 发表于 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

安装成功

setmefree 发表于 2020-12-3 10:59:27

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

看了下 php.sh
Check_Curl()
{
    if [ -s /usr/local/curl/bin/curl ]; then
      Echo_Green "Curl ...ok"
    else
      Install_Curl
    fi
}
判断CURL的逻辑是在 /usr/local/curl...但是Debian9的情况,lnmp安装curl安装的位置是在 /usr/local/bin/curl
虽然init.sh 脚本里 “--prefix=/usr/local/curl”

setmefree 发表于 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没生效?

licess 发表于 2020-12-3 20:17:33

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

几台测试机测试都没有安装到/usr/local 下的情况,正常debian9也是不另外安装的,脚本一个地方判断条件规则稍微不严谨导致的
页: [1]
查看完整版本: LNMP 1.7 PHP安装失败