middleman/middleman — Issue #250: execjs version conflicts
Author: barkan
Created: 2012-01-25 03:34:00+00:00
State: open

I'm a total newb with Ruby, so can't solve this problem myself, unfortunately. I also can't afford to test 3.0 right now, and need to roll with a stable release. I'd ideally like to get this to a state where my coworkers can download the site from a repository with the gemfile created via bundler and have it all Just Work when they type bundler install.

Starting with the default ruby on Lion and no gems, I installed middleman. One (or more) of the gems MM requires and installs execjs, but at version 1.3.0 which caused problems for MM. i uninstalled execjs and reran gem install middleman. An older execjs was installed, it seems. I've gone round and round and it seems like execjs is the heart of the problem. Whatever version I use causes problems for somebody.

Here's what middleman is telling me now:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': RubyGem version error: execjs(1.3.0 not ~> 1.2.7) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:246:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem'
from /usr/bin/middleman:18