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

Trying to install at Joyent SmartOS Smartmachine #236

Closed
abernardobr opened this issue Dec 28, 2013 · 5 comments
Closed

Trying to install at Joyent SmartOS Smartmachine #236

abernardobr opened this issue Dec 28, 2013 · 5 comments

Comments

@abernardobr
Copy link

I have followed the steps at your readme section "Is my production server ready for PM2?".

Tried: npm install --> Got back:

npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/usage/0.3.9
npm http 304 https://registry.npmjs.org/usage/0.3.9
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

[email protected] install /root/pm2/pm2/node_modules/usage
node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/opt/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/opt/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /opt/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/pm2/pm2/node_modules/usage
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the usage package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls usage
npm ERR! There is likely additional logging output above.

npm ERR! System SunOS 5.11
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install"
npm ERR! cwd /root/pm2/pm2
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/pm2/pm2/npm-debug.log
npm ERR! not ok code 0

Tryed NODE_ENV=development npm install --> got:

npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/usage/0.3.9
npm http 304 https://registry.npmjs.org/usage/0.3.9
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

[email protected] install /root/pm2/pm2/node_modules/usage
node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/opt/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/opt/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /opt/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/pm2/pm2/node_modules/usage
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the usage package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls usage
npm ERR! There is likely additional logging output above.

npm ERR! System SunOS 5.11
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install"
npm ERR! cwd /root/pm2/pm2
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/pm2/pm2/npm-debug.log
npm ERR! not ok code 0

Any pointers of what I need to do to be able to install?

Please, also let me know if you need any further info.

Regards.

@matejkramny
Copy link

you are missing make.

It says so down where ‘gyp ERR! stack Error ….'

Matej Kramny
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Saturday, 28 December 2013 at 11:43, Augusto Bernardo wrote:

I have followed the steps at your readme section "Is my production server ready for PM2?".
Tried: npm install --> Got back:
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm http GET https://registry.npmjs.org/usage/0.3.9
npm http 304 https://registry.npmjs.org/usage/0.3.9
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

[email protected] (mailto:[email protected]) install /root/pm2/pm2/node_modules/usage
node-gyp rebuild
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/opt/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/opt/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /opt/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/pm2/pm2/node_modules/usage
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! [email protected] (mailto:[email protected]) install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] (mailto:[email protected]) install script.
npm ERR! This is most likely a problem with the usage package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls usage
npm ERR! There is likely additional logging output above.
npm ERR! System SunOS 5.11
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install"
npm ERR! cwd /root/pm2/pm2
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/pm2/pm2/npm-debug.log
npm ERR! not ok code 0
Tryed NODE_ENV=development npm install --> got:
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm http GET https://registry.npmjs.org/usage/0.3.9
npm http 304 https://registry.npmjs.org/usage/0.3.9
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
[email protected] (mailto:[email protected]) install /root/pm2/pm2/node_modules/usage
node-gyp rebuild
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/opt/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/opt/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /opt/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/pm2/pm2/node_modules/usage
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! [email protected] (mailto:[email protected]) install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] (mailto:[email protected]) install script.
npm ERR! This is most likely a problem with the usage package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls usage
npm ERR! There is likely additional logging output above.
npm ERR! System SunOS 5.11
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install"
npm ERR! cwd /root/pm2/pm2
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/pm2/pm2/npm-debug.log
npm ERR! not ok code 0
Any pointers of what I need to do to be able to install?
Please, also let me know if you need any further info.
Regards.


Reply to this email directly or view it on GitHub (#236).

@abernardobr
Copy link
Author

I installed make: pkgin install gmake

And now I am getting the following error:

npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/usage/0.3.9
npm http 304 https://registry.npmjs.org/usage/0.3.9
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

[email protected] install /root/pm2/pm2/node_modules/usage
node-gyp rebuild

make: Entering directory /root/pm2/pm2/node_modules/usage/build' CXX(target) Release/obj.target/sysinfo/src/binding.o make: /opt/local/bin/gcc: Command not found make: *** [Release/obj.target/sysinfo/src/binding.o] Error 127 make: Leaving directory/root/pm2/pm2/node_modules/usage/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/pm2/pm2/node_modules/usage
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the usage package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls usage
npm ERR! There is likely additional logging output above.

npm ERR! System SunOS 5.11
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install"
npm ERR! cwd /root/pm2/pm2
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/pm2/pm2/npm-debug.log
npm ERR! not ok code 0

@matejkramny
Copy link

make: /opt/local/bin/gcc: Command not found

Matej Kramny
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Saturday, 28 December 2013 at 11:58, Augusto Bernardo wrote:

I installed make: pkgin install gmake
And now I am getting the following error:
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm WARN package.json [email protected] (mailto:[email protected]) No repository field.
npm http GET https://registry.npmjs.org/usage/0.3.9
npm http 304 https://registry.npmjs.org/usage/0.3.9
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

[email protected] (mailto:[email protected]) install /root/pm2/pm2/node_modules/usage
node-gyp rebuild
make: Entering directory /root/pm2/pm2/node_modules/usage/build'
CXX(target) Release/obj.target/sysinfo/src/binding.o
make: /opt/local/bin/gcc: Command not found
make: *** [Release/obj.target/sysinfo/src/binding.o] Error 127
make: Leaving directory/root/pm2/pm2/node_modules/usage/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess.handle.onexit (childprocess.js:789:12)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/pm2/pm2/node_modules/usage
gyp ERR! node -v v0.10.23
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! [email protected] (mailto:[email protected]) install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] (mailto:[email protected]) install script.
npm ERR! This is most likely a problem with the usage package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls usage
npm ERR! There is likely additional logging output above.
npm ERR! System SunOS 5.11
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install"
npm ERR! cwd /root/pm2/pm2
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.17
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/pm2/pm2/npm-debug.log
npm ERR! not ok code 0


Reply to this email directly or view it on GitHub (#236 (comment)).

@Unitech
Copy link
Owner

Unitech commented Jan 14, 2014

On Ubuntu you can install all needed developer package with sudo apt-get install build-essential maybe there is something like that on your distro

@soyuka
Copy link
Collaborator

soyuka commented May 11, 2014

As of 1bedf10 there is no C bindings anymore, this should work but I'd be glad to have a confirmation! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants