我已经在 Windows 10 上安装了 ruby -v 2.2.4(64x) official website。设置成功完成,但红宝石不能要求宝石。每当我从IRB运行以下命令时:
require 'minitest'
输出失败:
LoadError:无法加载此类文件 - 来自C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in '要求' 来自C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in '要求' 来自(irb):1 来自C:/ Ruby22-x64 / bin / irb:11:in'<主>'
bigdecimal (1.2.6)
io-console (0.4.3)
json (1.8.1)
minitest (5.4.3)
power_assert (0.2.2)
psych (2.0.8)
rake (10.4.2)
rdoc (4.2.0)
test-unit (3.0.8)
- RUBYGEMS VERSION: 2.4.5.1
- RUBY VERSION: 2.2.4 (2015-12-16 patchlevel 230) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby22/lib/ruby/gems/2.2.0
- RUBY EXECUTABLE: C:/Ruby22/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby22/bin
- SPEC CACHE DIRECTORY: C:/Users/alexl/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Ruby22/lib/ruby/gems/2.2.0
- C:/Users/alexl/.gem/ruby/2.2.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- C:\Users\alexl\bin
- C:\Program Files\Git\mingw64\bin
- C:\Program Files\Git\usr\local\bin
- C:\Program Files\Git\usr\bin
- C:\Program Files\Git\usr\bin
- C:\Program Files\Git\mingw64\bin
- C:\Program Files\Git\usr\bin
- C:\Users\alexl\bin
- C:\ProgramData\Oracle\Java\javapath
- C:\Windows\system32
- C:\Windows
- C:\Windows\System32\Wbem
- C:\Windows\System32\WindowsPowerShell\v1.0
- C:\Program Files (x86)\Skype\Phone
- C:\HashiCorp\Vagrant\bin
- C:\Program Files (x86)\EaseUS\Todo Backup\bin
- C:\wamp\bin\php\php5.6.15
- C:\ProgramData\ComposerSetup\bin
- C:\Ruby22\bin
- C:\Users\alexl\AppData\Local\atom\bin
- C:\Program Files\Git\usr\bin\vendor_perl
- C:\Program Files\Git\usr\bin\core_perl
我已经搜索了一段时间,但找不到任何有关解决此问题的有用信息。
我已卸载 x64 版本并安装了 x86 版本。错误仍然存在