D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Perl @INC configuration



--- Steve Marvell <steve@xxxxxxxx> wrote: > On Wed,
Oct 02, 2002 at 03:02:48PM +0100, jody salt
wrote:

Zourzouvillys wrote:

Don't be tempted to manipulate @INC itself.

No he didn't, I did!

I have too!

Bad Jody! Bad!



I have just installed various programs on a server
that require the DBI DBD::mysql modules, I have
installed them using CPAN, unfortunatly CPAN put
them
in a directory that is not on the @INC list (I
assume
thats how perl finds its modules).

Indeed, print it to see what's in it.

/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
.


Run (on both boxes):
At the moment I only have access to the one with the
problem via ssh! -- I am now a uni and could not fit
an extra pc in the car!!


uname -a

Linux 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686
unknown


cat /etc/issue       # the only way I know to
unreliably get the distro
Red Hat Linux release 7.2 (Enigma)
Kernel \r on an \m




perl -V

Summary of my perl5 (revision 5.0 version 8 subversion
0) configuration:
 Platform:
   osname=linux, osvers=2.4.7-10, archname=i686-linux
   uname='linux ded70.asuk.net 2.4.7-10 #1 thu sep 6
17:27:27 edt 2001 i686 unknown '
   config_args=''
   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='cc', ccflags ='-fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
   optimize='-O2',
   cppflags='-fno-strict-aliasing
-I/usr/local/include -I/usr/include/gdbm'
   ccversion='', gccversion='2.96 20000731 (Red Hat
Linux 7.1 2.96-98)', 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=8
   alignbytes=4, prototype=define
 Linker and Libraries:
   ld='cc', ldflags =' -L/usr/local/lib'
   libpth=/usr/local/lib /lib /usr/lib
   libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil
   perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
   libc=/lib/libc-2.2.4.so, so=so, useshrplib=false,
libperl=libperl.a
   gnulibc_version='2.2.4'
 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: USE_LARGE_FILES
 Built under linux
 Compiled at Oct  1 2002 11:34:28
 @INC:
   /usr/local/lib/perl5/5.8.0/i686-linux
   /usr/local/lib/perl5/5.8.0
   /usr/local/lib/perl5/site_perl/5.8.0/i686-linux
   /usr/local/lib/perl5/site_perl/5.8.0
   /usr/local/lib/perl5/site_perl
   .



locate mysql.pm

/usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Bundle/DBD/mysql.pm
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-2.1020/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-2.1020/lib/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-2.1020/blib/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-2.1020/blib/lib/Bundle/DBD/mysql.pm
/e2h36/mysql.pm




the DBD::mysql, DBI has been installed in
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux

(on which box?)

I don't need to use any other modules apart from
DBD::mysql, DBI 

Apart from the ones that DBD::mysql needs.

Any help would be mush appreciated

Why should CPAN do a silly thing like that?

Cos it was not configured properly when it was
installed. Was it
installed on or copied on?

I suggest installing/configuring CPAN properly.

How do you reconfigure it is here a standard command.
I run it in shell mode (perl -MCPAN -e shell)

many thanks

Jody


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly