You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm ERR! zmq@2.13.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.13.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the zmq 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 zmq
npm ERR! There is likely additional logging output above.
Activity
schwanncheung commentedon Oct 8, 2015
安装总是提示 node-gyp rebuild 失败,这是什么原因?
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
npm ERR! zmq@2.13.0 install:
node-gyp rebuildnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.13.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the zmq 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 zmq
npm ERR! There is likely additional logging output above.
caihuiji commentedon Oct 9, 2015
这个是 zmq 没有安装成功。你说明一下你的环境吗。 或则加 qq 群179045421进行讨论一下
loskael commentedon Oct 9, 2015
@schwann168
zmq 安装依赖 node-gyp, 请先确认 node-gyp 已成功安装
参考: https://github.com/nodejs/node-gyp#installation
caihuiji commentedon Oct 9, 2015
@yorts52 node-gyp 是已经自带的了。 错误信息里面显示 zmq 没有编译通过。
schwanncheung commentedon Oct 9, 2015
@caihuiji 我用另一台机器安装了好多次,终于安装成功了,具体的原因还是不清楚。
安装不成功的环境是 Win8.1 ,已安装 VS2010、VS2013、VS2015,Ruby1.9.3,node 0.12.7,node-gyp v2.0.1
caihuiji commentedon Oct 9, 2015
@schwann168 你可以一下群,到里面询问一下,这里不太适合讨论问题 ^_^
loskael commentedon Oct 20, 2015
@schwann168 你列举的这几个里面 没有 python 2.7.x, 注意不要安装 3.x
参考: https://github.com/JustinTulloss/zeromq.node/wiki/Installation#installation-on-windows
langshaodi commentedon Nov 20, 2015
请问这是什么原因?
VaJoy commentedon Nov 22, 2015
window 下面需要zmq 需要编译,所以需要 安装 vs2013 , python 3+
然后 badjs-web 又需要 python2.7+,2.7 和 3 都得装上么?
还是说py3能向后兼容 badjs-web 的py代码?那样的话我只装3就成了
caihuiji commentedon Nov 22, 2015
@VaJoy 是因为zmq 这支持 py2.7 的编译。可以看看下面的解释
https://github.com/JustinTulloss/zeromq.node/wiki/Installation#installation-on-windows
VaJoy commentedon Nov 22, 2015
@caihuiji 该文档提到不要安装py3+版本不然会导致错误,所以当前issue提及要安装 python 3+ 不是错误的说法么?
caihuiji commentedon Nov 23, 2015
@VaJoy 我已经修复说明了为 2.7.x , thx ~
liyatang commentedon Jun 1, 2016
下文忽略
在安装的时候遇到了点问题。 分享下:
mac 去这里下载,点“POSIX tarball”下载
http://zeromq.org/intro:get-the-software
and 翻到页面后面,有句话是(坑,依赖放到这么后说明):
Make sure that libtool, pkg-config, build-essential, autoconf, and automake are installed把该装的都装吧。用Homebrew来安装,方便很多。
执行 ./configure
在make 的过程中如果遇到错误,试试 make check,看下具体错误原因是哪里。
我碰到了一个是
test_shutdown_stress的错误, 这里有答案:zeromq/libzmq#1878welkang commentedon Aug 27, 2016
@font-end-wolf 我这边npm install的时候跟你的报错是一样的,请问你的已经好了吗?
Update: 是因为没有安装zmq,然后用homebrew进行安装后解决:
brew install zeromq