Skip to content

Missing libdl.so and other basic libraries #4938

Answered by jkotas
Theory177 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

The error with this specific error message is caused by some application or library code trying to PInvoke libdl.so directly, like this: https://github.com/Therzok/SQLitePCL.raw/blob/d86a5b5311ff4cdbba54cda49c23a776bd888663/src/cs/sqlite3_pinvoke.cs#L1255-L1257

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 libdl.so to libdl.so.2 is a fine workaround until the proper fix can be deployed.

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@scalalang2
Comment options

@iheartcsharp
Comment options

@ben-aslan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lbussell
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants