meder@dunross:~$ sudo gem install haml
Successfully installed haml-3.0.12
1 gem installed
Installing ri documentation for haml-3.0.12...
Installing RDoc documentation for haml-3.0.12...
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
meder@dunross:~$ haml
bash: haml: command not found
似乎它安装了haml然后遇到了一些东西并且没有安装完整的方式。我有 rubygems 1.3.6-2 和 ruby 1.8.x。Debian 莱尼操作系统。
以前有没有人遇到过这个问题或知道它可能是什么?
额外的信息:
meder@dunross:~$ gem list
*** LOCAL GEMS ***
haml (3.0.12, 3.0.9)
maruku (0.6.0)
syntax (1.0.0)
yard (0.5.8)
meder@dunross:~$ gem list haml
*** LOCAL GEMS ***
haml (3.0.12, 3.0.9)
更新 #1:我意识到我安装了 2 个版本的 haml,所以我把它们都去掉了:
meder@dunross:~$ sudo gem uninstall haml
Select gem to uninstall:
1. haml-3.0.9
2. haml-3.0.12
3. All versions
> 3
Successfully uninstalled haml-3.0.9
Successfully uninstalled haml-3.0.12
meder@dunross:~$ sudo gem install haml --development
Successfully installed haml-3.0.12
1 gem installed
Installing ri documentation for haml-3.0.12...
Building YARD (yri) index for haml-3.0.12...
Installing RDoc documentation for haml-3.0.12...
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
更多信息:
meder@dunross:~$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /var/lib/gems/1.8
- /home/meder/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
meder@dunross:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games
可能是 $PATH 的事情,因为它没有拾取 rubygems 目录