gpt4 book ai didi

ruby - 安装iruby时出现rbczmq错误

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

我正在尝试在 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 notebook 非常棒,我想试试另一个内核,
所以我刚刚安装了 ruby​​ 并最终遇到了同样的问题,而且 google 没有帮助我,,,
但我真的很擅长修补东西,经过一个小时的@#$@%&%@%!(@!,我找到了一个方法:
编辑 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 规范 ....\cache\rbczmq-1.7.9.gem --ruby > ....\specifications\rbczmq-1.7.9.gem.gemspec
gem 构建 ....\specifications\rbczmq-1.7.9.gem.gemspec
现在,gem 列表显示“rbczmq (1.7.9)”

我对ruby一无所知,所以我不知道rbczmq是否真的有效
“iruby notebook”启动成功并添加了新内核“ruby 2.2.2”,但当我选择它时它也显示“内核错误”
Track back 说:“OSError:[WinError 193]”

这就是我现在所能提供的全部帮助,所以也许你现在可以弄清楚并告诉我如何让新内核发挥作用

关于ruby - 安装iruby时出现rbczmq错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31340990/

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