Hi, I'm trying to run ktor with `libcurl` natively...
# ktor
h
Hi, I'm trying to run ktor with
libcurl
natively on linux. I do have dependencies declared and
libcurl
installed. But I'm getting this error :
x86_64-unknown-linux-gnu/bin/ld.gold: error: cannot find -lcurl
followed by more
libcurl
related errors. Tried disabling the compiler cache as suggested but it makes no difference
a
How did you install libcurl?
h
It was already installed, probably was a dependence for something else
Oops, mistake is on my end I guess,
libcurl
itself is not enough, you would need the
libcurl-devel
package installed. Of course it is obvious for developers who have native development experience, but I think it would be a bit more helpful for non-experienced developers if it was specifically stated in the docs.
k
it's actually not that obvious since depending on distribution
libcurl
might actually be just enough. It's in general a bit tricky sometimes to get all the paths in place and working with cinterop, but it's a matter of some experience and then things become a bit more straightforward 🙂
a
There is a similar issue about that.