[ruby-dbi-users] DBI 0.4.0 & DBD::Pg gem installation issues
erik at hollensbe.org
Tue Sep 30 01:41:55 EDT 2008
On Monday 29 September 2008 12:31:55 Michael Glaesemann wrote:
> irb(main):005:0> require 'pg'
> LoadError: libpq.so.5: cannot open shared object file: No such file or
> directory - /usr/lib64/ruby/gems/1.8/gems/pg-0.7.9.2008.08.17/lib/pg.so
> from /usr/lib64/ruby/gems/1.8/gems/pg-0.7.9.2008.08.17/lib/pg.so
> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> from (irb):5
> [grzm at db05 ~]$ ls -la /usr/lib64/ruby/gems/1.8/gems/
> -rwxr-xr-x 1 root root 131132 Sep 19 12:19 /usr/lib64/ruby/gems/1.8/
> Any help or further debugging pointers would be much appreciated.
It looks like the 'pg' library did not install correctly, or for some reason
it can't dlopen libpq. I just throw bugs in their direction occasionally, and
do not work on the project itself.
http://rubyforge.org/projects/ruby-pg should be the place to report such
things; be certain to give them the output of ldd and a test case that
doesn't involve DBI, as it seems DBI's shoddy error reporting is the only
issue here (which has a long, outstanding ticket that I should get around to
Hope that helps,
More information about the ruby-dbi-users