我在 Windows 7 上并想使用http://hospice.io/。这需要 Ruby gem ,所以我使用http://rubyinstaller.org/librarian
安装了 ruby 2.0,然后从http://rubyforge.org/frs/?group_id=126下载了 RubyGems 1.8.25并更新()。我安装了.gem update --system
librarian
ruby setup.rb
gem install librarian
现在我在我的 Vagrant 盒子的文件夹中,想要执行命令librarian-chef
,但我得到了
'librarian-chef' is not recognized as an internal or external command, operable program or batch file.
我在运行 ruby 时尝试过,devkit/msys
结果相同。有什么建议如何运行吗?我猜PATH有问题,但是当gem install
工作时为什么也librarian-chef
不起作用?
gem env
:
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.3
- RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [x64-mingw32]
- INSTALLATION DIRECTORY: C:/bin/ruby/lib/ruby/gems/2.0.0
- RUBY EXECUTABLE: C:/bin/ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/bin/ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
- x64-mingw32
- GEM PATHS:
- C:/bin/ruby/lib/ruby/gems/2.0.0
- C:/Users/Andrew/.gem/ruby/2.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/