Where is the ActiveRecord Oracle Adapter with 2.1?

209 views
Skip to first unread message

Nate Wiger

unread,
Jun 4, 2008, 1:20:32 PM6/4/08
to Ruby on Rails: Core
I posted this on talk, but got no response.

I tried this, which worked before:

sudo gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org
--no-ri --no-rdoc

But all I get is:

ERROR: could not find activerecord-oracle-adapter locally or in a
repository

Did the Oracle Adapter move? It's not on rubyforge either.

Thanks,
Nate

Michael Schoen

unread,
Jun 5, 2008, 2:30:12 AM6/5/08
to rubyonra...@googlegroups.com
Please try again, it's working now.

SandroDS

unread,
Jun 11, 2008, 2:45:17 PM6/11/08
to Ruby on Rails: Core
I was having the same problem. Then I added the --source option.
Now I'm getting:

ERROR: While executing gem ... (NoMethodError)
undefined method `gems' for "\037\213\b":String

Any ideas?

On Jun 5, 3:30 am, Michael Schoen <msch...@gmail.com> wrote:
> Please try again, it's working now.
>
> On Jun 4, 2008, at 10:20 AM, Nate Wiger wrote:
>
>
>
> > I posted this on talk, but got no response.
>
> > I tried this, which worked before:
>
> > sudo gem install activerecord-oracle-adapter --sourcehttp://gems.rubyonrails.org

Chad Woolley

unread,
Jun 11, 2008, 8:49:53 PM6/11/08
to rubyonra...@googlegroups.com
On Wed, Jun 11, 2008 at 11:45 AM, SandroDS <sand...@gmail.com> wrote:
>
> I was having the same problem. Then I added the --source option.
> Now I'm getting:
>
> ERROR: While executing gem ... (NoMethodError)
> undefined method `gems' for "\037\213\b":String
>
> Any ideas?

* Try it on a different box
* delete ~/.gem
* upgrade RubyGems

SandroDS

unread,
Jun 12, 2008, 4:23:39 PM6/12/08
to Ruby on Rails: Core
In a different box:

rm -rf ~/.gem

gem --version
> 1.1.1

sudo gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org
> ERROR: could not find activerecord-oracle-adapter locally or in a repository

What gives?

Sandro

On Jun 11, 9:49 pm, "Chad Woolley" <thewoolley...@gmail.com> wrote:

Chad Woolley

unread,
Jun 12, 2008, 6:29:45 PM6/12/08
to rubyonra...@googlegroups.com
On Thu, Jun 12, 2008 at 1:23 PM, SandroDS <sand...@gmail.com> wrote:
>
> In a different box:
>
> rm -rf ~/.gem
>
> gem --version
>> 1.1.1
>
> sudo gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org
>> ERROR: could not find activerecord-oracle-adapter locally or in a repository
>
> What gives?

Run the prior commands as sudo. Root has a different ~/.gem.

Also, try gem list --remote --source <source> <gem name>, on some
different boxes, as non-root, after deleting ~/.gem

Jesse Hu

unread,
Jun 15, 2008, 10:45:56 PM6/15/08
to rubyonra...@googlegroups.com
Hi Michael,
 
Could please move the ActiveRecord Oracle Adapter to rubyforge so it will be more easier for us to install it? "--source http://gems.rubyonrails.org" is not easy to type :)

2008/6/5 Michael Schoen <msc...@gmail.com>:



--
Cheers,
Jesse

Michael Schoen

unread,
Jun 17, 2008, 8:15:15 AM6/17/08
to rubyonra...@googlegroups.com

On Jun 15, 2008, at 7:45 PM, Jesse Hu wrote:
Could please move the ActiveRecord Oracle Adapter to rubyforge so it will be more easier for us to install it? "--source http://gems.rubyonrails.org" is not easy to type :)

Yep, working on it.


Jesse Hu

unread,
Jun 25, 2008, 4:22:39 AM6/25/08
to rubyonra...@googlegroups.com, msc...@gmail.com
Hi Michael,

I want to submit a patch/feature request for Oracle Rails Adapter.
Where can I do?

We can't creat tickets on http://dev.rubyonrails.org/ any more. And
the source of Oracle Rails Adapter is not moved to
http://rails.lighthouseapp.com.

Thanks.

- Jesse

2008/6/17, Michael Schoen <msc...@gmail.com>:


--
Cheers,
Jesse

Michael Schoen

unread,
Jun 29, 2008, 11:00:52 PM6/29/08
to Jesse Hu, rubyonra...@googlegroups.com
In the short term, please email me the patch.

Jesse Hu

unread,
Jul 7, 2008, 1:24:16 AM7/7/08
to Michael Schoen, rubyonra...@googlegroups.com
Hi Michael,
 
I want to report a bug:
 
The latest activerecord-oracle-adapter-1.0.0.9250.gem has a dependency problem: when launch the webrick server of a Rails 2.0 project with froze Rails 2.1,  error ocurrs:
$ ruby script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.1.0 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:139:in `activate': can't activate activerecord (>= 1.15.5.7843), already activated activerecord-2.1.0] (Gem::Exception)
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:155:in `activate'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:154:in `each'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:154:in `activate'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem'
        from d:/jesse/project/connect/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:226:in `establish_connection'
        from d:/jesse/project/connect/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:216:in `establish_connection'
        from d:/jesse/project/connect/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:209:in `establish_connection'
        from ./script/../config/../vendor/rails/railties/lib/initializer.rb:332:in `initialize_database'
         ... 30 levels...
        from d:/jesse/project/connect/vendor/rails/railties/lib/commands/server.rb:39
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from script/server:3
 
It's because activerecord-oracle-adapter-1.0.0.9250 depends on ActiveReocrd >= 1.15.5.7843. I removed this dependency line and it works for me now.
 
s.add_dependency(%q<activerecord>, [">= 1.15.5.7843"])
 
Thanks.

 
2008/6/30 Michael Schoen <msc...@gmail.com>:



--
Cheers,
Jesse
Reply all
Reply to author
Forward
0 new messages