Hi 


I am trying to build a google cloud service using nodejs flexible 
environment doing image processing. I am running into an issue when 
installing node-opencv. Is there some way this can be done? Particularly if 
there is an external dependency, what is the method to install the package?


> [email protected] install /app/node_modules/opencv

> node-pre-gyp install --fallback-to-build

/app/node_modules/opencv/utils/find-opencv.js:21

                throw new Error("ERROR: failed to run: pkg-config", opencv, 
flag);

                ^


Error: ERROR: failed to run: pkg-config

    at /app/node_modules/opencv/utils/find-opencv.js:21:23

    at ChildProcess.exithandler (child_process.js:220:5)

    at emitTwo (events.js:87:13)

    at ChildProcess.emit (events.js:172:7)

    at maybeClose (internal/child_process.js:827:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

gyp: Call to 'node utils/find-opencv.js --cflags' returned exit status 1 
while in binding.gyp. while trying to load binding.gyp

gyp ERR! configure error 

gyp ERR! stack Error: `gyp` failed with exit code: 1

gyp ERR! stack     at ChildProcess.onCpExit 
(/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)

gyp ERR! stack     at emitTwo (events.js:87:13)

gyp ERR! stack     at ChildProcess.emit (events.js:172:7)

gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(internal/child_process.js:200:12)

gyp ERR! System Linux 4.4.0-34-generic

gyp ERR! command "/nodejs/bin/node" 
"/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" 
"configure" "--fallback-to-build" 
"--module=/app/node_modules/opencv/build/opencv/v5.0.0/Release/node-v46-linux-x64/opencv.node"
 
"--module_name=opencv" 
"--module_path=/app/node_modules/opencv/build/opencv/v5.0.0/Release/node-v46-linux-x64"

gyp ERR! cwd /app/node_modules/opencv

gyp ERR! node -v v4.4.7

gyp ERR! node-gyp -v v3.3.1

gyp ERR! not ok 

node-pre-gyp ERR! build error 

node-pre-gyp ERR! stack Error: Failed to execute '/nodejs/bin/node 
/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js 
configure --fallback-to-build 
--module=/app/node_modules/opencv/build/opencv/v5.0.0/Release/node-v46-linux-x64/opencv.node
 
--module_name=opencv 
--module_path=/app/node_modules/opencv/build/opencv/v5.0.0/Release/node-v46-linux-x64'
 
(1)

node-pre-gyp ERR! stack     at ChildProcess.<anonymous> 
(/app/node_modules/opencv/node_modules/node-pre-gyp/lib/util/compile.js:83:29)

node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)

node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)

node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:827:16)

node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(internal/child_process.js:211:5)

node-pre-gyp ERR! System Linux 4.4.0-34-generic

node-pre-gyp ERR! command "/nodejs/bin/node" 
"/app/node_modules/opencv/node_modules/.bin/node-pre-gyp" "install" 
"--fallback-to-build"

node-pre-gyp ERR! cwd /app/node_modules/opencv

node-pre-gyp ERR! node -v v4.4.7

node-pre-gyp ERR! node-pre-gyp -v v0.6.17

node-pre-gyp ERR! not ok 

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/fb962ae6-f797-41c8-ac19-0d5ff0533dfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to