2016-10-02 7 views
10

पर स्विफ्ट बिल्ड त्रुटि मैं उबंटू 15.10 x64 चला रहे सर्वर पर वाष्प (https://github.com/vapor/vapor) टूलबॉक्स स्थापित करने का प्रयास कर रहा हूं।उबंटू 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

स्विफ्ट 3.0 स्थापित किया गया है:

[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. 

:

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

टूलबॉक्स स्थापित करने के लिए त्रुटि 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 के साथ स्थापित किया गया था और किसी भी एरो की रिपोर्ट नहीं की थी रु।

[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