sprakash has asked for the wisdom of the Perl Monks concerning the following question:

Hi People! Had a question for you -- I've been trying to install the latest LWP:UserAgent module through CPAN and am having some problems (I current run Perl V5.8.0 with CPAN on a Win XP box) ...... through CPAN when I type in "install LWP:UserAgent" or "install LWP" I get the following error:

Subroutine _new_response redefined at D:/Perl/site/lib/LWP\UserAgent.p +m line 112 7. CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://archive.progeny.com/CPAN/authors/id/A/AN/ANDK +/CPAN-1.63.tar.gz Fetching with LWP: ftp://archive.progeny.com/CPAN/authors/id/A/AN/ANDK/CHECKSUMS Checksum for y\sources\authors\id\A\AN\ANDK\CPAN-1.63.tar.gz ok Cannot gzopen y\sources\authors\id\A\AN\ANDK\CPAN-1.63.tar.gz: No such + file or directory

Basically, I get the "No such file or directory" error in all the different CPAN module installations.
The Config.pm file in my D:\Perl\lib\CPAN looks like this -

# This is CPAN.pm's systemwide configuration file. This file provides # defaults for users, and the values can be changed in a per-user # configuration file. The user-config file is being looked for as # ~/.cpan/CPAN/MyConfig.pm. $CPAN::Config = { 'build_cache' => q[10], 'build_dir' => q[\.cpan\build\.], 'cache_metadata' => q[1], 'cpan_home' => q[\.cpan\.], 'ftp' => q[C:\WINXP\system32\ftp.EXE], 'ftp_proxy' => q[], 'getcwd' => q[cwd], 'gzip' => q[D:\Zips\gzip\gzip.EXE], 'http_proxy' => q[], 'inactivity_timeout' => q[0], 'index_expire' => q[1], 'inhibit_startup_message' => q[0], 'keep_source_where' => q[\.cpan\sources\.], 'lynx' => q[], 'make' => q[], 'make_arg' => q[], 'make_install_arg' => q[], 'makepl_arg' => q[], 'ncftp' => q[], 'ncftpget' => q[], 'no_proxy' => q[], 'pager' => q[C:\WINXP\system32\more.COM], 'prerequisites_policy' => q[ask], 'scan_cache' => q[atstart], 'shell' => q[], 'tar' => q[], 'term_is_latin' => q[1], 'unzip' => q[D:\Zips\unzip\unzip.EXE], 'urllist' => [], 'wait_list' => [q[wait://ls6.informatik.uni-dortmund.de:1404]], 'wget' => q[], }; 1; __END__

Please let me know if some setting is screwed up or something. Thanks, Surya

Replies are listed 'Best First'.
Re: CPAN LWP module installation problems
by Popcorn Dave (Abbot) on Dec 24, 2002 at 04:11 UTC
    This may seem like a ridiculous question, but have you tried to download the package and build it on your machine? Tachyon has a wonderful tutorial for installing modules. that may help out.

    There is no emoticon for what I'm feeling now.

      PD, Yup, I did give that a try. No luck there either, becuase the packages (OpenSSL, Crypt::SSLeay, etc) I need, need other packages, and it's just not working. Thanks though. Surya
Re: CPAN LWP module installation problems
by tachyon (Chancellor) on Dec 24, 2002 at 05:34 UTC

    Get the ppm.zip from Active State here You want libwww-perl.zip. Unzip it (into a tmp dir as it spews stuff out without a wrapper dir), go into the temp dir and and use ppm install libwww-perl.ppd I have just tested it and it works fine.

    LWP needs a C compiler from memory. I do recall it is difficult to install on Win32 using the CPAN version. You will generally find it far less painfull to use ppm on Win32. The key problem on Win32 is the lack of a decent C compiler for those modules with XS or C components. With the ppms the comilation has been done for you by the nice folks at Active State so things generally go a lot smoother. The only disadvantage is the time lage between a new module release and the generation of a ppm. Plus the AS ppm's don't tell you what version it is until you have got it and can RTFS.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      /msg tachyon Hi! Tachyon, thanks for your reply related to the LWP and libwww-perl installation. I did what you advised and attempted to install it and got the following error -
      D:\Perl\temp\libwww-perl>ppm install libwww-perl.ppd Error: no suitable installation target found for package libwww-perl.
      So I'm not sure where to go now ..... I have installed the OpenSSL binary into the Perl directory, but tried to install Crypt:SSLeay on top of it but it doesn't seem to do anything. Please do let me know. Thanks, Surya

        Unless there is a *really good* reason not to I would simply remove your perl install and reinstall Perl 5.6.1 from Active State - this is a binary distribution and works well on Win32. I suggest 5.6.1 as 5.6.1 is fairly stable and 5.8 is fairly new and thus much less stable. When you install the Active State Perl you get LWP anyway as well as ppm. You have a broken install and this is the quickest fix.

        cheers

        tachyon

        s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print