X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 25645D1B54C for ; Thu, 20 Nov 2003 21:25:11 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 19021-02 for ; Thu, 20 Nov 2003 17:24:41 -0400 (AST) Received: from mail.mattdavies.net (unknown [64.122.21.130]) by svr1.postgresql.org (Postfix) with ESMTP id C90D9D1C950 for ; Thu, 20 Nov 2003 17:24:37 -0400 (AST) Received: (qmail 13720 invoked by uid 89); 20 Nov 2003 21:24:38 -0000 Received: from unknown (HELO matt.mattdavies.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2003 21:24:38 -0000 Received: (from nobody@localhost) by matt.mattdavies.net (8.12.8p1/8.12.8/Submit) id hAKLObId013717; Thu, 20 Nov 2003 14:24:37 -0700 (MST) X-Authentication-Warning: matt.mattdavies.net: nobody set sender to matt@mattdavies.net using -f Received: from hif-koby5.hill.af.mil (hif-koby5.hill.af.mil [137.241.250.100]) by www.mattdavies.net (IMP) with HTTP for ; Thu, 20 Nov 2003 14:24:37 -0700 Message-ID: <1069363477.3fbd31151faba@www.mattdavies.net> Date: Thu, 20 Nov 2003 14:24:37 -0700 From: Matt Davies To: sirath@cisco.com Cc: pgsql-admin@postgresql.org Subject: Re: Need your help (frustrating issue) References: <023001c3afaa$7a4d1900$d51da143@amer.cisco.com> In-Reply-To: <023001c3afaa$7a4d1900$d51da143@amer.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 137.241.250.100 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/373 X-Sequence-Number: 11360 In the past, I have always put the LD_LIBRARY_PATH environment setting in the /etc/profile (make sure to export it if necessary) and that seemed to solve all my problems. Make sure you are setting the LD_LIBRARY_PATH _environment_ variable in your cgi not just a varible named LD_LIBRARY_PATH. Yet one more solution, and I don't know if it is possible or not, is to wrap your application with a small script that will set the environment for you such as: #!/bin/sh export LD_LIBRARY_PATH=..... /usr/local/apache/cgi/asd.cgi (or the like) HTH's Matt Quoting "Siddharth Rath (sirath)" : > Hi , > I'm facing an issue with Postgresql 7.3.4. > I've installed DBI version 1.37 & DBD::Pg (1.22) on a Solaris 8 > machine w/ perl 5.6.1 .The basic > problem is I can connect to Postgres just fine from the command line, > but it > craps out when I try from a CGI with the below error message: > install_driver(Pg) failed: Can't load > '/apps/systran/perl/lib/sun4-solaris/auto/DBD/Pg/Pg.so' for module > DBD::Pg: ld.so.1: /usr/local/bin/perl: fatal: libgcc_s.so.1: open > failed: No such file or directory at > /usr/local/perl5.6.1/lib/sun4-solaris/DynaLoader.pm line 206. > at (eval 1) line 3 > > > > I got an link in google that says : > Christoph Lange <[PRIVACY PROTECTION]> writes: > install_driver(Pg) > failed: Can't load > > '/soft/perl/lib/site_perl/sun4-solaris/auto/DBD/Pg/Pg.so' for module > DBD::Pg: ld.so.1: /soft/local/bin/perl: fatal: > libpq.so: open > > failed: No such file or directory! > > Probably you have not told ldconfig where to look for libpq.so. The > directory containing that shlib needs to be part of the system search > path for shlibs (/etc/ld.so.conf I think). regards, tom lane > > > It's Solaris, so there's no ldconfig to work on the fly's of libraries > .I did put the LD_LIBRARY_PATH correctly in the cgi itself , hoping > that it would work out, but it didnt help me out. > > Can you please help me out in resolving it. > > Thanx and regards > > Sidd > >