Replies: 6 comments 2 replies
-
Same problem here and I am using PdfSharp https://github.com/empira/PDFsharp |
Beta Was this translation helpful? Give feedback.
-
I solved this by linking
See this SO answer: https://unix.stackexchange.com/a/709036 |
Beta Was this translation helpful? Give feedback.
-
This answer https://stackoverflow.com/questions/75855053/how-to-address-crash-due-to-missing-libdl-so-on-ubuntu-22 says:
Does this mean Microsoft did a wrong build of dotnet? |
Beta Was this translation helpful? Give feedback.
-
The error with this specific error message is caused by some application or library code trying to PInvoke The proper fix is change the offending code to call NativeLibrary.Load managed API that abstracts away the platforms and platform version differences in native library loading. Linking |
Beta Was this translation helpful? Give feedback.
-
cc @dotnet/interop-contrib for awareness. |
Beta Was this translation helpful? Give feedback.
-
@Steve887 It works! ... Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
While using the new .net 8.0 i got this super weird error, on monday, everything worked fine, last build was on 00:15 gmt +1 (or 2 no idea actually like gets summertime accounted or not?)
Well whatever, the issue is this right here attached as a file is a docker file.
I really have no idea why this suddenly happens, i tried including libraries but i just started using docker this week and i'm kinda baffled to be honest.
Error MSG:
| Message | "Unable to load shared library 'libdl.so' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: \n/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.0-rc.2.23479.6/libdl.so: cannot open shared object file: No such file or directory\n/app/bin/Debug/net8.0/libdl.so: cannot open shared object file: No such file or directory\n/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.0-rc.2.23479.6/liblibdl.so: cannot open shared object file: No such file or directory\n/app/bin/Debug/net8.0/liblibdl.so: cannot open shared object file: No such file or directory\n/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.0-rc.2.23479.6/libdl.so.so: cannot open shared object file: No such file or directory\n/app/bin/Debug/net8.0/libdl.so.so: cannot open shared object file: No such file or directory\n/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.0-rc.2.23479.6/liblibdl.so.so: cannot open shared object file: No such file or directory\n/app/bin/Debug/net8.0/liblibdl.so.so: cannot open shared object file: No such file or directory\n" | string
As far as i know these should be "standard" libraries but i don't know anything so thats that. In the Dockerfile you see my approach on including those but since i actually don't know anything i'm not sure if this actually would help.
Edit: i should mention i tried searching the Docker Image and they're there. also why are you guys giving us a argument option in the docker compose when it literally only pastes it as a string or opens a script and prints the lines as text (just curious here bc this really grinds my gears)?
Edit2: Also to mention i'm not sure if this is smth Microsoft related or actually from the library i use for pdfs, anyway i take every straw so i posted here aswell, the original post is: https://forum.gemboxsoftware.com/t/missing-library-on-dockerized-app/1210
Edit3: This is probably the best thing i found from all around the www https://stackoverflow.com/questions/75855053/how-to-address-crash-due-to-missing-libdl-so-on-ubuntu-22
What i also forgot to mention is i switched from VS Professional to Community bc of trial ending :)
Dockerfile.txt
Kindly K
Beta Was this translation helpful? Give feedback.
All reactions