Bug #646

Sqlite3 Fails To Install With NPM on FreeBSD

Added by Daniel Curtis almost 9 years ago. Updated almost 9 years ago.

Package Management
Target version:
Start date:
Due date:
% Done:


Estimated time:
0.20 h
Spent time:


I encountered an error while trying to install sqlite3 via npm on FreeBSD 9.

  • The error I encountered stated:
    gyp ERR! build error 
    gyp ERR! stack Error: `gmake` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
    gyp ERR! System FreeBSD 9.3-RELEASE-p16
    gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=2.2.7" "--major=2" "--minor=2" "--patch=7" "--runtime=node" "--node_abi=node-v14" "--platform=freebsd" "--target_platform=freebsd" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=" "--module_path=/usr/local/lib/node_modules/jsbin/node_modules/sqlite3/lib/binding/node-v14-freebsd-x64" "--remote_path=./sqlite3/v2.2.7/" "--package_name=node-v14-freebsd-x64.tar.gz" "--staged_tarball=build/stage/sqlite3/v2.2.7/node-v14-freebsd-x64.tar.gz" "--hosted_path=" "--hosted_tarball=" 
    gyp ERR! cwd /usr/local/lib/node_modules/jsbin/node_modules/sqlite3
    gyp ERR! node -v v0.12.7
    gyp ERR! node-gyp -v v2.0.2
    gyp ERR! not ok 
    node-pre-gyp ERR! build error 
    node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.7 --major=2 --minor=2 --patch=7 --runtime=node --node_abi=node-v14 --platform=freebsd --target_platform=freebsd --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host= --module_path=/usr/local/lib/node_modules/jsbin/node_modules/sqlite3/lib/binding/node-v14-freebsd-x64 --remote_path=./sqlite3/v2.2.7/ --package_name=node-v14-freebsd-x64.tar.gz --staged_tarball=build/stage/sqlite3/v2.2.7/node-v14-freebsd-x64.tar.gz --hosted_path= --hosted_tarball=' (1)
    node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/jsbin/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:76:29)
    node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
    node-pre-gyp ERR! stack     at maybeClose (child_process.js:1015:16)
    node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
    node-pre-gyp ERR! System FreeBSD 9.3-RELEASE-p16
    node-pre-gyp ERR! command "node" "/usr/local/lib/node_modules/jsbin/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" 
    node-pre-gyp ERR! cwd /usr/local/lib/node_modules/jsbin/node_modules/sqlite3
    node-pre-gyp ERR! node -v v0.12.7
    node-pre-gyp ERR! node-pre-gyp -v v0.5.22
    node-pre-gyp ERR! not ok 
    Failed to execute '/usr/local/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.7 --major=2 --minor=2 --patch=7 --runtime=node --node_abi=node-v14 --platform=freebsd --target_platform=freebsd --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host= --module_path=/usr/local/lib/node_modules/jsbin/node_modules/sqlite3/lib/binding/node-v14-freebsd-x64 --remote_path=./sqlite3/v2.2.7/ --package_name=node-v14-freebsd-x64.tar.gz --staged_tarball=build/stage/sqlite3/v2.2.7/node-v14-freebsd-x64.tar.gz --hosted_path= --hosted_tarball=' (1)
    npm ERR! FreeBSD 9.3-RELEASE-p16
    npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "jsbin" 
    npm ERR! node v0.12.7
    npm ERR! npm  v2.13.5
    npm ERR! code ELIFECYCLE
    npm ERR! sqlite3@2.2.7 install: `node-pre-gyp install --fallback-to-build`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the sqlite3@2.2.7 install script 'node-pre-gyp install --fallback-to-build'.
    npm ERR! This is most likely a problem with the sqlite3 package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node-pre-gyp install --fallback-to-build
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls sqlite3
    npm ERR! There is likely additional logging output above.
    npm ERR! Please include the following file with any support request:
    npm ERR!     /usr/local/www/owncloud/npm-debug.log
  • To workaround this problem, I needed to add the --sqlite=/usr/local argument:
    npm install -g sqlite3 --sqlite=/usr/local



Updated by Daniel Curtis almost 9 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 100

Updated by Daniel Curtis almost 9 years ago

  • Status changed from In Progress to Resolved

Updated by Daniel Curtis almost 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF