You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 08:22:23