无法在 Ubuntu 16.04.4 LTS 上安装 libcurl

无法在 Ubuntu 16.04.4 LTS 上安装 libcurl

我正在尝试在 Ubuntu 服务器上从源代码安装 libcurl,操作系统版本为 16.04.4 LTS。

我使用的是 gcc 8.1。下面是我使用的配置脚本:curl 版本:7.61.1 1234 安装前缀:/mnt/share/codes/IFS/buildcurl/curl-7.61.1

Compiler:         gcc-8
SSL support:      no      (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )
SSH support:      no      (--with-libssh2)
zlib support:     enabled
brotli support:   no      (--with-brotli)
GSS-API support:  no      (--with-gssapi)
TLS-SRP support:  no      (--enable-tls-srp)
resolver:         POSIX threaded
IPv6 support:     enabled
Unix sockets support: enabled
IDN support:      no      (--with-{libidn2,winidn})
Build libcurl:    Shared=yes, Static=no
Built-in manual:  enabled --libcurl option: enabled (--disable-libcurl-option)
Verbose errors:   enabled (--disable-verbose)
SSPI support:     no      (--enable-sspi)
ca cert bundle:   no
ca cert path:
ca fallback:
LDAP support:     no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)
LDAPS support:    no      (--enable-ldaps)
RTSP support:     enabled
RTMP support:     no      (--with-librtmp)
metalink support: no      (--with-libmetalink)
PSL support:      no      (libpsl not found)
HTTP2 support:    disabled (--with-nghttp2)
Protocols:        DICT FILE FTP GOPHER HTTP IMAP POP3 RTSP SMTP TELNET TFTP

调用make没有发生任何意外,make test同样也没有问题。但是,当我尝试时make install,我收到以下错误:

/usr/bin/install: 'system.h' and '/mnt/share/codes/IFS/buildcurl/curl-7.61.1/include/cu    rl/system.h' are the same file
Makefile:459: recipe for target 'install-pkgincludeHEADERS' failed
make[6]: *** [install-pkgincludeHEADERS] Error 1
make[6]: Leaving   directory '/mnt/share/codes/IFS/buildcurl/curl-7.61.1/include/curl'
Makefile:579: recipe for target 'install-am' failed
make[5]: *** [install-am] Error 2
make[5]: Leaving directory '/mnt/share/codes/IFS/buildcurl/curl-7.61.1/include/curl'
Makefile:456: recipe for target 'install-recursive' failed
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory '/mnt/share/codes/IFS/buildcurl/curl-7.61.1/include'
Makefile:1450: recipe for target 'install-data-hook' failed
make[3]: *** [install-data-hook] Error 2
make[3]: Leaving directory '/mnt/share/codes/IFS/buildcurl/curl-7.61.1'
Makefile:1280: recipe for target 'install-data-am' failed
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory '/mnt/share/codes/IFS/buildcurl/curl-7.61.1'
Makefile:1234: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving   directory '/mnt/share/codes/IFS/buildcurl/curl-7.61.1'
Makefile:927: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
make[3]: Leaving  directory '/mnt/share/codes/IFS/buildcurl/curl-7.61.1'
Makefile:1280: recipe for target 'install-data-am' failed
make[2]: *** [install-data-am] Error 2

不用说,我很困惑。来自 make 的错误 1 ​​没什么帮助,因为它意味着目标需要重新制作 - 但失败了,据我所知目标不需要重新制作。我预计后面的错误是人为的。

我该如何调试?欢迎提供任何提示。

相关内容