Error running script

From: "Shabnam Nisha" <nisha(at)is(dot)com(dot)fj>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: Error running script
Date: 2002-02-27 21:42:46
Message-ID: 3C7D52D6.000012.01161@lady.is.com.fj
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


Hi there,
I have this error running my script on Linux server. It says:

Undefined subroutine &Pg::connectdb called at ./makebill line 275.

I have actually migrated this script from Unix platform, which had been
working just perfect. When i do "perldoc Pg" on Linux, I get DBI::PG
manual, whereas on Unix I get PG manual.

I have re-installed Perl interfaces under src dir, but still get the same
errors. I did

1. perl Makefile.PL
2. make
3. make test
4. make install ( 1. to 3. as normal user, not as root ! )
After doing 4, as root the blib dir disappears from the src dir.

Please Help!

# perl -v
This is perl, v5.6.0 built for i386-linux
Copyright 1987-2000, Larry Wall
Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5.0 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.6-3.1enterprise, archname=i386-linux
uname='linux stripples.devel.redhat.com 2.4.6-3.1enterprise #1 smp tue
jul 24 14:
03:17 edt 2001 i686 unknown '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc
-Dcccdlflags=-fP
IC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid
-Dd_semctl_sem
un -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm
-Uuselargefiles'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='gcc', optimize='-O2 -march=i386 -mcpu=i686', gccversion=2.96
20000731 (Red Hat Linux 7.1 2.96-96)
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt
libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl):
Compile-time options:
Built under linux
Compiled at Aug 9 2001 22:48:52
@INC:
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl

~Nisha

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Badger 2002-02-28 23:50:56 Beating Oracle
Previous Message Jeroen T. Vermeulen 2002-02-27 00:04:28 libpqxx: improved self-test