Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error of gzbridge #174

Closed
osrf-migration opened this issue Apr 15, 2020 · 4 comments · Fixed by #205
Closed

make error of gzbridge #174

osrf-migration opened this issue Apr 15, 2020 · 4 comments · Fixed by #205
Labels
bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by Anonymous.


when i try to run the command : npm run deploy --- -m local ,
the error comes out

make: *** [Debug/obj.target/gzbridge/GZNode.o] Error 4
make: Leaving directory '/home/nyf1209/gzweb/gzbridge/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/nyf1209/gzweb/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.15.0-45-generic
gyp ERR! command "/home/nyf1209/.nvm/versions/node/v12.16.2/bin/node" "/home/nyf1209/gzweb/node_modules/.bin/node-gyp" "build" "-d"
gyp ERR! cwd /home/nyf1209/gzweb/gzbridge
gyp ERR! node -v v12.16.2
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok
There are node-gyp build errors, exiting.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gzweb@1.3.0 deploy: ./deploy.sh "-c"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gzweb@1.3.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/nyf1209/.npm/_logs/2020-04-15T02_55_03_138Z-debug.log

@osrf-migration osrf-migration added major bug Something isn't working labels Apr 25, 2020
@LauraS25
Copy link

LauraS25 commented Oct 6, 2020

Hi! I have the same issue, did someone find a solution please?

@newcanopies
Copy link

newcanopies commented Jan 22, 2021

Similar error,
is gzweb build possible against node v12.20.0 ?

I already applied the ::boost patch

npm run deploy --- -m local

> gzweb@1.3.0 deploy /home/user/gzweb
> ./deploy.sh "-m" "local"

sh: 1: ./deploy.sh: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! gzweb@1.3.0 deploy: `./deploy.sh "-m" "local"`
npm ERR! Exit status 126
npm ERR! 
npm ERR! Failed at the gzweb@1.3.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2021-01-22T12_05_30_203Z-debug.log

$ npm start


> gzweb@1.3.0 start /home/esofi/moon/ros2_gzweb_node12/gzweb
> if [ $npm_config_port ]; then port=$npm_config_port; fi; cd gzbridge && ./server.js $port

internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module './build/Debug/gzbridge'
Require stack:
- /home/user/gzweb/gzbridge/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/user/gzweb/gzbridge/server.js:9:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/user/gzweb/gzbridge/server.js' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gzweb@1.3.0 start: `if [ $npm_config_port ]; then port=$npm_config_port; fi; cd gzbridge && ./server.js $port`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the gzweb@1.3.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/esofi/.npm/_logs/2021-01-22T13_26_46_279Z-debug.log

@FelipeGdM
Copy link
Contributor

Hi @newcanopies!

is gzweb build possible against node v12.20.0 ?

See #203, but in the moment the project supports node up to version 10.x

Nonetheless, I think your problem is on a previous step

sh: 1: ./deploy.sh: Permission denied

You don't have the permission to run the script. Have you cloned the repo or downloaded the .zip version?

You may solve the problem with

sudo chmod +x ./scripts/deploy.sh

It will add execute permission +x to the script

@newcanopies
Copy link

See #203, but in the moment the project supports node up to version 10.x

Thank you @FelipeGdM good to know about the underlying "change in the V8 interface between Node 10 and 12"

You don't have the permission to run the script. Have you cloned the repo or downloaded the .zip version?

git cloned/checked gzweb_1.4.0
I did catch this myself, and per your reminder, now listed it as an already performed step in building against Node 12 issue 204.

will keep my eyes peeled on your PR for Node 12 build release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants