【发布时间】:2014-11-18 22:37:06
【问题描述】:
我在 Ubuntu 14.04 上安装了 Sass,但找不到命令(sass 等)。我的安装历史如下所示:
# apt-get install ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
ruby is already the newest version.
ruby set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 105 not upgraded.
# gem install sass
Fetching: sass-3.4.5.gem (100%)
Successfully installed sass-3.4.5
Installing ri documentation for sass-3.4.5
1 gem installed
# which sass
# sass -v
The program 'sass' is currently not installed. You can install it by typing:
apt-get install ruby-sass
# gem list
*** LOCAL GEMS ***
bigdecimal (1.1.0)
bundler (1.6.2)
bundler-unload (1.0.2)
executable-hooks (1.3.2)
gem-wrappers (1.2.5)
io-console (0.3)
json (1.5.5)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.5)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sass (3.4.5)
# gem uninstall sass
Remove executables:
sass, sass-convert, scss
in addition to the gem? [Yn]
Removing sass
Removing sass-convert
Removing scss
Successfully uninstalled sass-3.4.5
# gem install sass
Fetching: sass-3.4.5.gem (100%)
Successfully installed sass-3.4.5
Installing ri documentation for sass-3.4.5
1 gem installed
如果我安装 Ubuntu 的 ruby-sass 它可以工作 - 任何想法为什么 gem 安装不会?
【问题讨论】: