views:

847

answers:

2

I am currently following the Compass Primer

I've followed all the steps for installation on Ubuntu 8.10, and when I try to run it, to ensure that it's installed correctly, it gives me a big mess of errors:

 sudo /var/lib/gems/1.8/bin/compass
 /var/lib/gems/1.8/gems/chriseppstein-compass-0.3.8/lib/compass/commands
 /install_rails.rb:5: uninitialized constant Compass::Commands::CreateProject (NameError)
 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
 from /var/lib/gems/1.8/gems/chriseppstein-compass-0.3.8/lib/compass/exec.rb:181
 from /var/lib/gems/1.8/gems/chriseppstein-compass-0.3.8/lib/compass/exec.rb:180:in `each'
 from /var/lib/gems/1.8/gems/chriseppstein-compass-0.3.8/lib/compass/exec.rb:180
 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
 from /var/lib/gems/1.8/gems/chriseppstein-compass-0.3.8/bin/compass:5
 from /var/lib/gems/1.8/bin/compass:19:in `load'
 from /var/lib/gems/1.8/bin/compass:19

As I stated in my previous question, I'm pretty new to Ruby so I was wondering if anybody knew how I could fix this error.

A: 

According to the Compass homepage, this kind of error can occur if you don't have the latest version of Haml installed. Do you?

Chuck
+3  A: 

As of May 11, 2009, the documented procedure:

git clone git://github.com/nex3/haml.git
cd haml
rake install

Did not properly satisfy the haml-edge requirement needed to install compass. Instead, I needed to download the latest haml-edge gem directly from Haml's RubyForge page.

gem install haml-edge-*.gem
Ray Myers
It will be very nice when they get around to releasing the dang thing so we don't have to futz around with whatever the git head is at the moment.
Chuck