sernova has asked for the wisdom of the Perl Monks concerning the following question:
I have:#!/usr/local/bin/perl use LWP::UserAgent;
What to do with this? Many thanks in advance! Dear all, What I had after perl -V:$perl test2.pl Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/local/lib/p +erl5/5.8ocal/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i68 +6-linux /usr/local/5.8.8 /usr/local/lib/perl5/site_perl .) at test2.p +l line 2. BEGIN failed--compilation aborted at test2.pl line 2.
What address I have to give for the previous version? Many thanks!$perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.4.21-0.13mdk, archname=i686-linux uname='linux natasha.mail.ru 2.4.21-0.13mdk #1 fri mar 14 15:08:06 + est 2003 i686 unknown unknown gnulinux ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultipl +icity=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 -pipe -I/usr/local/include + -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)', +gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 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 -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.1.so, so=so, useshrplib=false, libperl=libperl. +a gnulibc_version='2.3.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under linux Compiled at Nov 21 2006 16:56:10 @INC: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .
Dear Rob, It turned out, I don't have Perl 5.8.0 at this location. What this means?
[root@natasha 5.8.8]# mv /usr/local/lib/perl5/site_perl/5.8.8 /usr/loc +al/lib/perl5/site_perl/OLD_5.8.8 [root@natasha 5.8.8]# mv /usr/local/lib/perl5/site_perl/5.8.0 /usr/loc +al/lib/perl5/site_perl/5.8.8 mv: cannot stat `/usr/local/lib/perl5/site_perl/5.8.0': No such file o +r directory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to access 5.8.0 - Perl-modules in Perl 5.8.8 - what to change?
by davorg (Chancellor) on Nov 24, 2006 at 14:09 UTC | |
|
Re: How to access 5.8.0 - Perl-modules in Perl 5.8.8 - what to change?
by shmem (Chancellor) on Nov 24, 2006 at 13:48 UTC | |
|
Re: How to access 5.8.0 - Perl-modules in Perl 5.8.8 - what to change?
by syphilis (Archbishop) on Nov 24, 2006 at 13:59 UTC |