From sirath@cisco.com Thu Nov 20 21:09:16 2003 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 F0173D1B545 for ; Thu, 20 Nov 2003 21:09:16 +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 10907-05 for ; Thu, 20 Nov 2003 17:08:46 -0400 (AST) Received: from sj-iport-1.cisco.com (sj-iport-1-in.cisco.com [171.71.176.70]) by svr1.postgresql.org (Postfix) with ESMTP id 9BAB7D1C976 for ; Thu, 20 Nov 2003 17:08:44 -0400 (AST) 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 hAKL8hjq020063 for ; Thu, 20 Nov 2003 13:08:44 -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 NAA25331 for ; Thu, 20 Nov 2003 13:08:42 -0800 (PST) Reply-To: From: "Siddharth Rath (sirath)" To: Subject: Need your help (frustrating issue) Date: Thu, 20 Nov 2003 13:08:42 -0800 Message-ID: <023001c3afaa$7a4d1900$d51da143@amer.cisco.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0231_01C3AF67.6C29D900" 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 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=EMAIL_ATTRIBUTION, HTML_40_50, HTML_FONT_COLOR_BLUE X-Spam-Level: X-Archive-Number: 200311/372 X-Sequence-Number: 11359 This is a multi-part message in MIME format. ------=_NextPart_000_0231_01C3AF67.6C29D900 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0231_01C3AF67.6C29D900 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Hi ,=
I'm facing an issu= e with=20 Postgresql 7.3.4.
I've installed=20 DBI version 1.37 & DBD::Pg= (1.22) on a Solaris  8  machine w/ per= l 5.6.1=20 .The basic
problem is I can connect to Postgres just fine from the comma= nd=20 line, but it
craps out when I try from a CGI with the below error=20 message:
install_driver(Pg) failed: Can't load=20 '/apps/systran/perl/lib/sun4-solaris/auto/DBD/Pg/Pg.so' for module DBD::Pg:= =20 ld.so.1: /usr/local/bin/perl: fatal: libgcc_s.so.1: open failed: No such fi= le or=20 directory at /usr/local/perl5.6.1/lib/sun4-solaris/DynaLoader.pm line=20 206.
 at (eval 1) line 3
 
 
 
I got = an link in=20 google that says :

Christoph Lange <[PRIVACY PROTECTION]> writes: = >=20 install_driver(Pg) failed: Can't load >=20 '/soft/perl/lib/site_perl/sun4-solaris/auto/DBD/Pg/Pg.so' for module DBD::P= g:=20 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= =20 libpq.so. The directory containing that shlib needs to be part of the syste= m=20 search path for shlibs (/etc/ld.so.conf I think). regards, tom=20 lane


It's Solaris= , so=20 there's no ldconfig to work on the fly's of libraries .I did put the LD_LIBRARY_PATH correctly i= n the=20 cgi  itself , hoping that it would work out, but it didnt help me=20 out.

Can you please help me out in resolving=20 it.

Thanx and=20 regards

Sidd

