It's late. There's beer in the 'fridge. There's a few cheap cigars somewhere. My g/f's cigarettes are on the shelf. However, I'm on a diet and I quit smoking in the summer of '01. Everything was fine 'til yesterday. Then I decided to install DBD-Pg-1.13 on my RedHat box.

Installing DBD. the cpan script was giving me problems so, I downloaded it (and others before it) from cpan. When I ran "perl Makefile.PL" as a normal user I ran into the enviornment variable problem. This was corrected (marginally, I think) by "export POSTGRES_INCLUDE=/usr/include" which is where I found libpq-fe.h. (same for _LIB=/usr/lib for libpq.so)... (While this seems to function, I really need to determine where it is supposed to be done.)

The DBD-Pg-1.13 directory is owned by the normal user and the file Pg.pm exists there, owned by
the "normal user," bw.

From /root/.cpan/build/DBD-Pg-1.13....

The exact output is;
*
*[bw@roscoe DBD-Pg-1.13]$ perl Makefile.PL
Configuring Pg
Remember to actually read the README file !
OS: linux
Using DBI 1.30 installed in /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI
Checking if your kit is complete...
Looks good
Could not open 'Pg.pm' : No such file or directory at (eval 8) line 6.
[bw@roscoe DBD-Pg-1.13]$


The system is RedHat 7.3 on an Intel box. Postgresql 7.2 is installed and running. A list of modules from cpan have been installed without problems including DBI-1.30.


perl -v returns;

This is perl, v5.6.1 built for i386-linux....



perl -V returns;
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux
uname='linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10:30:48 est 2002 i686 unknown '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Uusethreads -Uuseithreads -Uuselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
optimize='-O2 -march=i386 -mcpu=i686',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.2 2.96-109)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
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 -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.5.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 Apr 1 2002 12:23:22
@INC:
/usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl
.

What am I doing wrong...other than not drinking the beer and not smoking everything in the house?

Bill

PS: Noticing the output from the Makefile, I see it uses the DBI in /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto. Yet I know it is installed at /root/.cpan/build/DBI-1.30.
Furthermore (as root) find -name Pg.pm returns;

../root/.cpan/build/DBD-Pg-1.13/Pg.pm
../usr/lib/perl5/site_perl/5.6.1/i386-linux/Pg.pm
../usr/lib/perl5/site_perl/5.6.1/i386-linux/DBD/Pg.pm

If I chmod one or both of the last two Pg.pm files shown above, would I get past the error msg?

Thanks,
Bill



Reply via email to