The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

postgresql problem

Discussion in 'General Discussion' started by NoAgendas, Aug 4, 2006.

  1. NoAgendas

    NoAgendas Guest

    I get this when using a script that is attempting to use connect to the PostgreSQL database.

    install_driver(Pg) failed: Can't load '/usr/lib/perl5/site_perl/5.8.7/i686-linux/auto/DBD/Pg/' for module DBD:g: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.7/i686-linux/ line 230.
    at (eval 46) line 3
    Compilation failed in require at (eval 46) line 3.
    Perhaps a required shared library or dll isn't installed where expected
    at /home/myuser/myuser/mgmt/perl/Directory/ line 129

    I'm using Postgresql 8.1.4


    local   all         all                               trust
    host    all         all          trust
    host    all         all         ::1/128               trust

    I installed perl module DBD:PG, recompiled apache again (of course with postgresql)...same error.

    root@server [~]# locate

    root@server [~]# perl /home/myuser/user/main/
    Segmentation fault (core dumped)

    I got that after running this:
    cp /usr/local/cpanel/lib/ /usr/lib
    service postgresql restart

Share This Page