Gem::LoadError: Could not find RubyGem activerecord-jdbcmysql-adapter (>= 0)
----------------------------------------------------------------------------
Key: JRUBY-2016
URL: http://jira.codehaus.org/browse/JRUBY-2016
Project: JRuby
Issue Type: Bug
Components: ActiveRecord-JDBC
Affects Versions: JRuby 1.1
Environment: MacOS 10.4.11, Java 1.5.0_13, JRuby trunk r 5686
Reporter: Stephen Bannasch
Priority: Blocker
Fix For: JRuby 1.1
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:
{code}
$ 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
{code}
Get the gem (and most of it's dependencies):
{code}
$ 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...
{code}
Try to load the activerecord-jdbcmysql-adapter in irb:
{code}
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
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email