簡體   English   中英

安裝iruby時出現rbczmq錯誤

[英]rbczmq error when installing iruby

我試圖在Windows機器上安裝iruby,這個錯誤不斷出現。 我目前正在深入學習,我需要使用sciruby和iruby來執行所需的操作

PS C:\> gem install iruby
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing iruby:
        ERROR: Failed to build gem native extension.

    C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20150710-76680-1u0zekx.rb extconf.rb
checking for windows.h... yes
checking for winsock.h... yes
checking for main() in -lkernel32... yes
checking for main() in -lrpcrt4... yes
checking for main() in -lgdi32... yes
*** 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=C:/RailsInstaller/Ruby2.1.0/bin/ruby
        --with-kernel32lib
        --without-kernel32lib
        --with-rpcrt4lib
        --without-rpcrt4lib
        --with-gdi32lib
        --without-gdi32lib
extconf.rb:49:in `<main>': uninitialized constant GNU_CHAIN (NameError)

extconf failed, exit code 1

Gem files will remain installed in C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rbczmq-1.7.9 for inspection.
Results logged to C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/rbczmq-1.7.9/gem_make.out

請協助解決這個問題

我是python的新手,對ruby一無所知,但我覺得ipython筆記本太棒了,我想試試另一個內核,
所以我剛剛安裝了ruby並最終遇到了同樣的問題,谷歌未能幫助我,,,
但經過一個小時的@#$ @%和%@%,我真的很擅長修補東西! (@!,我找到了辦法:
編輯C:\\ Ruby22-x64 \\ lib \\ ruby​​ \\ gems \\ 2.2.0 \\ gems \\ rbczmq-1.7.9 \\ ext \\ rbczmq \\ extconf.rb
在頂部添加語句GNU_CHAIN = 1
cd C:\\ Ruby22-x64 \\ lib \\ ruby​​ \\ gems \\ 2.2.0 \\ gems \\ rbczmq-1.7.9
gem spec .... \\ cache \\ rbczmq-1.7.9.gem --ruby> .... \\ specifications \\ rbczmq-1.7.9.gem.gemspec
gem build .... \\ specifications \\ rbczmq-1.7.9.gem.gemspec
現在,寶石列表顯示“rbczmq(1.7.9)”

我對紅寶石一無所知,所以我不知道rbczmq是否真的有效
“iruby notebook”啟動succ並添加了新內核“ruby 2.2.2”,但當我選擇它時它也會說“內核錯誤”
Track back說:“OSError:[WinError 193]”

這就是我現在所能提供的所有幫助,所以也許你現在可以弄明白並告訴我如何讓新內核做到這一點

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM