简体   繁体   中英

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

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM