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 24719D1C976 for ; Thu, 20 Nov 2003 22:01:45 +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 19603-07 for ; Thu, 20 Nov 2003 18:01:16 -0400 (AST) Received: from sj-iport-3.cisco.com (sj-iport-3-in.cisco.com [171.71.176.72]) by svr1.postgresql.org (Postfix) with ESMTP id 2B63DD1B55D for ; Thu, 20 Nov 2003 18:01:14 -0400 (AST) Received: from sj-core-5.cisco.com (171.71.177.238) by sj-iport-3.cisco.com with ESMTP; 20 Nov 2003 14:01:52 +0000 Received: from wells.cisco.com (wells.cisco.com [171.71.177.223]) by sj-core-5.cisco.com (8.12.9/8.12.6) with ESMTP id hAKM1Djq012834; Thu, 20 Nov 2003 14:01:13 -0800 (PST) Received: from sirathw2k01 (dhcp-171-69-99-64.cisco.com [171.69.99.64]) by wells.cisco.com (8.8.6 (PHNE_14041)/CISCO.SERVER.1.2) with ESMTP id OAA08571; Thu, 20 Nov 2003 14:01:13 -0800 (PST) Reply-To: From: "Siddharth Rath (sirath)" To: "'Matt Davies'" Cc: Subject: Re: Need your help (frustrating issue) Date: Thu, 20 Nov 2003 14:01:13 -0800 Message-ID: <023b01c3afb1$d00f1f30$d51da143@amer.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Importance: Normal In-Reply-To: <1069363477.3fbd31151faba@www.mattdavies.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/374 X-Sequence-Number: 11361 Hi Matt, Thanx for the response. Actually I did put the LD_LIBRARY_PATH as $ENV{LD_LIBRARY_PATH}= Hope you meant the same way. Somehow it doesn't workout. Secondly since I done have access to /usr/local or /etc/profile I did install the postgresql and DBD::Pg as per below. /path_to_preferred_perl_version/perl -I /apps/myapp/perl/lib Makefile.PL PREFIX=/apps/myapp/perl LIB=/apps/myapp/perl/lib The issue is yet to resolved ,please let me know if theres any other way to resolve the same. Thanx and regards Sidd -----Original Message----- From: Matt Davies [mailto:matt@mattdavies.net] Sent: Thursday, November 20, 2003 1:25 PM To: sirath@cisco.com Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Need your help (frustrating issue) 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 > >