3

This problem is similar to the following issues:

but compass doesn't work. It's not a PATH issue reported by some others.

The canonical package gave errors.

Canonical package: sudo apt-get install ruby-compass

Used the gem instead:

Gem install: sudo gem install compass

Console output:

compass --version:

Errno::ENOENT on line 25 of /usr/lib/ruby/vendor_ruby/sass/../compass/version.rb: No such file or directory - /usr/lib/ruby/vendor_ruby/sass/../compass/../../VERSION.yml

compass watch:

LoadError on line 122 of /usr/lib/ruby/vendor_ruby/sass/../compass/configuration/data.rb: no such file to load -- compass/import-once/activate

I am not able to get compass working properly.

4

3 回答 3

15

我发现了一些有用的东西。

sudo apt-get install rubygems1.8 sudo gem install rubygems-update sudo update_rubygems sudo gem install compass

于 2014-09-03T22:05:16.567 回答
4

对于其他有同样问题的人,您应该在使用 gem 安装 compass 之前先删除规范包。

sudo apt-get remove ruby-compass
sudo gem install compass
于 2016-03-07T19:26:31.403 回答
0

当我遇到这个问题时,我尝试了很多食谱,但没有任何帮助。最后我将丢失的文件VERSION.yml手动放在目录中/usr/lib/ruby

// First, create version file:
$ cd /usr/lib/ruby
$ sudo touch VERSION.yml

// Then add following content using text editor:
$ sudo vim VERSION.yml

// Use 'i' to enter insert mode, paste the text below:
---
:build:
:major: 1
:minor: 9
:patch: 1
// And use :wq + Enter to save changes.

这是版本 1.9.1 的示例。您应该在文件中指定您的版本。

于 2016-06-09T18:58:54.240 回答