https://kotlinlang.org logo
#ktor
Title
# ktor
a

andylamax

07/15/2021, 6:53 AM
So, based on a deep analysis and help from @napperley I have discovered that the
ktor-client-curl
library on a linuxX64 target fails to located libcurl,
cannot find -lcurl
I can add a def file but that would fail in my CI encironment. I am confident that I have installed libcurl while I installed curl but I am open to know if that's not the case So, how does one go about having a configuration that can run locally and on CI?
r

rnett

07/15/2021, 7:17 AM
Did you install
libcurl4-openssl-dev
or
libcurl4-gnutls-dev
? Just the cli isn't enough. See https://github.com/JetBrains/kotlin/tree/master/kotlin-native/samples/libcurl
👍 3
a

andylamax

07/15/2021, 7:36 AM
that was it then. Much much thanks
apt-get install libcurl4-openssl-dev
did the trick