宝石安装指南针不起作用

时间:2014-04-08 14:19:53

标签: amazon-web-services install

我试图在aws实例上安装指南针。 我使用:gem install compass,它显示:

Fetching: sass-3.2.19.gem (100%)
Successfully installed sass-3.2.19
Successfully installed compass-0.12.5
Parsing documentation for sass-3.2.19
Installing ri documentation for sass-3.2.19
Parsing documentation for compass-0.12.5
Done installing documentation for sass, compass after 13 seconds
2 gems installed

我认为它已成功安装,但当我尝试时: 罗盘,它显示:命令未找到;

并且:

which compass

它显示未安装在/ usr / bin

提示?

谢谢!

2 个答案:

答案 0 :(得分:0)

尝试查看:

/usr/local/bin

如果没有,可能您正在使用rvm,在这种情况下,它会出现在这样的目录中:

/usr/local/rvm/gems/ruby-2.0.0-p247/bin/compass

要查找确切的可执行文件,您只需运行

即可
find /usr/local/ -type f | grep compass

一旦找到它,您只需将该文件所在的目录添加到PATH env变量

即可
export PATH=$PATH:<Whatever directory where the compass executable is>

答案 1 :(得分:0)

尝试这些命令。首先安装build-essentials和ruby-dev软件包,安装指南针时没有错误。

sudo apt-get install build-essential

sudo apt-get install ruby​​

sudo apt-get install ruby​​-dev

sudo gem install compass