Win32Console 做安裝:win32console,不 '需要' 預期
Fetching: win32console-1.3.0-x86-mingw32.gem (100%)
Successfully installed win32console-1.3.0-x86-mingw32
1 gem installed
Installing ri documentation for win32console-1.3.0-x86-mingw32...
Installing RDoc documentation for win32console-1.3.0-x86-mingw32...
,但它並不想與require
工作。我看到這個無處不在:
require 'Win32/Console/ANSI'
但每次我嘗試它LoadError
提高。
有什麼我在這裏失蹤?我需要以某種方式配置它嗎?
P.S。:
錯誤消息:
LoadError: no such file to load -- Win32/Console/ANSI
from path/custom_require.rb:36:in `require'
from path/custom_require.rb:36:in `require'
from (irb):23
from path/irb:12:in `<main>'
gem list win32console
給出:
*** LOCAL GEMS ***
win32console (1.3.0 x86-mingw32)
gem environment
給出:
RubyGems Environment:
- RUBYGEMS VERSION: 1.7.2
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-mingw32]
- INSTALLATION DIRECTORY: rubypath/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: rubypath/bin/ruby.exe
- EXECUTABLE DIRECTORY: rubypath/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- rubypath/lib/ruby/gems/1.9.1
- userpath/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
(路徑截斷,因爲它們是長)
最後:ruby -v
:
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
嘗試發佈完整的錯誤,加上下面的命令的輸出:寶石名單win32console,寶石環境,紅寶石-v – pguardiario 2012-01-02 03:21:15
@pguardiario:已添加。 – itdoesntwork 2012-01-02 03:33:57
'rubypath'對我來說看起來很可疑。我建議從rubyinstaller.org重新安裝1.9.3安裝程序 – pguardiario 2012-01-02 03:55:55