Mez Pahlan
01/03/2025, 11:00 AMOn Linux, you have to install theversion of libcurl. To install this version on Ubuntu you can run:gnutls
I'm building a simple app that runs on Linux and needs to make network requests. If I do this on Android / JVM I simply depend on my favourite HTTP library (OkHttp for example) and write code. Why do I need to download / install something else in addition to depending onCopy codesudo apt-get install libcurl4-gnutls-dev
implementation("io.ktor:ktor-client-curl:$ktor_version")
?
Why can't the requirement of installing libcurl4-gnutls-dev
be satisfied simply by pulling in ktor-client-curl
into my project?
Thanks in advance.Aleksei Tirman [JB]
01/03/2025, 11:07 AMMez Pahlan
01/03/2025, 11:10 AM.kexe
via the multiplatform build process that my binary for Linux doesn't have the ability to make HTTP requests and I need to ensure that where ever I run the binary I first also need to install libcurl
? Or is this only relevant for allowing me to compile the binary and once distributed it can run happily without further dependency installations?Aleksei Tirman [JB]
01/03/2025, 11:12 AMI need to ensure that where ever I run the binary I first also need to installYes.?libcurl
Mez Pahlan
01/03/2025, 11:15 AMlibcurl
into my final binary (static linking??) would that be possible or would that not be advised?Aleksei Tirman [JB]
01/03/2025, 2:16 PMMez Pahlan
01/03/2025, 3:42 PM