Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help me to install nodejs package sqlite3 plz #363

Closed
rafis opened this issue Jul 20, 2016 · 9 comments
Closed

Help me to install nodejs package sqlite3 plz #363

rafis opened this issue Jul 20, 2016 · 9 comments
Labels

Comments

@rafis
Copy link

rafis commented Jul 20, 2016

CPU: aarch64
Anroid: 5.0.2

While linking nodejs package sqlite3 I'm getting undefined reference to v8 and libuv, details in attached file.

npm-debug2.log.txt

I have installed apt install libuv-dev nodejs-dev, but cannot find libv8-dev, and anyway seems it doesn't helps.

@clausreinke
Copy link

Could be the same as #307.

@rafis
Copy link
Author

rafis commented Aug 30, 2016

Thank you, @clausreinke . Yes, it had -shared -rdynamic and removing -pie from common.gypi helped.

@fornwall
Copy link
Member

Closing this in favour of tracking the problem in #307.

@rafis
Copy link
Author

rafis commented Sep 3, 2016

But after I've created simple JavaScript script to test:

var sqlite = require('sqlite3');

And it throws an error:

module.js:568
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: dlopen failed: cannot locate symbol "uv_close" referenced by "/data/data/com.termux/files/home/project/node_modules/sqlite3/lib/binding/node-v48-android-arm64/node_sqlite3.node"...
    at Error (native)
    at Object.Module._extensions..node (module.js:568:18)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/data/data/com.termux/files/home/project/www/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)

@fornwall
Copy link
Member

@rafis Thanks! This problem with process.dlopen has now been fixed in the 6.6.0-1 update of the nodejs package, to which one can update with

apt update && apt upgrade

@gorrioncillo
Copy link

sorry but i can't install sqlite3 for nodejs, i already remove -pie
command: npm install sqlite3 -g
i have node 6.9.1
sorry i know that this thread is close but i need help
thanks

@fornwall
Copy link
Member

fornwall commented Dec 2, 2016

@gorrioncillo What error do you get? Have you installed what you need for building (I guess something like apt install clang make nodejs-dev libuv-dev)?

@gorrioncillo
Copy link

yes, i have those libs.
node-pre-gyp install --fallback-to-build
i guess thats the problem, even prove this:
TryGhost/node-sqlite3#612

@p4cm4n
Copy link

p4cm4n commented Jul 26, 2017

It's still the same problem happening? is there any ideas?

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants