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

Trouble with npm install zerorpc #79

Closed
zx33 opened this issue Dec 28, 2016 · 8 comments
Closed

Trouble with npm install zerorpc #79

zx33 opened this issue Dec 28, 2016 · 8 comments

Comments

@zx33
Copy link

zx33 commented Dec 28, 2016

There are some trouble while installing zerorpc.

Here are the outputs:
gyp ERR! configure error gyp ERR! stack Error: gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355: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 Darwin 16.1.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/andybear/node_modules/zerorpc/node_modules/zmq
gyp ERR! node -v v4.3.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "zerorpc"
npm ERR! node v4.3.2
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.`

It shows that "No package 'libzmq' found", but I have installed and can get the version by using 'pkg-config --modversion libzmq'. So what should I do?

Here is the file of additional output - npm-debug.log.
npm-debug.txt

@zx33
Copy link
Author

zx33 commented Dec 28, 2016

In addition, os is mac os~

@bombela
Copy link
Member

bombela commented Dec 28, 2016

Sadly, I have no experience with MacOS, I can merely suggest to double check your library path?

@bombela
Copy link
Member

bombela commented Dec 28, 2016

Maybe try the solution mentioned at the end of #75?

@zx33
Copy link
Author

zx33 commented Dec 29, 2016

I don't think it's the problem of version of Node....

npm ERR! node v4.3.2
npm ERR! npm v2.14.12

I will try to check my library path....

Thx~

@mjhenkes
Copy link

Try brew install zeromq Seems like you need it installed first or else npm install of zerorpc will fail.

@phuze
Copy link

phuze commented Nov 8, 2017

First, install Brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then, install both zeromq and pkgConfig:

brew install pkgConfig
brew install zeromq

I have tried what I feel like is a million things, just trust me when I say use Brew.

I would also recommend you install node-gyp globally.

sudo npm install -g node-gyp

Then try rebuilding your project.

@phuze
Copy link

phuze commented Nov 8, 2017

Please close this -- open since Dec 2016. Above is the answer to all your troubles.

@zx33 zx33 closed this as completed Nov 9, 2017
@lzkelley
Copy link

lzkelley commented Jan 15, 2018

I'm trying to create a packaged app that uses zerorpc-node, but in the distribution I'm running into this same error. Shouldn't npm install the dependencies itself? @bombela @purplekrayons

Edit: the package https://github.com/zeromq/zeromq.js also uses the libzmq library right? But they don't have the same issue. How are they packaging it?

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

5 participants