1

(这里是红宝石的新手)

我正在运行CrunchBang Linux statler

我已经卸载并重新安装compass了几次,只是为了确保。

这就是我所做的:

» gem query

*** LOCAL GEMS ***

chunky_png (1.2.7)
fssm (0.2.10)
sass (3.2.5)

接着:

» sudo gem install compass
Successfully installed compass-0.12.2
1 gem installed
Installing ri documentation for compass-0.12.2...
Installing RDoc documentation for compass-0.12.2...

让我们检查:

» gem query

*** LOCAL GEMS ***

chunky_png (1.2.7)
compass (0.12.2)
fssm (0.2.10)
sass (3.2.5)

和:

» gem which compass
/var/lib/gems/1.8/gems/compass-0.12.2/lib/compass.rb

但:

» compass
-bash: compass: command not found

那么,我做错了什么?

4

2 回答 2

6

如果您正在使用rbenv,请运行$ rbenv rehash.

每当您安装包含可执行文件的 gem(通常是.../bin/<someExecutable>.

于 2014-06-25T04:19:26.393 回答
4

它似乎gem在 Ubuntu 中被破坏了。需要以下内容:

PATH=/var/lib/gems/1.8/bin:$PATH
于 2013-02-12T15:13:36.997 回答