Question - Can't locate object method "driver"

Поиск
Список
Период
Сортировка
Искать

Question - Can't locate object method "driver"

От:
druclark <druclark@cox.net>
Дата:
Hey all -

I have a runtime issue - Ive seen a number of other posting (via google) but no solutions 
to the issue - I hope you guys can help:

Thanks much!

Heres the error:
----------------------------
DBD::Pg initialisation failed: Can't locate object method "driver" via package "DBD::Pg" 
at /net/gdcraid/gdcportal/apps/perl/perl5/lib/site_perl/5.8.5/sun4-solaris/DBI.pm line 748.

Perhaps the capitalisation of DBD 'Pg' isn't right. at ./postgres_test_connection.pl line 24

----------------------------
Here is the support info:

perl : perl-5.8.5
postgres: postgresql_7.4.3
pgsql: pgsql_perl5-1.9.0
----------------------------
perl -v

This is perl, v5.8.5 built for sun4-solaris
----------------------------
perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:  Platform:    osname=solaris, osvers=2.8, archname=sun4-solaris    uname='sunos shellback 5.8 generic_117350-08 sun4u sparc sunw,sun-blade-1000 '    config_args='-Dprefix=/net/gdcraid/gdcportal/apps/perl/perl5'    hint=recommended, useposix=true, d_sigaction=define    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef    use64bitint=undef use64bitall=undef uselongdouble=undef    usemymalloc=n, bincompat5005=undef  Compiler:    cc='/opt/SUNWspro/bin/cc', ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',    optimize='-O',    cppflags='-I/usr/local/include'    ccversion='WorkShop Compilers 5.0 98/12/15 C 5.0', gccversion='', gccosandvers=''    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8    alignbytes=8, prototype=define  Linker and Libraries:    ld='/opt/SUNWspro/bin/cc', ldflags =' -L/usr/lib -L/usr/ccs/lib 
-L/opt/SUNWspro/SC5.0/lib -L/usr/local/lib '    libpth=/usr/lib /usr/ccs/lib /opt/SUNWspro/SC5.0/lib /usr/local/lib    libs=-lsocket -lnsl -ldl -lm -lc    perllibs=-lsocket -lnsl -ldl -lm -lc    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a    gnulibc_version=''  Dynamic Linking:    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '    cccdlflags='-KPIC', lddlflags='-G -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/SC5.0/lib 
-L/usr/local/lib'


Characteristics of this binary (from libperl):  Compile-time options: USE_LARGE_FILES  Built under solaris  Compiled at Oct 29 2004 13:11:59  @INC:    /net/gdcraid/gdcportal/apps/perl/perl5/lib/5.8.5/sun4-solaris    /net/gdcraid/gdcportal/apps/perl/perl5/lib/5.8.5    /net/gdcraid/gdcportal/apps/perl/perl5/lib/site_perl/5.8.5/sun4-solaris    /net/gdcraid/gdcportal/apps/perl/perl5/lib/site_perl/5.8.5    /net/gdcraid/gdcportal/apps/perl/perl5/lib/site_perl    /net/gdcraid/gdcportal/apps/perl/perl5/modules
----------------------------




----------------------------

Re: Question - Can't locate object method "driver"

От:
"Greg Sabino Mullane" <greg@turnstep.com>
Дата:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Perhaps the capitalisation of DBD 'Pg' isn't right. at
> ./postgres_test_connection.pl line 24
Had to say. Can we see what line 24 says?
Does this work on the command line?:
perl -MDBD::Pg -e 'print $DBD::Pg::VERSION'
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200411042218
-----BEGIN PGP SIGNATURE-----
iD8DBQFBivEhvJuQZxSWSsgRAg5MAJ9kB25adtBFq5FTSdTDEers1UgoqgCeOp3T
/uvbOtCawEYnmk7UXLTX7yU=
=ikkV
-----END PGP SIGNATURE-----



FAQ