首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >失败: gem安装rbczmq由于autogen错误

失败: gem安装rbczmq由于autogen错误
EN

Stack Overflow用户
提问于 2016-06-22 23:53:23
回答 1查看 980关注 0票数 0

我正在尝试将IRuby内核添加到我的Jupyter中,这样我就可以在Jupyter上写笔记了,因为我刚刚开始学习解决Ruby中的问题。在IRuby文档上,我应该执行以下命令:

代码语言:javascript
复制
gem install rbczmq
gem install iruby

然而,当我做gem install rbczmq时,我会被拒绝许可。当我做sudo gem install rbczmq时,我得到以下信息:

代码语言:javascript
复制
Building native extensions.  This could take a while...
ERROR:  Error installing rbczmq:
    ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/rbczmq-1.7.9/ext/rbczmq
/usr/bin/ruby2.3 -r ./siteconf20160623-27886-pogml8.rb extconf.rb
"./autogen.sh"
autogen.sh: error: could not find libtool.  libtool is required to run     autogen.sh.
ZeroMQ autogen failed!
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.      You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
    --with-system-libs
    --without-system-libs


extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/rbczmq-1.7.9     for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-    linux/2.3.0/rbczmq-1.7.9/gem_make.out

我想知道如何解决这个问题,并安装IRuby到我的木星?谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-06-26 21:51:34

我也遇到了同样的问题,经过几个小时的反复试验,我终于成功地安装了它。

我用sudo apt-get install libtool-bin,然后用sudo gem install rbczmq

我希望这能帮到你

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37980055

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档