-
Notifications
You must be signed in to change notification settings - Fork 337
[UNIX] Prebuilt binaries are not working. #80
Comments
This suggestion might sound a bit odd, but what about the |
Thanks for the suggestion. Do you mean to publish a NPM module 'libnapa', and have 'napajs' depend on it? |
Yeah pretty much for |
At a glance, |
Close as solved. |
I still get an error with $ npm ls napajs
[email protected] /home/username/napa-test
└── [email protected] $ node -e "require('napajs')"
module.js:598
return process.dlopen(module, path._makeLong(filename));
^
Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/username/napa-test/node_modules/napajs/bin/libnapa.so)
... Even with the paths added.
|
Problem
Pre-built binaries are not working on Linux and MacOS.
module.js:597
return process.dlopen(module, path._makeLong(filename));
^
Error: libnapa.so: cannot open shared object file: No such file or directory
Solution
Update napa.js to version 0.1.4 or later to resolve this issue.
Workaround1.export LD_LIBRARY_PATH=./node_modules/napajs/bin:$LD_LIBRARY_PATH
before launch node.2. Usenpm install --no-fetch
so the install script will fallback to build napajs. See this for more information.Root Cause
The file 'napa-binding.node' was using absolute path in its rpath before v0.1.4. This causes the pre-built file cannot be loaded in runtime.
The text was updated successfully, but these errors were encountered: