2016-10-02 2 views
10

Я пытаюсь установить пар (https://github.com/vapor/vapor) toolbox на сервере под управлением Ubuntu 15.10 x64.ошибка быстрой сборки на ubuntu 15.10

Я получаю эту ошибку из команды «скор сборки»

/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 были установлены:

[email protected]:~$ swift --version 
Swift version 3.0 (swift-3.0-RELEASE) 
Target: x86_64-unknown-linux-gnu 

Чтобы установить панель инструментов:

[email protected]:~$ 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. 

Ошибка abov е происходит в этой строке сценария: swift build -c release > /dev/null;

swift build --help дает ту же ошибку:

[email protected]:~$ 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 

пар нет:

[email protected]:~$ vapor --help 
vapor: command not found 

Также локон информация:

[email protected]:~$ 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 

завиток был установлен с sudo apt-get install curl и не сообщал об эрро RS.

[email protected]:/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 

ответ

25

Эта проблема была решена путем запуска:

[email protected]:$ sudo apt-get install libcurl3

+1

работал для меня. Может быть, вы должны отметить это как правильный ответ? :-) – Darwind

Смежные вопросы