Asp。Net Core 2.0 Linux Arm - SQLIte发行

时间:2020-11-25 11:59:19

we are currently trying to run asp.net core 2.0 (latest preview) on Linux arm (Raspberry Pi - Ubuntu Mate) and we were able to solve almost all the issues so application works very well.

我们目前正在尝试在Linux arm上运行asp.net核心2.0(最新预览版),并且我们能够解决几乎所有的问题,因此应用程序运行得非常好。

Not we are trying to run it with SQL Db (Sqlite) and on Windows, everything works fine, we can connect and read the DB but on the linux, we are getting following error: System.DllNotfoundException: Unable to load DLL 'e_sqlite3': The specified module or one of its dependencies could not be found. (Exception from HRESULT: 0x8007007E).

我们不是试图用SQL Db (Sqlite)和Windows来运行它,一切都很好,我们可以连接和读取Db,但是在linux上,我们有以下错误:系统。DllNotfoundException:无法加载DLL 'e_sqlite3':无法找到指定的模块或其依赖项。(从HRESULT例外:0 x8007007e)。

I think I already tried everything, installed sqlite on linux, but nothing helped.

我想我已经尝试了一切,在linux上安装了sqlite,但是没有任何帮助。

Any idea what might be wrong?

你知道什么地方不对劲吗?

Thanks a lot Rado

非常感谢雷达手表

3 个解决方案

#1


1  

i changed the library that I used to connect to sqlite to this one https://www.nuget.org/packages/sqlite-net-pcl/

我更改了用于连接到sqlite的库,这是一个https://www.nuget.org/packages/sqlite-net-pcl/。

and then (and not sure why), on linux, i had to take their implementation of SQLite.cs and manually add it to the project. So for Linux, i had to have that CS included and for windows, i just excluded it so the one which was part of DLL works. Didn't do more investigation, but it works on Windows and Linux as well. If you need more help just let me know.

然后(不知道为什么),在linux上,我不得不采用他们的SQLite实现。cs并手动将其添加到项目中。所以对于Linux,我必须包含CS对于windows,我只是排除了它所以DLL的一部分可以工作。没有做更多的调查,但它也适用于Windows和Linux。如果你需要更多的帮助,请告诉我。

https://github.com/oysteinkrog/SQLite.Net-PCL

https://github.com/oysteinkrog/SQLite.Net-PCL

This file: https://github.com/praeclarum/sqlite-net/blob/master/src/SQLite.cs

这个文件:https://github.com/praeclarum/sqlite-net/blob/master/src/SQLite.cs

Thanks Rado

由于雷达手表

#2


1  

I think we'll have to wait, the issue isn't closed.

我想我们得等一等,这个问题还没有解决。

UPDATE:

更新:

this issue is closed and launched new version. You only need install the last version 1.1.8 of the package SQLitePCLRaw.bundle_green and SQLite in ARM works fine.

这个问题被关闭并启动了新版本。您只需安装软件包SQLitePCLRaw的最后一个版本1.1.8。bundle_green和SQLite在ARM中工作得很好。

#3


0  

I am having the same issue and I after some investigation I think this happens because e_sqlite3.dll for ARM is not (yet) included the SQLitePCLRaw.bundle_green package.

我也有同样的问题,经过调查,我认为这是因为e_sqlite3。ARM的dll还没有包含SQLitePCLRaw。bundle_green包。

This package contains the dll for different architectures but linux-arm is not yet mentioned in the dependencies (linux, osx and v110xp (win7) are).

这个包包含用于不同架构的dll,但是依赖项中还没有提到linux-arm (linux、osx和v110xp (win7))。

We probably have to wait until the .NET Core ARM team adds it properly...

我们可能需要等到。net Core ARM团队正确地添加它……

#1


1  

i changed the library that I used to connect to sqlite to this one https://www.nuget.org/packages/sqlite-net-pcl/

我更改了用于连接到sqlite的库,这是一个https://www.nuget.org/packages/sqlite-net-pcl/。

and then (and not sure why), on linux, i had to take their implementation of SQLite.cs and manually add it to the project. So for Linux, i had to have that CS included and for windows, i just excluded it so the one which was part of DLL works. Didn't do more investigation, but it works on Windows and Linux as well. If you need more help just let me know.

然后(不知道为什么),在linux上,我不得不采用他们的SQLite实现。cs并手动将其添加到项目中。所以对于Linux,我必须包含CS对于windows,我只是排除了它所以DLL的一部分可以工作。没有做更多的调查,但它也适用于Windows和Linux。如果你需要更多的帮助,请告诉我。

https://github.com/oysteinkrog/SQLite.Net-PCL

https://github.com/oysteinkrog/SQLite.Net-PCL

This file: https://github.com/praeclarum/sqlite-net/blob/master/src/SQLite.cs

这个文件:https://github.com/praeclarum/sqlite-net/blob/master/src/SQLite.cs

Thanks Rado

由于雷达手表

#2


1  

I think we'll have to wait, the issue isn't closed.

我想我们得等一等,这个问题还没有解决。

UPDATE:

更新:

this issue is closed and launched new version. You only need install the last version 1.1.8 of the package SQLitePCLRaw.bundle_green and SQLite in ARM works fine.

这个问题被关闭并启动了新版本。您只需安装软件包SQLitePCLRaw的最后一个版本1.1.8。bundle_green和SQLite在ARM中工作得很好。

#3


0  

I am having the same issue and I after some investigation I think this happens because e_sqlite3.dll for ARM is not (yet) included the SQLitePCLRaw.bundle_green package.

我也有同样的问题,经过调查,我认为这是因为e_sqlite3。ARM的dll还没有包含SQLitePCLRaw。bundle_green包。

This package contains the dll for different architectures but linux-arm is not yet mentioned in the dependencies (linux, osx and v110xp (win7) are).

这个包包含用于不同架构的dll,但是依赖项中还没有提到linux-arm (linux、osx和v110xp (win7))。

We probably have to wait until the .NET Core ARM team adds it properly...

我们可能需要等到。net Core ARM团队正确地添加它……