gpt4 book ai didi

python - 无法在 Ubuntu 上安装 ZeroRPC

转载 作者:太空宇宙 更新时间:2023-11-03 15:34:40 26 4
gpt4 key购买 nike

我一直在尝试在 Ubuntu 上安装 ZeroRPC。我已经安装了 ZeroMQ,但在安装 ZeroRPC 时出现了这些错误。我基本上是在后台从 node.js 运行一个 python 脚本,它发送 JSON 对象并从 python 代码接收 JSON。此外,Python 代码必须始终在后端运行。

gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:354: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 Linux 4.4.0-21-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/user/node_modules/msgpack
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

/home/user
`-- python-shell@0.4.0

npm WARN enoent ENOENT: no such file or directory, open '/home/user/package.json'
npm WARN user No description
npm WARN user No repository field.
npm WARN user No README data
npm WARN user No license field.
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "zerorpc"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE

npm ERR! msgpack@1.0.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the msgpack@1.0.2 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the msgpack 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 information on how to open an issue for this project with:
npm ERR! npm bugs msgpack
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls msgpack
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/user/npm-debug.log

npm ERR! npm bugs msgpack
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls msgpack
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/user/npm-debug.log

安装失败并卡住了。

最佳答案

该错误与构建 msgpack 失败有关,而不是与 Zerorpc 有关。尝试按照错误消息的指示进行操作。这将帮助您成功构建 msgpack。

关于python - 无法在 Ubuntu 上安装 ZeroRPC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42619857/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com