概述
I was recently looking into Firebird Embedded as a product that could replace SQLite in my project. The thing is, I would like to be able to use the same compilation of my application both on Windows and Linux, and unfortunately with SQLite it's not possible.
我最近在研究Firebird嵌入式产品,它可以替代我的项目中的SQLite。问题是,我希望能够在Windows和Linux上使用我的应用程序的相同编译,不幸的是,使用SQLite是不可能的。
Still, I can't get Firebird running on Linux with Mono (haven't tried Windows yet).
不过,我还是不能让Firebird在使用Mono的Linux上运行(还没有尝试过Windows)。
Things I've done:
我做的东西:
Installed Firebird ADO.NET Provider from NuGet.
安装火鸟ADO。从NuGet净提供者。
Downloaded 32 bit embedded client for Windows libraries and extracted to my bin directory: fbembed.dll, firebird.cfg, firebird.msg, ib_util.dll, icudt30.dll, icuin30.dll, icuuc30.dll.
下载32位嵌入式客户端用于Windows库,并提取到我的bin目录:fbembed。dll,火鸟。cfg,火鸟。味精,ib_util。dll,icudt30。dll,icuin30。dll,icuuc30.dll。
Created the connection string with:
创建连接字符串: string fbConnectionString = String.Format ("ServerType=1;User=SYSDBA;" + Password=masterkey;Dialect=3;Database={0};Charset=UTF8", _dbFile);
FbConnection.CreateDatabase (fbConnectionString);
Still, I get the error, that fbembed.dll is not found in the path.
我还是得到了错误,fbembed。在路径中找不到dll。
What should I do?
我应该做什么?
1 个解决方案
#1
3
The Firebird .NET provider is primarily developed for he Windows platform. The wire protocol implementation works with Mono and under Linux, so it can connect to a normal Firebird server.
Firebird。net提供程序主要是为Windows平台开发的。有线协议实现与Mono和Linux下的协议一起工作,因此它可以连接到普通的Firebird服务器。
The fbembed.dll library for Firebird Embedded is specific to Windows and cannot be loaded on linux. The .NET provider code does have support for Linux, but it looks like you need to specifically compile it for linux. I assume the NuGet package is the default version compiled with support for Windows and Embedded.
fbembed。用于嵌入Firebird的dll库是特定于Windows的,不能在linux上加载。. net提供程序代码确实支持Linux,但是看起来您需要专门为Linux编译它。我假设NuGet包是默认的版本,支持Windows和嵌入式。
最后
以上就是正直台灯为你收集整理的嵌入式linux mono,在Linux上使用Mono和Firebird的全部内容,希望文章能够帮你解决嵌入式linux mono,在Linux上使用Mono和Firebird所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复