1
我已經刪除了所有環境變量和ruby/ironruby目錄,並重新從頭開始重新安裝。然後我通過igem安裝了摩卡。這是我的輸出。無法加載IronRuby中的寶石
$ ir
IronRuby 0.9.1.0 on .NET 2.0.50727.3082
Copyright (c) Microsoft Corporation. All rights reserved.
>>> require 'mocha'
:0:in `require': no such file to load -- mocha (LoadError)
from :0
列出我已安裝的寶石。 。 。
$ igem list --local
*** LOCAL GEMS ***
mocha (0.9.8)
rake (0.8.7)
這是我的寶石環境。
$ igem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.6 (2008-05-28 patchlevel 0) [i386-mswin32]
- INSTALLATION DIRECTORY: C:/ironruby/lib/IronRuby/../..//lib/ironruby/gems/1.8
- RUBY EXECUTABLE: C:/ironruby/lib/IronRuby/../..//bin/ir.exe
- EXECUTABLE DIRECTORY: C:/ironruby/lib/IronRuby/../..//bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mswin32-60
- GEM PATHS:
- C:/ironruby/lib/IronRuby/../..//lib/ironruby/gems/1.8
- C:/Documents and Settings/vitalim/.gem/ironruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"]
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- http://gems.github.com
希望你能HEP我這個:(
我沒有IR在這裏工作,但它可能支持-r標誌和RUBYOPT環境變量。對於MRI 1.8.6,我有(在安裝時自動創建)「RUBYOPT = -rubygems」,其中-r表示需要的庫和「ubygems」指向「rubygems」。然後再次,它可能不...... ;-) –