【问题标题】:Sass executables not present from gem on Ubuntu 14.04Ubuntu 14.04 上的 gem 不存在 Sass 可执行文件
【发布时间】: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 安装不会?

【问题讨论】:

    标签: ruby ubuntu gem sass


    【解决方案1】:

    我最好的猜测是某种路径问题 - Ubuntu 软件包可执行文件安装在您路径的某个位置,而 gem 可执行文件没有。

    尝试在您的系统上运行 find / -name sass 以查看可执行文件的安装位置。

    【讨论】:

      猜你喜欢
      • 2023-03-22
      • 2014-09-11
      • 2014-11-24
      • 2018-07-05
      • 2019-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多