Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Cannot Reproduce
-
Affects Version/s: JRuby 1.1
-
Fix Version/s: JRuby 1.1RC2
-
Component/s: None
-
Labels:None
-
Environment:MacOS 10.4.11, Java 1.5.0_13, JRuby trunk r 5686
-
Number of attachments :
Description
I'm getting a Gem::LoadError when I try try use activerecord-jdbcmysql-adapter in my rails app.
Here's a simplified way to reproduce:
- get a fresh checkout of jruby trunk ( r 5686) and build it:
$ svn co http://svn.codehaus.org/jruby/trunk/jruby jruby_test
A jruby_test/test
A jruby_test/test/load
...
Checked out revision 5686.
$ cd jruby_test
$ ant
Get the gem (and most of it's dependencies):
$ jruby -S gem install activerecord-jdbcmysql-adapter Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed activerecord-jdbc-adapter-0.7.1 Successfully installed jdbc-mysql-5.0.4 Successfully installed activerecord-jdbcmysql-adapter-0.7.1 3 gems installed Installing ri documentation for activerecord-jdbc-adapter-0.7.1... Installing ri documentation for jdbc-mysql-5.0.4... Installing ri documentation for activerecord-jdbcmysql-adapter-0.7.1... Installing RDoc documentation for activerecord-jdbc-adapter-0.7.1... Installing RDoc documentation for jdbc-mysql-5.0.4... Installing RDoc documentation for activerecord-jdbcmysql-adapter-0.7.1...
Try to load the activerecord-jdbcmysql-adapter in irb:
irb(main):002:0> gem 'activerecord-jdbcmysql-adapter'
Gem::LoadError: Could not find RubyGem activerecord-jdbcmysql-adapter (>= 0)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:379:in `report_activate_error'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:311:in `activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:65:in `active_gem_with_options'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:50:in `gem'
from (irb):2
I could not reproduce this on trunk. Are you sure you didn't have an old copy of JRuby interfering?