Compass not working on Ubuntu 12.04
This issue is similar to the following issues:
but the compass doesn't work. This is not a PATH issue that some others have reported.
Canonical package gave errors.
Canonical package:
sudo apt-get install ruby-compass
A gem was used instead:
Installing Gem:
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 cannot get the compass to work correctly.
source to share
When I ran into this problem I tried a lot of recipes and didn't help. Finally, I put the missing file VERSION.yml
manually into the 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 example is for version 1.9.1. You must specify your version in the file.
source to share