installing LWP::UserAgent on windows

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Re: installing LWP::UserAgent on windows

    "Nospam" <nospam@home.com> writes:
    > I have ActivePerl 5.8.4.810on win98se and I am trying to install
    > LWP:UserAgent I downloaded the tar file from cpan.org and extracted the
    > files into my c:/perrl/bin directory putting them in a folder of their own
    > in the bin directory, I ran perl makefile after browsing to the directory
    > the LWP:UserAgent folder were extracted to, however LWP::UserAgent doesn't
    > seem to work, is there anything I have missed?
    I don't use Windows myself, but as I understand it, installing modules from
    source can be particularly troublesome on 98/ME. Doesn't ActiveState offer
    LWP as a pre-compiled PPM?

    sherm--
    Sherm Pendley Guest

  2. Similar Questions and Discussions

    1. CF 7.0.1 updater not installing in windows
      I downloaded the coldfusion 7.0.1 updater for windows. When I clicked on the setup file a dialog box was visable for a split second before it went...
    2. Installing windows from a USB HD
      Is it possible to copy the windows CD to a USB HD and then install from here to the computers internal HD. The reason for doing so is i would...
    3. Error 113 when installing in Windows 98???
      My installation completely aborts, giving 'error 113' as an 'online error message' so. help! thx
    4. installing windows xp pro.
      I need to install Windows XP Pro. on a loptop. The loptop already has Windows XP Home edition. Do I need to erase the hard drive and re-format...
    5. Installing CtCmd on Windows
      What are cl and dumpbin? I am trying to configure CtCmd and I was reading the INSTALL document before proceeding. It stated that I must be able...
  3. #2

    Default installing LWP::UserAgent on windows

    I have ActivePerl 5.8.4.810on win98se and I am trying to install
    LWP:UserAgent I downloaded the tar file from cpan.org and extracted the
    files into my c:/perrl/bin directory putting them in a folder of their own
    in the bin directory, I ran perl makefile after browsing to the directory
    the LWP:UserAgent folder were extracted to, however LWP::UserAgent doesn't
    seem to work, is there anything I have missed?


    Nospam Guest

  4. #3

    Default Re: installing LWP::UserAgent on windows


    "Nospam" <nospam@home.com> wrote in message
    news:BM%te.34327$%21.27022@newsfe2-gui.ntli.net...
    > I have ActivePerl 5.8.4.810on win98se and I am trying to install
    > LWP:UserAgent I downloaded the tar file from cpan.org and extracted the
    > files into my c:/perrl/bin directory putting them in a folder of their own
    > in the bin directory, I ran perl makefile after browsing to the directory
    > the LWP:UserAgent folder were extracted to, however LWP::UserAgent doesn't
    > seem to work, is there anything I have missed?
    >
    >
    I think LWP::UserAgent comes as standard with ActivePerl - ie you should
    already have it. Remove the entire directory you created, and if you haven't
    stomped on the original LWP::UserAgent it should work ok. You can test that
    it's there, and accessible by running:

    perl -MLWP::USerAgent -le "print $LWP::UserAgent::VERSION"

    (which, I think, should report '2.031'.)

    Cheers,
    Rob


    Sisyphus Guest

  5. #4

    Default Re: installing LWP::UserAgent on windows

    it says 2.033
    I am wondering if I have tried to reintall it again after having it
    pre-intalled with actrive perl might have messed it up

    "Sisyphus" <sisyphus1@nomail.afraid.org> wrote in message
    news:42b8ae2a$0$26758$afc38c87@news.optusnet.com.a u...
    >
    > "Nospam" <nospam@home.com> wrote in message
    > news:BM%te.34327$%21.27022@newsfe2-gui.ntli.net...
    > > I have ActivePerl 5.8.4.810on win98se and I am trying to install
    > > LWP:UserAgent I downloaded the tar file from cpan.org and extracted the
    > > files into my c:/perrl/bin directory putting them in a folder of their
    own
    > > in the bin directory, I ran perl makefile after browsing to the
    directory
    > > the LWP:UserAgent folder were extracted to, however LWP::UserAgent
    doesn't
    > > seem to work, is there anything I have missed?
    > >
    > >
    >
    > I think LWP::UserAgent comes as standard with ActivePerl - ie you should
    > already have it. Remove the entire directory you created, and if you
    haven't
    > stomped on the original LWP::UserAgent it should work ok. You can test
    that
    > it's there, and accessible by running:
    >
    > perl -MLWP::USerAgent -le "print $LWP::UserAgent::VERSION"
    >
    > (which, I think, should report '2.031'.)
    >
    > Cheers,
    > Rob
    >
    >

    Nospam Guest

  6. #5

    Default Re: installing LWP::UserAgent on windows


    "Nospam" <nospam@home.com> wrote in message
    news:Mq3ue.30$z61.5@newsfe2-gui.ntli.net...
    > it says 2.033
    Well .... if it says that, then it's quite possibly working ok (though you
    have a different version than what's on my build 810). If there is some
    problem with your LWP::UserAgent then running that command would probably
    have produced an error message

    Can you provide a simple script that demonstrates the problem you're
    having - and also provide a copy'n'paste of the error messages produced.
    > I am wondering if I have tried to reintall it again after having it
    > pre-intalled with actrive perl might have messed it up
    >
    Yes, it might be messed up - but until we see what the problem is, we can
    only speculate .... and I don't feel like covering every possible scenario
    :-)

    Cheers,
    Rob


    Sisyphus Guest

  7. #6

    Default Re: installing LWP::UserAgent on windows

    Iam simply testing out LWP, I tried using it to find the latest perl
    version, according to the lwp manpage

    this command should give me thelatest perl:

    perl -MLWP::Simple -e '
    getstore "ftp://ftp.sunet.se/pub/lang/perl/CPAN/src/latest.tar.gz",
    "perl.tar.gz"'

    However this is what it says after the first line:

    C:\Perl\bin>perl -MLWP::Simple -e '
    Can't find string terminator "'" anywhere before EOF at -e line 1.

    it says this error for basically any command I use for lwp





    "Sisyphus" <sisyphus1@nomail.afraid.org> wrote in message
    news:42b8c7c9$0$21396$afc38c87@news.optusnet.com.a u...
    >
    > "Nospam" <nospam@home.com> wrote in message
    > news:Mq3ue.30$z61.5@newsfe2-gui.ntli.net...
    > > it says 2.033
    >
    > Well .... if it says that, then it's quite possibly working ok (though you
    > have a different version than what's on my build 810). If there is some
    > problem with your LWP::UserAgent then running that command would probably
    > have produced an error message
    >
    > Can you provide a simple script that demonstrates the problem you're
    > having - and also provide a copy'n'paste of the error messages produced.
    >
    > > I am wondering if I have tried to reintall it again after having it
    > > pre-intalled with actrive perl might have messed it up
    > >
    >
    > Yes, it might be messed up - but until we see what the problem is, we can
    > only speculate .... and I don't feel like covering every possible scenario
    > :-)
    >
    > Cheers,
    > Rob
    >
    >

    Nospam Guest

  8. #7

    Default Re: installing LWP::UserAgent on windows

    "Nospam" <nospam@home.com> writes:
    > Iam simply testing out LWP, I tried using it to find the latest perl
    > version, according to the lwp manpage
    >
    > this command should give me thelatest perl:
    >
    > perl -MLWP::Simple -e '
    > getstore "ftp://ftp.sunet.se/pub/lang/perl/CPAN/src/latest.tar.gz",
    > "perl.tar.gz"'
    >
    > However this is what it says after the first line:
    >
    > C:\Perl\bin>perl -MLWP::Simple -e '
    > Can't find string terminator "'" anywhere before EOF at -e line 1.
    >
    > it says this error for basically any command I use for lwp
    >
    The single quotes may only be used with Unix shells. In the Windows
    command line, you have to use "..." instead, and turn all "..." inside
    of the onliner into qq{...}.

    Regards,
    Slaven

    --
    Slaven Rezic - slaven <at> rezic <dot> de

    Visualize XML files in a Tk text widget:
    [url]http://search.cpan.org/search?mode=module&query=Tk::XMLViewer[/url]
    Slaven Rezic Guest

  9. #8

    Default Re: installing LWP::UserAgent on windows


    "Nospam" <nospam@home.com> wrote in message
    news:FVdue.328$z61.292@newsfe2-gui.ntli.net...
    > Iam simply testing out LWP, I tried using it to find the latest perl
    > version, according to the lwp manpage
    >
    > this command should give me thelatest perl:
    >
    > perl -MLWP::Simple -e '
    > getstore "ftp://ftp.sunet.se/pub/lang/perl/CPAN/src/latest.tar.gz",
    > "perl.tar.gz"'
    >
    > However this is what it says after the first line:
    >
    > C:\Perl\bin>perl -MLWP::Simple -e '
    > Can't find string terminator "'" anywhere before EOF at -e line 1.
    >
    > it says this error for basically any command I use for lwp
    >
    On Windows you need to enclose the code within double quotes ("), not within
    single quotes (') as you have tried. This also means that any double quotes
    inside the string of code need to be escaped. Try something like:

    perl -MLWP::Simple -e "getstore
    \"ftp://ftp.sunet.se/pub/lang/perl/CPAN/src/latest.tar.gz\",\"perl.tar.gz\""

    For me that produced no error - though it seemed to hang. Perhaps I was just
    not being sufficiently patient.

    Cheers,
    Rob


    Sisyphus Guest

  10. #9

    Default Re: installing LWP::UserAgent on windows

    Sisyphus wrote:
    > perl -MLWP::Simple -e "getstore
    > \"ftp://ftp.sunet.se/pub/lang/perl/CPAN/src/latest.tar.gz\",\"perl.tar.gz\""
    >
    I find q{} much easier on the eyes than escaped quotation marks:

    perl -MLWP::Simple -e "getstore
    q{ftp://ftp.sunet.se/pub/lang/perl/CPAN/src/latest.tar.gz},
    q{perl.tar.gz}"

    (Please excuse the line-wrapping).

    Sinan.
    A. Sinan Unur Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139