Peter Vandenabeele wrote in post #969157: > That is strange. Maybe try to check which constants where added > when you execute the "require 'pg'" command ? > > $ irb > ruby-1.9.2-p0 > c = Object.constants ; nil #=> nil (remember constants) > ruby-1.9.2-p0 > require 'pg' #=> true > ruby-1.9.2-p0 > Object.constants - c # which constants where added? > => [:ConditionVariable, :Queue, :SizedQueue, :Etc, :RbConfig, :Config, > :CROSS_COMPILING, :Date, :Pathname, :PGError, :PGconn, :PGresult] > ruby-1.9.2-p0 > PGconn #=> PGconn (constant is defined ) > ruby-1.9.2-p0 > cn = PGconn.open(:dbname => 'movies') > PGError: could not connect to server: No such file or directory > ... > > HTH, > > Peter
First, I like your way of checking the constants. Being dense, I did that manually when I had to - thanks much! Now, something is DEFINITELY wrong. Here is the result of my run: irb(main):001:0>c = Object.constants ---whole bunch of constants displayed --- irb(main):002:0> require 'pg' => true irb(main):003:0> Object.constants - c => [] What in heaven's name could cause this? ---Michael -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

