[Thread Prev][Thread Next][Index]

Re: perl URI::URL and LAS 5



Dave,
You're not the first to come across this problem.  There is a message 
in the archives from a few months ago that references an article from 
comp.lang.perl.modules.  Hope this is useful info.

~ Cyndy

==========================================================

[ A user received the same msg as you while in the process of Installing
Las 5.0 on a Dell running Redhat 7.0. ]

Here is what she reported to las_users ...

Subject: 
          Re: LAS 5.0 installation on Redhat 7.0
     Date: 
          Tue, 20 Nov 2001 19:56:28 -0500 (EST)
    From: 
          Petra Udelhofen <petra@atmsci.msrc.sunysb.edu>
 Reply-To: 
          petra.udelhofen@sunysb.edu
       To: 
          las_users@ferret.wrc.noaa.gov

Jonathan,

thanks for your quick reply. The Las server is up and running. Well,
not quite with the data sets I want there, but the problem in question
is solved. It turned out to be a conflict between the perl modules
LWP::UserAgent and URI::URL. I presume others may experience similar
problems, so I repost a message from the comp.lang.perl.modules
newsgroup, which solved the problem. My perl versions are :
> perl getVersions.pl
CGI 2.56 
CGI::Carp 1.14
Cwd 2.02
Date::Calc 5.0
Date::Manip 5.40
Digest::MD5 2.09
File::Basename 2.6
Getopt::Std 1.02
HTML::Parser 3.25
LWP::UserAgent 1.100
MD5 2.01
Storable 1.013
Template 2.06
Time::JulianDay 99.061501
URI::URL 5.02
XML::DOM 1.35
XML::Parser 2.30

Here is the bug fix:

>From: ___cliff rayman___ (cliff@spamless.genwax.com)
>Subject: Re: Error running make_test of mod_perl
>Newsgroups: comp.lang.perl.modules
>View this article only
>Date: 2001-08-21 14:13:24 PST 
>i got this to work.  my method is ugly.  i noticed everywhere that
>URI::URL  was being used in mod_perl and embperl, LWP::UserAgent
>was being used.

>also, i found this is the LWP (libwww-perl-5.5395) release notes:

>    HTTP::Request, HTTP::Response will by default now use "URI" class,
>    instead of "URI::URL", when constructing its URI objects.  This
>    has a potential for breaking existing code as URI::URL objects had
>    some extra methods that external code might depend upon.

>so - i performed this patch in (perlsitelib)/(perlversion)/LWP:
>--------snip---------
>--- UserAgent.pm.orig   Thu Aug  2 14:12:56 2001
>+++ UserAgent.pm        Tue Aug 21 12:09:24 2001
>@@ -2,7 +2,7 @@

> package LWP::UserAgent;
> use strict;
>-
>+use URI::URL; # make mod_perl and others happy
> =head1 NAME
>
> LWP::UserAgent - A WWW UserAgent class
>--------snip---------
>
>looks like the next version of mod_perl and embperl will need
>to be patched:
>'use URI::URL'

Thanks,
Petra
begin:vcard 
n:Chandler;Cyndy
tel;cell:508-274-0283
tel;fax:508-457-2161
tel;home:508-540-4957
tel;work:508-289-2765
x-mozilla-html:TRUE
url:http://usjgofs.whoi.edu/general_info/data_management.html
org:Department of Marine Chemistry and Geochemistry;Woods Hole Oceanographic Institution
adr:;;MS 43;Woods Hole;MA;02543;USA
version:2.1
email;internet:cchandler@whoi.edu
title:US JGOFS Data Management Office
note;quoted-printable:Office: GEOSECS room 14=3B =0D=0AHours: M-F 8:30-4:00
x-mozilla-cpt:usjgofs.whoi.edu;-13472
fn:Cyndy Chandler
end:vcard

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement