gpt4 book ai didi

Ruby 的 narray gem 在 Windows 上安装错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:51:17 25 4
gpt4 key购买 nike

我正在尝试为 Ruby 安装 NArray gem 以执行一些数学函数。我在带有 gem 2.014 的 Windows 上运行 Ruby 版本 2.0.0p353 [x64-mingw32]

当我尝试安装 NArray gem 时,它会产生以下错误:

D:\DocPerso\Workspace Ruby>gem install narray

Temporarily enhancing PATH to include DevKit...

Building native extensions. This could take a while...

ERROR: Error installing narray:

ERROR: Failed to build gem native extension.

C:/Ruby200-x64/Ruby200-x64/bin/ruby.exe extconf.rb

C:/Ruby200-x64/Ruby200-x64/bin/ruby.exe: No such file or directory -- extconf.rb (LoadError)

Gem 文件将保留安装在 C:/Ruby200-x64/Ruby200-x64/lib/ruby/gems/2.0 中。 0/gems/narray-0.6.0.8 用于检查。

结果记录到 C:/Ruby200-x64/Ruby200-x64/lib/ruby/gems/2.0.0/gems/narray-0.6 .0.8/src/gem_make.out

我已经用谷歌搜索了,但一无所获。

她让你找到我用 gem env 获得的东西:

RubyGems Environment:

  • RUBYGEMS VERSION: 2.0.14

  • RUBY VERSION: 2.0.0 (2013-11-22 patchlevel 353) [x64-mingw32]

  • INSTALLATION DIRECTORY: C:/Ruby200-x64/Ruby200-x64/lib/ruby/gems/2.0.0

  • RUBY EXECUTABLE: C:/Ruby200-x64/Ruby200-x64/bin/ruby.exe

  • EXECUTABLE DIRECTORY: C:/Ruby200-x64/Ruby200-x64/bin

  • RUBYGEMS PLATFORMS:

  • ruby

  • x64-mingw32

  • GEM 路径:
- C:/Ruby200-x64/Ruby200-x64/lib/ruby/gems/2.0.0
  • GEM 配置:
- :update_sources => true

- :verbose => true

- :backtrace => false

- :bulk_threshold => 1000
  • 远程资源:
- https://rubygems.org/

最佳答案

说明here为我工作。

AutoRun interferes with Ruby messing with child process executing and by result, affecting gem installation.

对于懒惰的人;使用以下命令将其删除:

REG DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun
REG DELETE "HKLM\Software\Microsoft\Command Processor" /v AutoRun

关于Ruby 的 narray gem 在 Windows 上安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21044459/

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