Ubuntu环境下Bitcore安装失败求助(Node v9.11.1、npm v5.8.0)
Fixing "zmq.h: No such file or directory" When Installing Bitcore
Hey there, let’s sort out this compilation error you’re facing. The issue is straightforward: your system is missing the ZeroMQ development libraries, which the zmq Node.js dependency needs to compile its native bindings (hence the missing zmq.h header file).
Here’s how to fix it for different operating systems:
Ubuntu/Debian-based Systems
- First, install the ZeroMQ development package:
sudo apt-get update && sudo apt-get install libzmq3-dev - Then re-run your Bitcore installation command:
sudo npm install -g --unsafe-perm=true bitcore
CentOS/RHEL-based Systems
- For CentOS 7 and older:
sudo yum install zeromq-devel - For CentOS 8+ (using dnf):
sudo dnf install zeromq-devel - After installing the dependency, re-execute the Bitcore install command.
macOS
- If you use Homebrew, install ZeroMQ with:
brew install zeromq - Then run the Bitcore install command again as before.
Bonus Troubleshooting Step
If you still run into issues after installing the libraries, try clearing your npm cache first:
sudo npm cache clean --force
Then re-run the Bitcore installation.
内容的提问来源于stack exchange,提问作者coin-o-pedia c
相关产品推荐
相关产品推荐

