Make sure that PG *.so path is in /etc/ld.so.conf* and do ldconfig -v

Note: Some perl modules will fail during tests so instead of doing
"install <packagename>", i do "look  <packagename>", then perl
Makefile.PL;make;make install

On Tue, Mar 8, 2011 at 11: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
>
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to