gpt4 book ai didi

ruby-on-rails - 在 Mountain Lion 上安装 zmq gem

转载 作者:数据小太阳 更新时间:2023-10-29 08:20:42 29 4
gpt4 key购买 nike

通过 Homebrew 软件安装了 zmq。

然后尝试运行:

$ sudo gem install zmq -- --with-zmq-dir=/usr/local
Building native extensions. This could take a while...
ERROR: Error installing zmq:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-zmq-dir=/usr/local
checking for zmq.h... yes
checking for zmq_init() in -lzmq... no
checking for zmq_init() in -lzmq... no
extconf.rb:36: Couldn't find zmq library. try setting --with-zmq-dir=<path> to tell me where it is. (RuntimeError)


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/zmq-2.1.4 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/zmq-2.1.4/gem_make.out

有什么想法吗?

最佳答案

问题是 the current gem does not work with 3.x.x .
但是,您可以使用 brew install zeromq22 安装 ZeroMQ 2.2.0,之后 gem 将安装得很好。

关于ruby-on-rails - 在 Mountain Lion 上安装 zmq gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14781751/

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