Re: installing LWP::UserAgent on windows
Re: installing LWP::UserAgent on windows
am 21.06.2005 22:52:46 von Sherm Pendley
"Nospam" 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--
installing LWP::UserAgent on windows
am 21.06.2005 23:37:37 von nospam
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?
Re: installing LWP::UserAgent on windows
am 22.06.2005 02:17:45 von Sisyphus
"Nospam" 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
Re: installing LWP::UserAgent on windows
am 22.06.2005 03:47:24 von nospam
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" wrote in message
news:42b8ae2a$0$26758$afc38c87@news.optusnet.com.au...
>
> "Nospam" 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
>
>
Re: installing LWP::UserAgent on windows
am 22.06.2005 04:07:04 von Sisyphus
"Nospam" 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
Re: installing LWP::UserAgent on windows
am 22.06.2005 15:43:01 von nospam
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" wrote in message
news:42b8c7c9$0$21396$afc38c87@news.optusnet.com.au...
>
> "Nospam" 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
>
>
Re: installing LWP::UserAgent on windows
am 23.06.2005 01:02:49 von Slaven Rezic
"Nospam" 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 rezic de
Visualize XML files in a Tk text widget:
http://search.cpan.org/search?mode=module&query=Tk::XMLViewe r
Re: installing LWP::UserAgent on windows
am 23.06.2005 09:08:36 von Sisyphus
"Nospam" 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
Re: installing LWP::UserAgent on windows
am 23.06.2005 18:37:09 von 1usa
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.