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.

Community
  • 1
  • 1
Andy
  • 2,154
  • 3
  • 20
  • 16

3 Answers3

15

I found something that worked.

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

Andy
  • 2,154
  • 3
  • 20
  • 16
4

For others having the same problem you should first remove the canonical package before installing compass with gem.

sudo apt-get remove ruby-compass
sudo gem install compass
Ahmedbc
  • 76
  • 3
0

When I faced this problem, I tried many recipes and no help. At last I put the missing file VERSION.yml manually in directory /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.

This was example for version 1.9.1. You should specify your version in the file.

Pavel Netesa
  • 2,092
  • 1
  • 16
  • 11