I've installed the postgres-pr gem, and it is found using gem list v0.4.0. In my active record source, inside the postgresql_adapter.rb file, I've changed line 7 from: require_library_or_gem 'postgres' unless self.class.const_defined?(:PGconn) to: require_library_or_gem 'postgres-pr' unless self.class.const_defined?(:PGconn) ...to try and force it to use the postgres-pr interface, but I get the following error when loading a page: no such file to load -- postgres-pr Why can't it find that gem? OSX 10.4.X - app server Winblows XP - db server
on 2007-04-18 23:17
on 2007-04-18 23:33
> Why can't it find that gem? I seem to have gotten around it by putting the full path to the gem, and dropping the "-pr" from the gem (since there is no postgres-pr.rb file, but there is a postgres.rb file in the postgres-pr folder). New code is: require_library_or_gem '/usr/local/lib/ruby/gems/1.8/gems/postgres-pr-0.4.0/lib/postgres' unless self.class.const_defined?(:PGconn) Interesting that it can't find a gem based on the name that lists when you execute "gem list". But it's more likely indicative of my noob understanding of the require_library_or_gem function.