-
Notifications
You must be signed in to change notification settings - Fork 11.1k
C#: v1.16.0 can't run in Alpine OS #17255
Copy link
Copy link
Closed
Description
gRPC:
1.16.0
OS:
Alpine 3.7/3.8
dotnet sdk:
2.1.5
Application failed:
libgrpc_csharp_ext.x64.so cannot be loaded cause libnsl.so.1 not exists in Alpine packages.
If I copy libnsl.so.2 > libnsl.so.1 application starts successfully but it not looks like good workaround.
# cd ~/.nuget/packages/grpc.core/1.16.0/runtimes/linux/native
# ldd libgrpc_csharp_ext.x64.so
ldd (0x7fce64c65000)
libdl.so.2 => ldd (0x7fce64c65000)
librt.so.1 => ldd (0x7fce64c65000)
libm.so.6 => ldd (0x7fce64c65000)
libpthread.so.0 => ldd (0x7fce64c65000)
Error loading shared library libnsl.so.1: No such file or directory (needed by libgrpc_csharp_ext.x64.so)
libc.so.6 => ldd (0x7fce64c65000)
~/.nuget/packages/grpc.core/1.16.0/runtimes/linux/native # apk add libnsl
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/2) Installing libtirpc (1.0.3-r0)
(2/2) Installing libnsl (1.0.5-r2)
OK: 59 MiB in 36 packages
# cp /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1
# ldd libgrpc_csharp_ext.x64.so
...... it's OK
Reactions are currently unavailable