Problems getting up and running

10 views
Skip to first unread message

Rob Keniger

unread,
Jul 30, 2009, 3:06:21 AM7/30/09
to bananajour
I'm not a Ruby developer so please go easy on me.

I'm trying to get bananajour up and running. I've installed the gem
and all dependencies, but I get this when I run bananajour on Mac OS X
10.5.7:

/Library/Ruby/Site/1.8/rubygems.rb:578:in `report_activate_error':
RubyGem version error: ruby-openid(1.1.4 not ~> 2.0.0)
(Gem::LoadError)

I'm baffled as to why this is, as a gem list --local reports:

ruby-openid (2.1.7, 1.1.4)

Any ideas?

Dr Nic Williams

unread,
Jul 30, 2009, 3:21:40 AM7/30/09
to banan...@googlegroups.com
Try uninstalling the gem version you don't need.

sudo gem uninstall ruby-openid

and select the old version to uninstall.
--
Dr Nic Williams
Mocra - Premier iPhone and Ruby on Rails Consultants
w - http://mocra.com
twitter - @drnic
skype - nicwilliams
e - dr...@mocra.com
p - +61 412 002 126 or +61 7 3102 3237

Tim Lucas

unread,
Jul 30, 2009, 3:31:05 AM7/30/09
to banan...@googlegroups.com
On 30/07/2009, at 5:06 PM, Rob Keniger wrote:

> I'm trying to get bananajour up and running. I've installed the gem
> and all dependencies, but I get this when I run bananajour on Mac OS X
> 10.5.7:
>
> /Library/Ruby/Site/1.8/rubygems.rb:578:in `report_activate_error':
> RubyGem version error: ruby-openid(1.1.4 not ~> 2.0.0)
> (Gem::LoadError)
>
> I'm baffled as to why this is, as a gem list --local reports:
>
> ruby-openid (2.1.7, 1.1.4)

Bananajour doesn't use openid, so I'm guessing this is because of one
of the gems we're requiring.

Let's try requiring bananajour in irb to get a full stack trace and
see what the problem is:

Fire up irb:

$ irb -rrubygems

and paste:

begin
require "bananajour"
rescue Exception => e
puts e.backtrace
raise
end

and then paste the results here.

-- tim

Rob Keniger

unread,
Jul 30, 2009, 3:30:31 AM7/30/09
to banan...@googlegroups.com

On 30/07/2009, at 5:21 PM, Dr Nic Williams wrote:

> Try uninstalling the gem version you don't need.
>
> sudo gem uninstall ruby-openid
>
> and select the old version to uninstall.


Excellent, seems to have fixed it. Many thanks.

--
Rob Keniger

Rob Keniger

unread,
Jul 30, 2009, 3:36:13 AM7/30/09
to banan...@googlegroups.com

On 30/07/2009, at 5:31 PM, Tim Lucas wrote:
> Bananajour doesn't use openid, so I'm guessing this is because of one
> of the gems we're requiring.
>
> Let's try requiring bananajour in irb to get a full stack trace and
> see what the problem is:
>
> Fire up irb:
>
> $ irb -rrubygems
>
> and paste:
>
> begin
> require "bananajour"
> rescue Exception => e
> puts e.backtrace
> raise
> end
>
> and then paste the results here.
>
> -- tim


Sure, here you go:

/Library/Ruby/Site/1.8/rubygems.rb:578:in `report_activate_error'
/Library/Ruby/Site/1.8/rubygems.rb:134:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:158:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:157:in `each'
/Library/Ruby/Site/1.8/rubygems.rb:157:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:158:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:157:in `each'
/Library/Ruby/Site/1.8/rubygems.rb:157:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:158:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:157:in `each'
/Library/Ruby/Site/1.8/rubygems.rb:157:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:158:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:157:in `each'
/Library/Ruby/Site/1.8/rubygems.rb:157:in `activate'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
(irb):2:in `irb_binding'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/irb/workspace.rb:52:in `irb_binding'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
gems/1.8/specifications/actionpack-1.13.6.gemspec:14
Gem::LoadError: Could not find RubyGem rexical (>= 0)

from /Library/Ruby/Site/1.8/rubygems.rb:578:in `report_activate_error'
from /Library/Ruby/Site/1.8/rubygems.rb:134:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:158:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:157:in `each'
from /Library/Ruby/Site/1.8/rubygems.rb:157:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:158:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:157:in `each'
from /Library/Ruby/Site/1.8/rubygems.rb:157:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:158:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:157:in `each'
from /Library/Ruby/Site/1.8/rubygems.rb:157:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:158:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:157:in `each'
from /Library/Ruby/Site/1.8/rubygems.rb:157:in `activate'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from (irb):2
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8/specifications/actionpack-1.13.6.gemspec:14>>

That doesn't look good...

--
Rob Keniger

Rob Keniger

unread,
Jul 30, 2009, 3:46:54 AM7/30/09
to banan...@googlegroups.com
I think I've fixed the problem, I had a very outdated version of
RubyGems. I've installed 1.3.5 and everything is working great.

Sorry for the trouble!

--
Rob Keniger

Rob Keniger

unread,
Jul 30, 2009, 3:54:16 AM7/30/09
to bananajour
Yep, it's working great. This is very cool. Thanks for getting the
dancing banana stuck in my head, too...

--

Rob Keniger

Dr Nic Williams

unread,
Jul 30, 2009, 4:12:56 AM7/30/09
to banan...@googlegroups.com
actionpack-1.13.6.gemspec - wow! I think that is from 2006 or so :)

sudo gem update --system
sudo gem install rails

:)

Rob Keniger

unread,
Jul 30, 2009, 4:14:48 AM7/30/09
to banan...@googlegroups.com

On 30/07/2009, at 6:12 PM, Dr Nic Williams wrote:

> actionpack-1.13.6.gemspec - wow! I think that is from 2006 or so :)


LOL, I did say I wasn't a ruby developer... all is fine now.

--
Rob Keniger

Tim Lucas

unread,
Jul 30, 2009, 5:16:01 AM7/30/09
to banan...@googlegroups.com
On 30/07/2009, at 5:54 PM, Rob Keniger wrote:

> Yep, it's working great. This is very cool. Thanks for getting the
> dancing banana stuck in my head, too...

hah, very good! Mission succeeded on both counts.

-- tim

Reply all
Reply to author
Forward
0 new messages