通过rubygems安装haml / sass

时间:2010-06-23 18:56:20

标签: rubygems haml sass

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 Lenny OS。

之前是否有人遇到此问题或知道它可能是什么?

额外信息:

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目录

2 个答案:

答案 0 :(得分:2)

确定。我用:/var/lib/gems/1.8/bin添加了我的$ PATH,这似乎可以解决问题。

答案 1 :(得分:1)

“找不到自述文件”通知不是错误。 Haml不使用RDoc,但Rubygems没有很好的说法,所以它仍然在寻找README.rdoc。