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.

+3


source to share


3 answers


I found something that worked.



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

+16


source


For others having the same problem, you should first uninstall the canon package before installing the gem compass.



sudo apt-get remove ruby-compass
sudo gem install compass

      

+4


source


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.

0


source







All Articles