=
------=_NextPart_000_0231_01C3AF67.6C29D900-- From matt@mattdavies.net Thu Nov 20 21:25:11 2003 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 > > From sirath@cisco.com Thu Nov 20 22:01:45 2003 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 > > From fred@redhotpenguin.com Thu Nov 20 23:12:49 2003 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 49495D1B4F4 for ; Thu, 20 Nov 2003 23:12:49 +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 37315-02 for ; Thu, 20 Nov 2003 19:12:19 -0400 (AST) Received: from redhotpenguin.com (c-67-169-146-13.client.comcast.net [67.169.146.13]) by svr1.postgresql.org (Postfix) with ESMTP id 7549ED1B4E6 for ; Thu, 20 Nov 2003 19:12:16 -0400 (AST) Received: (qmail 14951 invoked from network); 20 Nov 2003 23:12:18 -0000 Received: from localhost (HELO 127.0.0.1) (127.0.0.1) by localhost with SMTP; 20 Nov 2003 23:12:18 -0000 Received: from 127.0.0.1 (proxying for 67.169.146.13) (SquirrelMail authenticated user fred@redhotpenguin.com) by 127.0.0.1 with HTTP; Thu, 20 Nov 2003 15:12:18 -0800 (PST) Message-ID: <34213.127.0.0.1.1069369938.squirrel@127.0.0.1> In-Reply-To: <023b01c3afb1$d00f1f30$d51da143@amer.cisco.com> References: <1069363477.3fbd31151faba@www.mattdavies.net> <023b01c3afb1$d00f1f30$d51da143@amer.cisco.com> Date: Thu, 20 Nov 2003 15:12:18 -0800 (PST) Subject: Re: Need your help (frustrating issue) From: fred@redhotpenguin.com To: sirath@cisco.com Cc: "'Matt Davies'" , pgsql-admin@postgresql.org User-Agent: SquirrelMail/1.4.2-1.qvcs.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/375 X-Sequence-Number: 11362 I've had this problem (or something very similar) happen before several times on new installations. I think I resolved it by re-installing DBD::Pg - but this was a while ago. Are you sure Pg.so is in your @INC path? Try adding this to your CGI to be sure it's looking in the right place. use lib qw(/path_to_preferred_perl_version/perl /apps/myapp/perl/lib); > 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 >> >> > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > From sirath@cisco.com Mon Nov 24 23:59:32 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 25A83D1D8BB for ; Mon, 24 Nov 2003 23:59:32 +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 76942-01 for ; Mon, 24 Nov 2003 19:59:03 -0400 (AST) Received: from sj-iport-1.cisco.com (sj-iport-1-in.cisco.com [171.71.176.70]) by svr1.postgresql.org (Postfix) with ESMTP id 060ADD1D729 for ; Mon, 24 Nov 2003 19:59:00 -0400 (AST) Received: from wells.cisco.com (wells.cisco.com [171.71.177.223]) by sj-core-1.cisco.com (8.12.9/8.12.6) with ESMTP id hAONwdAt028246; Mon, 24 Nov 2003 15:58:40 -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 PAA28513; Mon, 24 Nov 2003 15:58:39 -0800 (PST) Reply-To: From: "Siddharth Rath (sirath)" To: , "'Matt Davies'" Cc: Subject: Re: Need your help (frustrating issue) Date: Mon, 24 Nov 2003 15:58:37 -0800 Message-ID: <039d01c3b2e6$e1af7360$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: <34213.127.0.0.1.1069369938.squirrel@127.0.0.1> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/417 X-Sequence-Number: 11404 Hi Fred/Matt, I'm still stuck-up at the same issue (/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 did get the following mesg while deploying the POSTGRESQL server. *** Cannot build PL/Perl because libperl is not a shared library. *** You might have to rebuild your Perl installation. Refer to *** the documentation for details. It will' be really great if you please let me know whether I'm facing the issue coz libperl is not shared library? Thanx and regards Sidd -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of fred@redhotpenguin.com Sent: Thursday, November 20, 2003 3:12 PM To: sirath@cisco.com Cc: 'Matt Davies'; pgsql-admin@postgresql.org Subject: Re: [ADMIN] Need your help (frustrating issue) I've had this problem (or something very similar) happen before several times on new installations. I think I resolved it by re-installing DBD::Pg - but this was a while ago. Are you sure Pg.so is in your @INC path? Try adding this to your CGI to be sure it's looking in the right place. use lib qw(/path_to_preferred_perl_version/perl /apps/myapp/perl/lib); > 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 >> >> > > > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) From fred@redhotpenguin.com Tue Nov 25 01:53:38 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0C0B4D1D8A7 for ; Tue, 25 Nov 2003 01:53:38 +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 01276-02 for ; Mon, 24 Nov 2003 21:53:10 -0400 (AST) Received: from redhotpenguin.com (c-67-169-146-13.client.comcast.net [67.169.146.13]) by svr1.postgresql.org (Postfix) with ESMTP id 4026AD1D8C5 for ; Mon, 24 Nov 2003 21:53:06 -0400 (AST) Received: (qmail 12468 invoked from network); 25 Nov 2003 01:53:07 -0000 Received: from localhost (HELO 127.0.0.1) (127.0.0.1) by localhost with SMTP; 25 Nov 2003 01:53:07 -0000 Received: from 127.0.0.1 (proxying for 67.169.146.13) (SquirrelMail authenticated user fred@redhotpenguin.com) by 127.0.0.1 with HTTP; Mon, 24 Nov 2003 17:53:07 -0800 (PST) Message-ID: <37630.127.0.0.1.1069725187.squirrel@127.0.0.1> In-Reply-To: <039d01c3b2e6$e1af7360$d51da143@amer.cisco.com> References: <34213.127.0.0.1.1069369938.squirrel@127.0.0.1> <039d01c3b2e6$e1af7360$d51da143@amer.cisco.com> Date: Mon, 24 Nov 2003 17:53:07 -0800 (PST) Subject: Re: Need your help (frustrating issue) From: fred@redhotpenguin.com To: sirath@cisco.com Cc: fred@redhotpenguin.com, "'Matt Davies'" , pgsql-admin@postgresql.org User-Agent: SquirrelMail/1.4.2-1.qvcs.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.7 tagged_above=0.0 required=5.0 tests=IN_REP_TO, MSG_ID_ADDED_BY_MTA_3, NO_REAL_NAME, PRIORITY_NO_NAME, QUOTED_EMAIL_TEXT, RCVD_IN_RFCI, REFERENCES, REPLY_WITH_QUOTES, USER_AGENT X-Spam-Level: ** X-Archive-Number: 200311/419 X-Sequence-Number: 11406 > Hi Fred/Matt, > I'm still stuck-up at the same issue > (/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 did get the following mesg while deploying the POSTGRESQL server. > *** Cannot build PL/Perl because libperl is not a shared > library. > *** You might have to rebuild your Perl installation. Refer to > *** the documentation for details. > It will' be really great if you please let me know whether I'm facing > the issue coz libperl is not shared library? It looks like you'll need to rebuild perl with the shared library option enabled to enable it's use by PL/Perl. The first message references /usr/local/bin/perl so I'm assuming the superuser did a source install of 5.6.1 with the default options. I suggest you install perl from source in your /apps/systran/ directory and enable the option to build a shared libperl. Once you do that add /apps/systran/perl/bin to your PATH and open/refresh your shell. After you have this installed, type 'perl -V' and you should see /apps/systran/perl/... several times in the @INC array, and also the command 'which perl' should return /apps/systran/perl/bin/perl. Now re-install DBD::Pg - since you are using /apps/systran/perl/bin/perl you don't need to specify a prefix, it will be installed under the /apps/systran tree. This should take care of the DynaLoader error. Now build Postgres again and you should be all good - you have your own custom perl application and library that other system users won't accidentally squash. Here's a good reference link to getting your own perl apps/libraries installed. http://www.perl.com/pub/a/2002/04/10/mod_perl.html Feel free to bounce any perl installation questions at me off the list - this procedure should take care of the dependencies and get you going.