我正在尝试在运行 Ubuntu 15.10 x64 的服务器上安装蒸汽( https://github.com/vapor/vapor )工具箱。
我从“swift build”命令中得到这个错误
/swift-3.0/usr/bin/swift-build: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
这是卷曲问题吗?如何解决此错误?
细节:
我正在按照此处描述的步骤操作: https ://vapor.github.io/documentation/getting-started/install-toolbox.html
Swift 3.0 已安装:
user@server:~$ swift --version
Swift version 3.0 (swift-3.0-RELEASE)
Target: x86_64-unknown-linux-gnu
要安装工具箱:
user@server:~$ curl -sL toolbox.vapor.sh | bash
✅ Compatible
Downloading...
Compiling...
/swift-3.0/usr/bin/swift-build: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
Installing...
bash: line 22: .build/release/Executable: No such file or directory
Use vapor --help and vapor <command> --help to learn more.
上面的错误发生在脚本的这一行:swift build -c release > /dev/null;
swift build --help
给出同样的错误:
user@server:~$ swift build --help
/swift-3.0/usr/bin/swift-build: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
蒸汽不存在:
user@server:~$ vapor --help
vapor: command not found
还有卷曲信息:
user@server:~$ sudo -i curl --version
curl 7.43.0 (x86_64-pc-linux-gnu) libcurl/7.43.0 GnuTLS/3.3.15 zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
curl 已安装sudo apt-get install curl
并没有报告任何错误。
user@server:/usr/lib$ find . | grep curl
报告大约 15 场比赛,但没有一个完全是 libcurl.so.4。收官战是:
./x86_64-linux-gnu/libcurl-gnutls.so.4
./x86_64-linux-gnu/libcurl-gnutls.so.4.3.0
./x86_64-linux-gnu/libcurl-gnutls.so.3