Haml gem not working

500 views
Skip to first unread message

Lyssandro Reis

unread,
Jun 9, 2011, 10:18:24 PM6/9/11
to ha...@googlegroups.com
Hi Guys,

I cannot use sass as I can't get the haml gem to work, would somebody be able to give me a hand?

Error msg when I call sass:

$ sass
/Library/Ruby/Site/1.8/rubygems.rb:316:in `bin_path': can't find gem haml (>= 0) with executable sass (Gem::GemNotFoundException)
from /Users/lyssandroreis/.gem/ruby/1.8/bin/sass:19


Seems that it is a problem on haml gem. When I call haml it does not work. Please, see below the trace:

$ haml --trace
^C/Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:263:in `read': Interrupt
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:263:in `process_result'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:41:in `parse'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:21:in `parse!'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/haml:9
from /Users/lyssandroreis/.gem/ruby/1.8/bin/haml:19:in `load'
from /Users/lyssandroreis/.gem/ruby/1.8/bin/haml:19


However, it prints the version: 

$ haml --version
Haml 3.1.2 (Separated Sally)


Sass does not print the version:

$sass --version
/Library/Ruby/Site/1.8/rubygems.rb:316:in `bin_path': can't find gem haml (>= 0) with executable sass (Gem::GemNotFoundException)
from /Users/lyssandroreis/.gem/ruby/1.8/bin/sass:19


$ rails --version
Rails 3.0.8


$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.5
  - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-10
  - GEM PATHS:
     - /Library/Ruby/Gems/1.8
     - /Users/lyssandroreis/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:


I tried updating the gems, re-installing, and also tried gem update --system.

My compass seems to be working normally, but I really need to use my sass-convert.

Thank you so much!





Chris Eppstein

unread,
Jun 9, 2011, 10:43:02 PM6/9/11
to ha...@googlegroups.com
Rubygems likes to install things into places where you can't execute their scripts by default if you leave off the sudo. It's lame.

Do this:
export PATH=$PATH:/Users/lyssandroreis/.gem/ruby/1.8/bin

Or do this:
gem uninstall haml
gem uninstall sass
sudo gem install haml
sudo gem install sass





--
You received this message because you are subscribed to the Google Groups "Haml" group.
To view this discussion on the web visit https://groups.google.com/d/msg/haml/-/K21ROBmebn4J.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Lyssandro Reis

unread,
Jun 9, 2011, 10:49:33 PM6/9/11
to ha...@googlegroups.com
Hi Chris, thanks for your time and help.

I tried both, problem persists

$ haml --trace
^C/Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:263:in `read': Interrupt
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:263:in `process_result'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:41:in `parse'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:21:in `parse!'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/haml:9
from /Users/lyssandroreis/.gem/ruby/1.8/bin/haml:19:in `load'
from /Users/lyssandroreis/.gem/ruby/1.8/bin/haml:19


$ sass --trace
/Library/Ruby/Site/1.8/rubygems.rb:316:in `bin_path': can't find gem haml (>= 0) with executable sass (Gem::GemNotFoundException)
from /Users/lyssandroreis/.gem/ruby/1.8/bin/sass:19


I don't know what could be wrong... :/ 



Chris Eppstein

unread,
Jun 9, 2011, 10:57:03 PM6/9/11
to ha...@googlegroups.com
Uninstall everything. Try again. :(

Hunt & pecked on my iPhone... Sorry if it's brief!
--
You received this message because you are subscribed to the Google Groups "Haml" group.
To view this discussion on the web visit https://groups.google.com/d/msg/haml/-/9XwjkBueLmQJ.

Lyssandro Reis

unread,
Jun 9, 2011, 11:46:44 PM6/9/11
to ha...@googlegroups.com
Thanks Chris, I will keep on digging into it.

A little update.

I have removed sass, haml and compass. Then installed again only compass (which already installs haml and sass)

Then the error msgs changed to:

$ sass
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find haml (>= 0) amongst [RedCloth-4.2.7, abstract-1.0.0, actionmailer-3.0.8, actionmailer-3.0.7, actionpack-3.0.8, actionpack-3.0.7, activemodel-3.0.8, activemodel-3.0.7, activerecord-3.0.8, activerecord-3.0.7, activeresource-3.0.8, activeresource-3.0.7, activesupport-3.0.8, activesupport-3.0.7, acts_as_ferret-0.5.2, arel-2.1.1, arel-2.0.10, arel-2.0.9, builder-3.0.0, builder-2.1.2, bundler-1.0.14, capistrano-2.6.0, chunky_png-1.2.0, compass-0.11.1, compass-960-plugin-0.10.3, daemons-1.1.3, dnssd-2.0, erubis-2.7.0, erubis-2.6.6, fastthread-1.0.7, fcgi-0.8.8, fssm-0.2.7, highline-1.6.2, hpricot-0.8.4, html5-boilerplate-1.0.0, i18n-0.6.0, i18n-0.5.0, jk-ferret-0.11.8.3, libxml-ruby-2.0.6, mail-2.3.0, mail-2.2.19, mail-2.2.16, mime-types-1.16, net-scp-1.0.4, net-sftp-2.0.5, net-ssh-2.1.4, net-ssh-2.1.3, net-ssh-gateway-1.1.0, polyglot-0.3.1, rack-1.3.0, rack-1.2.2, rack-mount-0.8.1, rack-mount-0.6.14, rack-test-0.6.0, rack-test-0.5.7, rails-3.0.8, rails-3.0.7, railties-3.0.8, railties-3.0.7, rake-0.9.2, ruby-openid-2.1.8, rubygems-update-1.8.5, sass-3.1.2, sqlite3-1.3.3, sqlite3-ruby-1.3.3, thor-0.14.6, treetop-1.4.9, tzinfo-0.3.27, xmpp4r-0.5] (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1182:in `gem'
from /Users/lyssandroreis/.gem/ruby/1.8/bin/sass:18


