Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSSQLite.psm1 loading the wrong .DLL on Linux! #34

Open
Gill-Bates opened this issue Dec 29, 2021 · 0 comments
Open

PSSQLite.psm1 loading the wrong .DLL on Linux! #34

Gill-Bates opened this issue Dec 29, 2021 · 0 comments

Comments

@Gill-Bates
Copy link

Gill-Bates commented Dec 29, 2021

You should fix Line 8 of PSSQLite.psm1

if ($PSEdition -like 'core')

The Powershell Core x64 Global Variable $PSEdition on Linux delivers "core" instead of "Core".

Because you asking explicit for "-eq", this will result in loading the wrong DLLs:

Exception calling "Open" with "0" argument(s): "Unable to load shared library 'SQLite.Interop.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libSQLite.Interop.dll: cannot open shared object file: No such file or directory"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant