2016-06-22 4 views
0

Ruby에서 문제를 해결하기 위해 학습하기 시작하면서 Ruby에 메모를 쓸 수 있도록 IRUBy 커널을 내 Jupyter에 추가하려고합니다. IRuby doc에 는, 나는 다음과 같은 명령을 할 수 있겠 : 나는 gem install rbczmq을 수행 할 때실패 : autogen 오류로 인해 gem install rbczmq

gem install rbczmq 
gem install iruby 

그러나, 나는 권한이 거부 얻을. 내가 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 
나는이 문제를 해결하고 내 Jupyter에 IRuby를 설치하는 방법을 알고 싶습니다

? 고맙습니다!

답변

0

나는 몇 시간의 시행 착오 끝에 같은 문제를 겪었고, 마침내 설치를 계속했다.

나는 sudo apt-get install libtool-bin 다음 sudo gem install rbczmq

나는이 답장을 보내

+0

감사합니다 도움이되기를 바랍니다을 사용했다. 실제로 libtool-bin을 설치했지만 여전히 작동하지 않습니다. – Nahua

+0

libtool도 설치 했습니까? 'sudo apt-get install libtool autogen autoconf automake'를 시도해보십시오. 또한 나는 rbczmq에 문제가있어서 결국'ffi-rzmq'를 사용했습니다. –

+0

다시 한번 감사드립니다. 네가 언급 한 내용과 Iruby를 설치 했어. 그러나 'iruby'또는 'iruby notebook'을 입력하면 "/var/lib/gems/2.3.0/gems/iruby-0.2.9/lib/iruby/command.rb:78:in" ': 그런 파일이나 디렉토리가 없습니다 - ipython (Errno :: ENOENT) "실수. 이 문제를 어떻게 해결할 수 있는지 아시나요? – Nahua