无法加载共享库“db2app64.dll" [英] Unable to load shared library 'db2app64.dll'
问题描述
目前正在使用 IBM DB .NET Core Provider 与 IBM DB2、Openshift 和 Linux 合作.
Currently working with IBM DB2, Openshift and Linux using the IBM DB .NET Core Provider.
运行应用程序时出错
System.DllNotFoundException:无法加载共享库db2app64.dll"或其依赖项之一.
System.DllNotFoundException: Unable to load shared library 'db2app64.dll' or one of its dependencies.
为了帮助诊断加载问题,请考虑设置 LD_DEBUG 环境变量:
In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable:
libdb2app64.dll:无法打开共享对象文件:没有这样的文件或目录在IBM.Data.DB2.Core.UnsafeNativeMethods.DB232.SQLFreeConnAttribsADONET(DB2SQLGetConnAttribsADONETParams&pParam)
libdb2app64.dll: cannot open shared object file: No such file or directory at IBM.Data.DB2.Core.UnsafeNativeMethods.DB232.SQLFreeConnAttribsADONET(DB2SQLGetConnAttribsADONETParams& pParam)
推荐答案
解决方案是参考 IBM.EntityFrameworkCore-lnx for Linux 构建.
The solution was to reference the IBM.EntityFrameworkCore-lnx for Linux builds.
.net 试图加载 windows 库 db2app64.dll,因此它抛出错误的原因.无法加载共享库 'db2app64.dll'
.net was attempting to load the windows library db2app64.dll hence the reason why it was throwing the error. Unable to load shared library 'db2app64.dll'
这篇关于无法加载共享库“db2app64.dll"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!