What is wrong with having two separate Perl installations, the base
one (untouched), and your own one (in e.g. /opt or /usr/opt or
wherever you'd like)?
Andreas
On 15/07/06, Karel Kulhavy <[EMAIL PROTECTED]> wrote:
Is it OK to download perl 5.8.6 (the same that is in OpenBSD 3.9)
then compile it using supplied hints/openbsd.sh and install over the
existing perl? I want GDBM_File and GDBM_File is in perl 5.8.6.
- will the perl still work (at least pkg_add and pkg_delete)?
- will GDBM_File start working?
I tried installing GDBM_File by going into
perl-5.8.6/ext/GDBM_File:
[EMAIL PROTECTED]:/home/clock/perl-5.8.6/ext/GDBM_File$ perl Makefile.PL
Note (probably harmless): No library found for -lgdbm
Note (probably harmless): No library found for -ldbm
Writing Makefile for GDBM_File
[EMAIL PROTECTED]:/home/clock/perl-5.8.6/ext/GDBM_File$ make
Can't locate ExtUtils/Command.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.6/OpenBSD.i386-openbsd /usr/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/OpenBSD.i386-openbsd
/usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.
*** Error code 2
But when I do perl -V:
[...]
Built under openbsd
@INC:
/usr/libdata/perl5/i386-openbsd/5.8.6
/usr/local/libdata/perl5/i386-openbsd/5.8.6
/usr/libdata/perl5
/usr/local/libdata/perl5
/usr/local/libdata/perl5/site_perl/i386-openbsd
/usr/libdata/perl5/site_perl/i386-openbsd
/usr/local/libdata/perl5/site_perl
/usr/libdata/perl5/site_perl
/usr/local/lib/perl5/site_perl
[EMAIL PROTECTED]:/home/clock/perl-5.8.6/ext/GDBM_File$ locate Command.pm
/usr/libdata/perl5/ExtUtils/Command.pm
So it doesn't work and I don't know why. I tried to figure out something
about the mysterious "@INC" thing. Man perl says only this:
FILES
"@INC" locations of perl libraries
but it's a blind alley:
[EMAIL PROTECTED]:~$ man INC
man: no entry for INC in the manual.
[EMAIL PROTECTED]:~$ man '@INC'
man: no entry for @INC in the manual.
[EMAIL PROTECTED]:~$ locate 'INC'
[EMAIL PROTECTED]:~$ locate '@INC'
man perl says there's a file called "@INC", but it's not true.
Inc in google yields just a heap of irrelevant links. Wikipedia doesn't have
a relevant article on "INC" or "@INC" either.
CL<
--
Andreas Kahari
Somewhere in the general Cambridge area, UK