问题
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