hi all, i wrote a small kotlin native app that use...
# ktor
d
hi all, i wrote a small kotlin native app that uses ktor client, with curl engine. i'm trying to build an alpine docker image, but i can't get it working due to missing lib dependencies. these are the libs i install:
libc6-compat libgcc libstdc++ libressl curl
(
gnutls
/
curl
same behavior) but when i run it, it won't start. ldd output says
Error loading shared library libcurl-gnutls.so.4: No such file or directory
how can i create an alpine image with
libcurl-gnutls.so.4
dependency? if i use an ubuntu image, it works without problems, i need to install
libcurl4-gnutls-dev
only
a
Can you try installing the curl-dev package?
d
nop, i've already tried at and got the same ldd error. i suppose
libcurl4-openssl-dev
!=
libcurl-gnutls
a
You can also try creating a symlink to the
libcurl4-gnutls.so
file:
Copy code
sudo ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4
❤️ 1
d
thanks, that worked
apk --no-cache add libc6-compat libgcc libstdc++ libressl curl-dev
ln -s /usr/lib/libcurl.so.4 /usr/lib/libcurl-gnutls.so.4
👍 1