Try this: 1. Log in as "root". 2. #cpan 3. #cpan>install Bundle::DBD::Pg
Have fun! Oscar Plameras On Tue, Mar 8, 2011 at 6:11 PM, Ludwig Isaac Lim <[email protected]> wrote: > Hi: > > I'm unable to use DBD::Pg for a perl app I wrote. > > Here are the steps that I did: > * Install latest version of PostgreSQL (build from scratch) > * Install DBD::Pg using cpan > > The test failed with an error message similar to the one below, but I was > able to install it using the command prompt without problem : > * perl Makefile.PL > * make > * make install > > I'm getting the following error messages in the browser : > > Software error: > > install_driver(Pg) failed: Can't load > '/usr/local/lib64/perl5/auto/DBD/Pg/Pg.so' > for module DBD::Pg: libpq.so.5: cannot open shared object file: No such file > or > directory at /usr/lib64/perl5/DynaLoader.pm line 200. > at (eval 5) line 3 > Compilation failed in require at (eval 5) line 3. > Perhaps a required shared library or dll isn't installed where expected > at /var/www/cgi-bin/get_info.pl line 21 > > > I tried copying libpq.so.5 into /usr/local/lib64/perl5/auto/DBD/Pg/ > > Permissions look fine for both libpq.so.5 and Pg.so > > [postgres@haselbytest10 Pg]$ cat /proc/version > Linux version 2.6.32-71.el6.x86_64 ([email protected]) > > [postgres@haselbytest10 Pg]$ cat /etc/issue > Red Hat Enterprise Linux Server release 6.0 (Santiago) > > [root@haselbytest10 data]# cat PG_VERSION > 9.0 (9.0.3 actually, just downloaded it) > > Thanks in advance. > > Regards, > Ludwig > > _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

