Andy
Andy

Reputation: 2214

compass not working on Ubuntu 12.04

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.

Upvotes: 3

Views: 4919

Answers (3)

Pavel Netesa
Pavel Netesa

Reputation: 2102

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.

Upvotes: 0

Ahmedbc
Ahmedbc

Reputation: 76

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

Upvotes: 4

Andy
Andy

Reputation: 2214

I found something that worked.

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

Upvotes: 15

Related Questions