PSSQLite icon indicating copy to clipboard operation
PSSQLite copied to clipboard

PSSQLite.psm1 loading the wrong .DLL on Linux!

Open Gill-Bates opened this issue 4 years ago • 0 comments

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"

Gill-Bates avatar Dec 29 '21 14:12 Gill-Bates