Advertisement
Guest User

npm install opencv --save

a guest
Jan 22nd, 2016
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.97 KB | None | 0 0
  1. npm install opencv --save
  2. \
  3. > opencv@4.0.0 install /home/ubuntu/node_modules/opencv
  4. > node-pre-gyp install --fallback-to-build
  5.  
  6. Package opencv was not found in the pkg-config search path.
  7. Perhaps you should add the directory containing `opencv.pc'
  8. to the PKG_CONFIG_PATH environment variable
  9. No package 'opencv' found
  10. gyp: Call to 'pkg-config --cflags "opencv >= 2.3.1"' returned exit status 1. while trying to load binding.gyp
  11. gyp ERR! configure error
  12. gyp ERR! stack Error: `gyp` failed with exit code: 1
  13. gyp ERR! stack     at ChildProcess.onCpExit (/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
  14. gyp ERR! stack     at emitTwo (events.js:87:13)
  15. gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
  16. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
  17. gyp ERR! System Linux 4.2.0-c9
  18. gyp ERR! command "/home/ubuntu/.nvm/versions/node/v4.1.1/bin/node" "/home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/ubuntu/node_modules/opencv/build/opencv/v4.0.0/Release/node-v46-linux-x64/opencv.node" "--module_name=opencv" "--module_path=/home/ubuntu/node_modules/opencv/build/opencv/v4.0.0/Release/node-v46-linux-x64"
  19. gyp ERR! cwd /home/ubuntu/node_modules/opencv
  20. gyp ERR! node -v v4.1.1
  21. gyp ERR! node-gyp -v v3.0.3
  22. gyp ERR! not ok
  23. node-pre-gyp ERR! build error
  24. node-pre-gyp ERR! stack Error: Failed to execute '/home/ubuntu/.nvm/versions/node/v4.1.1/bin/node /home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/ubuntu/node_modules/opencv/build/opencv/v4.0.0/Release/node-v46-linux-x64/opencv.node --module_name=opencv --module_path=/home/ubuntu/node_modules/opencv/build/opencv/v4.0.0/Release/node-v46-linux-x64' (1)
  25. node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/ubuntu/node_modules/opencv/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
  26. node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
  27. node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
  28. node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:817:16)
  29. node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
  30. node-pre-gyp ERR! System Linux 4.2.0-c9
  31. node-pre-gyp ERR! command "/home/ubuntu/.nvm/versions/node/v4.1.1/bin/node" "/home/ubuntu/node_modules/opencv/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
  32. node-pre-gyp ERR! cwd /home/ubuntu/node_modules/opencv
  33. node-pre-gyp ERR! node -v v4.1.1
  34. node-pre-gyp ERR! node-pre-gyp -v v0.6.17
  35. node-pre-gyp ERR! not ok
  36. Failed to execute '/home/ubuntu/.nvm/versions/node/v4.1.1/bin/node /home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/ubuntu/node_modules/opencv/build/opencv/v4.0.0/Release/node-v46-linux-x64/opencv.node --module_name=opencv --module_path=/home/ubuntu/node_modules/opencv/build/opencv/v4.0.0/Release/node-v46-linux-x64' (1)
  37. npm ERR! Linux 4.2.0-c9
  38. npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.1.1/bin/node" "/home/ubuntu/.nvm/versions/node/v4.1.1/bin/npm" "install" "opencv" "--save"
  39. npm ERR! node v4.1.1
  40. npm ERR! npm  v2.14.4
  41. npm ERR! code ELIFECYCLE
  42.  
  43. npm ERR! opencv@4.0.0 install: `node-pre-gyp install --fallback-to-build`
  44. npm ERR! Exit status 1
  45. npm ERR!
  46. npm ERR! Failed at the opencv@4.0.0 install script 'node-pre-gyp install --fallback-to-build'.
  47. npm ERR! This is most likely a problem with the opencv package,
  48. npm ERR! not with npm itself.
  49. npm ERR! Tell the author that this fails on your system:
  50. npm ERR!     node-pre-gyp install --fallback-to-build
  51. npm ERR! You can get their info via:
  52. npm ERR!     npm owner ls opencv
  53. npm ERR! There is likely additional logging output above.
  54.  
  55. npm ERR! Please include the following file with any support request:
  56. npm ERR!     /home/ubuntu/npm-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement