在ubuntu 15.10上快速构建错误

时间:2016-10-02 01:22:02

标签: ubuntu curl swift3 libcurl vapor

我正在尝试在运行Ubuntu 15.10 x64的服务器上安装vapor(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

1 个答案:

答案 0 :(得分:26)

此问题已通过运行:

解决

<div class="parent"> <span class="child">Call Us</span> <div id="space"></div> <span class="child">Call Us</span> </div>