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

时间:2016-06-22 23:53:23

标签: jupyter jupyter-notebook iruby

我正在尝试将IRuby内核添加到我的Jupyter中,以便我可以在Ruby上编写注释,因为我刚开始学习解决Ruby中的问题。 在IRuby doc上,我应该执行以下命令:

gem install rbczmq
gem install iruby

然而,当我gem install rbczmq时,我被拒绝了。当我sudo gem install rbczmq时,我得到以下内容:

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安装到我的Jupyter?谢谢!

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,经过数小时的反复试验,我终于设法安装了它。

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

我希望这会有所帮助