Project

General

Profile

Bug #646

Sqlite3 Fails To Install With NPM on FreeBSD

Added by Daniel Curtis about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Package Management
Target version:
Start date:
08/27/2015
Due date:
% Done:

100%

Estimated time:
0.20 h
Spent time:

Description

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=https://mapbox-node-binary.s3.amazonaws.com/" "--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=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/" "--hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-v14-freebsd-x64.tar.gz" 
    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=https://mapbox-node-binary.s3.amazonaws.com/ --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=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-v14-freebsd-x64.tar.gz' (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=https://mapbox-node-binary.s3.amazonaws.com/ --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=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-v14-freebsd-x64.tar.gz' (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
    

Resources

History

#1 Updated by Daniel Curtis about 5 years ago

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

#2 Updated by Daniel Curtis about 5 years ago

  • Status changed from In Progress to Resolved

#3 Updated by Daniel Curtis about 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF