我正在尝试在我的环境中第一次安装Mosca。但下面是安装的响应。我得到了这个错误。在我们的环境中安装了node.js之后,在安装MOSCA之前有什么要求?
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 14.5.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 /usr/local/lib/node_modules/mosca/node_modules/ascoltatori/node_modules/zmq
gyp ERR! node -v v4.2.4
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 发布于 2016-01-30 01:41:11
尝试安装build-essentials。
即,在Debian或Ubuntu上,键入
sudo apt-get install build-essentials然后在那些gyp错误的上面!消息当您尝试再次安装npm时,它应该显示类似于.../lib/X.h致命错误: Y/Y.h:没有这样的文件或目录。然后,您只需搜索使用这些头文件的库,然后apt-get安装它们。
发布于 2016-03-15 18:45:26
我在AWS Ubuntu机器上设置mosca时遇到了类似的问题。我必须安装zmq库http://zeromq.org/intro:get-the-software。
注意,您还需要安装libtool、pkg-config、build-essential、autoconf和automake。
zmq安装文档中有一个错误。我需要运行“sudo make install”,而不是文档中建议的“make install”。
https://stackoverflow.com/questions/34548012
复制相似问题