When building, problems with libcurl.so.4 and `CURL_OPENSSL_3 'will occur



I installed "swift 4.1.2" on "Ubuntu 18.04".
After that, I prepared a sample code on the theory street and executed "$ swift build".
However, the following error message appeared.
"/ usr / local / swift / usr / bin / swift-package: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version` CURL_OPENSSL_3 'not found
(required by /usr/local/swift/usr/bin/../lib/swift/linux/libFoundation.so) "
... I understand that the problem is in "libcurl.so.4" and "CURL_OPENSSL_3". Although there were similar reports in various forums, there was no solution.
How can I solve this problem?
I am seeking help.

(Alexis Jafet) #2

Que ta amig@, también tengo swift 4.1.2 en Ubuntu 18.04 y tenía casi el mismo problema, en mi caso el problema era en "libcurl.so.4" y "CURL_OPENSSL_4".
Lo logré solucionar instalando libcurl4 con el siguiente comando:
sudo apt install libcurl4
:slight_smile: Con esto me parece que se realizan bien las referencias de los imports.
Suerte, espero te sirva.