无法编译sass:错误"无法加载此类文件 - bootstrap-sass"

时间:2016-08-25 23:02:33

标签: sass rubygems compass-sass django-pipeline

首次使用sass。我只需要使用django-pipeline编译sass,但我不能这样做会导致此错误。知道为什么吗?

我安装了请求的gem。

$ gem install bootstrap-sass
Successfully installed bootstrap-sass-3.3.7
Parsing documentation for bootstrap-sass-3.3.7
Done installing documentation for bootstrap-sass after 0 seconds
1 gem installed

然后我运行编译。

$ compass compile sass/
DEPRECATION WARNING:
Sass 3.5 will no longer support Ruby 1.9.3.
Please upgrade to Ruby 2.0.0 or greater as soon as possible.

LoadError on line ["55"] of      /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:   cannot load such file -- bootstrap-sass
Run with --trace to see the full backtrace

1 个答案:

答案 0 :(得分:0)

问题是ubuntu 14.04 LTS中的gem版本我解决了从ppa安装最新版ruby的问题:https://www.brightbox.com/docs/ruby/ubuntu/