gpt4 book ai didi

rubygems - 通过 ruby​​gems 安装 haml/sass

转载 作者:行者123 更新时间:2023-12-04 06:51:11 24 4
gpt4 key购买 nike

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然后遇到了一些东西并且没有安装完整的方式。我有 ruby​​gems 1.3.6-2 和 ruby​​ 1.8.x。 Debian Lenny 操作系统。

有没有人以前遇到过这个问题或知道它可能是什么?

额外的信息:
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 的事情,因为它没有选择 ruby​​gems 目录

最佳答案

好的。我在 $PATH 后面加上了 :/var/lib/gems/1.8/bin这似乎奏效了。

关于rubygems - 通过 ruby​​gems 安装 haml/sass,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3104627/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com