2010-06-23 18 views
2
[email protected]:~$ 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 
[email protected]:~$ haml 
bash: haml: command not found 

Il semble qu'il installe haml puis rencontre quelque chose et ne s'installe pas complètement. J'ai rubygems 1.3.6-2 et ruby ​​1.8.x. Debian Lenny OS.Installation de haml/sass via des rubygems

Quelqu'un a-t-il déjà eu ce problème ou sait-il ce que cela pourrait être?

Informations supplémentaires:

[email protected]:~$ gem list 

*** LOCAL GEMS *** 

haml (3.0.12, 3.0.9) 
maruku (0.6.0) 
syntax (1.0.0) 
yard (0.5.8) 
[email protected]:~$ gem list haml 

*** LOCAL GEMS *** 

haml (3.0.12, 3.0.9) 

Mise à jour # 1: j'ai réalisé que j'ai installé 2 versions de haml, donc je me suis débarrassé de tous les deux:

[email protected]:~$ 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 
[email protected]:~$ 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 

Encore plus d'informations:

[email protected]:~$ 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/ 
[email protected]:~$ echo $PATH 
/usr/local/bin:/usr/bin:/bin:/usr/games 

Peut-être une chose $ PATH en ce sens qu'il ne prend pas les répertoires rubygems

Répondre

2

Ok. J'ai ajouté mon $ PATH avec :/var/lib/gems/1.8/bin et cela semblait faire l'affaire.

1

Les avis "Impossible de trouver README" ne sont pas des erreurs. Haml n'utilise pas RDoc, mais Rubygems n'a pas un bon moyen de le dire, donc il recherche toujours README.rdoc.