require_gem problem with first install.
Added by Jar Sconce over 15 years ago
Hello all,
I'm trying to set up redmine under Mac OS X 10.5 Server (leopard), but without success yet. I had it working once with the WEBrick server, but that failed after an reboot. Now when invoking the cgi from the command line, I get the following error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/ruby-openid-1.1.4/lib/openid/discovery.rb:8:\ undefined method `require_gem' for main:Object (NoMethodError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/ruby-openid-1.1.4/lib/openid/consumer.rb:7 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' ... 21 levels... from /Library/Ruby/Gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run' from ./../config/environment.rb:20 from ./dispatch.cgi:3:in `require' from ./dispatch.cgi:3
Anyone a suggestion to debug?
Replies (2)
RE: require_gem problem with first install.
-
Added by Jar Sconce over 15 years ago
bash-3.2# gem -v 1.3.3 bash-3.2# ruby -v ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] bash-3.2# rails -v Rails 2.3.2
RE: require_gem problem with first install.
-
Added by Eric Davis about 15 years ago
OSX ships with a (very) old version of the open_id (1.1.4). The newer 2.1.4 version is used by Redmine. If you sudo gem install ruby-openid
, it should be fixed.
Eric