Node.js错误:libcouchbase.so.2:无法打开共享库文件:没有这样的文件或目录 [英] Nodejs error : libcouchbase.so.2: cannot open shared object file: No such file or directory
问题描述
我正在研究一个nodejs项目.它可以在我的笔记本电脑上运行,但是当我尝试在桌面上运行它时会抛出错误:
I am working on a nodejs project. Its working in my laptop but when I tried to run it in my desktop it is throwing error :
libcouchbase.so.2:无法打开共享对象文件:没有这样的文件或目录
libcouchbase.so.2: cannot open shared object file: No such file or directory
有人可以建议我怎么了吗?
Can anybody suggest me what could be the wrong?
预先感谢
推荐答案
也许可以帮助某人:看起来共享库应该位于/usr/lib/libcouchbase.so.2 但是安装脚本将 libcouchbase.so.2
安装到/usr/local/lib/libcouchbase.so.2.
,所以我只是将其链接到/usr/lib/libcouchbase.so.2
,对我来说很好.
Maybe it could help somebody:
Looks like the shared library should be in /usr/lib/libcouchbase.so.2
But the install script installed libcouchbase.so.2
to /usr/local/lib/libcouchbase.so.2.
So I just linked it to /usr/lib/libcouchbase.so.2
and that works fine for me.
这篇关于Node.js错误:libcouchbase.so.2:无法打开共享库文件:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!