Nodejs error : libcouchbase.so.2: cannot open shared object file: No such file or directory

爱⌒轻易说出口 提交于 2019-12-11 03:41:25

问题


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: cannot open shared object file: No such file or directory

Can anybody suggest me what could be the wrong?

Thanks in advance


回答1:


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.




回答2:


You should set the NODE_PATH environment variable to the path where the shared object resides. In my case

export NODE_PATH=/usr/local/lib64

solved it.



来源:https://stackoverflow.com/questions/23631870/nodejs-error-libcouchbase-so-2-cannot-open-shared-object-file-no-such-file-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!