Same for haml.


Compass watch seems to be working just fine.


...

Chris Eppstein

unread,
Jun 10, 2011, 12:10:43 AM6/10/11
to ha...@googlegroups.com
compass shouldn't install haml unless you're using an old version.

--
You received this message because you are subscribed to the Google Groups "Haml" group.
To view this discussion on the web visit https://groups.google.com/d/msg/haml/-/1qqACWdAPUkJ.

Lyssandro Reis

unread,
Jun 10, 2011, 1:38:08 AM6/10/11
to ha...@googlegroups.com
Well.. I just checked here


$ compass --version
Compass 0.11.1 (Antares)
Copyright (c) 2008-2011 Chris Eppstein
Released under the MIT License.
Compass is charityware.
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass


Anyone with similar problem? I am already considering reinstalling rails, gem etc.


Chris Eppstein

unread,
Jun 10, 2011, 1:47:55 AM6/10/11
to ha...@googlegroups.com
It doesn't make sense then. You said compass installed haml but thy version of compass does not. I think you've got multiple installs going on an you're fully uninstalling an old haml. 


Hunt & pecked on my iPhone... Sorry if it's brief!
--
You received this message because you are subscribed to the Google Groups "Haml" group.
To view this discussion on the web visit https://groups.google.com/d/msg/haml/-/MvprPyR7K_0J.

Lyssandro Reis

unread,
Jun 10, 2011, 2:09:34 AM6/10/11
to ha...@googlegroups.com
Yeah... I considered that, I have created the gem server

$gem server 

Looked up on my browser. Uninstalled all gems related to sass/haml/compass... all of them....

Then, when I did the sudo gem install compass. You are right, it does not install haml, only sass.

When I call sass:

$ sass -trace
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find haml (>= 0) amongst [RedCloth-4.2.7, abstract-1.0.0, actionmailer-3.0.8, actionmailer-3.0.7, actionpack-3.0.8, actionpack-3.0.7, activemodel-3.0.8, activemodel-3.0.7, activerecord-3.0.8, activerecord-3.0.7, activeresource-3.0.8, activeresource-3.0.7, activesupport-3.0.8, activesupport-3.0.7, acts_as_ferret-0.5.2, arel-2.1.1, arel-2.0.10, arel-2.0.9, builder-3.0.0, builder-2.1.2, bundler-1.0.14, capistrano-2.6.0, chunky_png-1.2.0, compass-0.11.1, compass-960-plugin-0.10.3, daemons-1.1.3, dnssd-2.0, erubis-2.7.0, erubis-2.6.6, fastthread-1.0.7, fcgi-0.8.8, fssm-0.2.7, highline-1.6.2, hpricot-0.8.4, html5-boilerplate-1.0.0, i18n-0.6.0, i18n-0.5.0, jk-ferret-0.11.8.3, libxml-ruby-2.0.6, mail-2.3.0, mail-2.2.19, mail-2.2.16, mime-types-1.16, net-scp-1.0.4, net-sftp-2.0.5, net-ssh-2.1.4, net-ssh-2.1.3, net-ssh-gateway-1.1.0, polyglot-0.3.1, rack-1.3.0, rack-1.2.2, rack-mount-0.8.1, rack-mount-0.6.14, rack-test-0.6.0, rack-test-0.5.7, rails-3.0.8, rails-3.0.7, railties-3.0.8, railties-3.0.7, rake-0.9.2, ruby-openid-2.1.8, rubygems-update-1.8.5, sass-3.1.2, sqlite3-1.3.3, sqlite3-ruby-1.3.3, thor-0.14.6, treetop-1.4.9, tzinfo-0.3.27, xmpp4r-0.5] (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1182:in `gem'
from /Users/lyssandroreis/.gem/ruby/1.8/bin/sass:18

Then I installed haml

$ sudo gem install haml
Fetching: haml-3.1.2.gem (100%)
Successfully installed haml-3.1.2
1 gem installed
Installing ri documentation for haml-3.1.2...
Installing RDoc documentation for haml-3.1.2...


Then I call sass:


$ sass
/Library/Ruby/Site/1.8/rubygems.rb:316:in `bin_path': can't find gem haml (>= 0) with executable sass (Gem::GemNotFoundException)
from /Users/lyssandroreis/.gem/ruby/1.8/bin/sass:19



FInally, I call haml; it goes for a long time until I cancel. Then you see below the trace.


$ haml --trace
^C/Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:263:in `read': Interrupt
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:263:in `process_result'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:41:in `parse'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/../lib/haml/exec.rb:21:in `parse!'
from /Library/Ruby/Gems/1.8/gems/haml-3.1.2/bin/haml:9
from /Users/lyssandroreis/.gem/ruby/1.8/bin/haml:19:in `load'
from /Users/lyssandroreis/.gem/ruby/1.8/bin/haml:19


Anyways, Thanks a lot for your attention. I will reinstall my ruby, gem etc... :/

Nathan Weizenbaum

unread,
Jun 10, 2011, 4:32:11 PM6/10/11
to ha...@googlegroups.com
Try installing the sass gem. Using it bundled with haml is deprecated anyway.
Reply all
Reply to author
Forward
0 new messages