Skip to content

node sqlite3 package doesn't work #1854

Description

@andy-zhou

Steps to recreate:

From fresh Termux:

apt install g+ cmake python2 yarn   # Install dependencies
npm config set python $PREFIX/bin/python2.7   # Set python path for node gyp
npm install -g node-gyp   # Install node-gyp globally
npm install sqlite3   # Build sqlite3
node -e "require('sqlite3')"   # failed test

I'm using a Asus C302 with Version 62.0.3202.97 (Official Build) (64-bit).

Any ideas?

-Andy

Edit: I forgot to add the error

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

Error: dlopen failed: /data/data/com.termux/files/home/node_modules/sqlite3/lib/binding/node-v57-android-ia32/node_sqlite3.node: has text relocations
    at Object.Module._extensions..node (module.js:664:18)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/data/data/com.termux/files/home/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-i686Issue reproducible on packages compiled for i686inactiveNo activity in a certain period of timenodejsIssue is about Node.js related stuff, including npm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions