我在试着运行https://github.com/aspnet/home的样本
我遵循了文档的所有步骤,但我无法使它工作。
我正在运行dnx . kestrel (在CentOS上),错误是:
System.InvalidOperationException: Unable to load libuv. Make sure libuv is installed and available as libuv.so.1
at Microsoft.AspNet.Server.Kestrel.Networking.Libuv.Load (System.String dllToLoad) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.Server.Kestrel.KestrelEngine..ctor (ILibraryManager libraryManager, IApplicationShutdown appShutdownService) [0x00000] in <filename unknown>:0
at Kestrel.ServerFactory.Start (IServerInformation serverInformation, System.Func`2 application) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.Hosting.Internal.HostingEngine.Start () [0x00000] in <filename unknown>:0我有libuv.so.1.0.0在/usr/local/lib
[/usr/local/lib]$ ls
libuv.a libuv.la libuv.so libuv.so.1 libuv.so.1.0.0 pkgconfig我还为libuv.so.1在/usr/lib和/usr/lib64中添加了符号链接。
我甚至检查了kestrel源代码,但我找不到问题所在。
我遗漏了什么?
发布于 2015-08-12 23:12:50
将库加载程序路径设置为包含本地库dir,而LoadLibrary在Libuv.cs中应该可以找到它:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
dnx . kestrelman dlopen获得更多详细信息:
Linux Shared Library Search Path
From the dlopen(3) man page, the necessary shared libraries needed by the program are searched for in the following order:
1) A colon-separated list of directories in the user’s LD_LIBRARY_PATH environment variable.
2)....https://stackoverflow.com/questions/31976732
复制相似问题