Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 1 Sep 2003 21:28:06 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Using ActivePerl 5.8 on a cygwin system In-Reply-To: <3F53D2C0.849C5D3D@dessent.net> Message-ID: References: <3F53D2C0 DOT 849C5D3D AT dessent DOT net> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 1 Sep 2003, Brian Dessent wrote: > John Seeliger wrote: > > > > I have had cygwin installed on this PC for quite some time, but hadn't > > updated it for a while. I wanted to run yahoo2mbox.pl and found it wouldn't > > work with the perl 5.6.1 I had installed, so I downloaded ActivePerl 5.8.? > > and tried running the script from a Windows XP prompt, but it used the > > cygwin perl. So, I just copied the ActivePerl over the cygwin perl (yeah, I > > know, not a good idea) and then it still wouldn't work because some of the > > lib files used by it weren't there either. I copied a few of those as well, > > but still to no avail. > > > > Have I just hosed my cygwin? Will downloading the updated perl help? How > > can I download just perl without going through the installer and selecting > > "keep" on every single other item? > > I use perl 5.6.1 with Cygwin and the yahoo2mbox.pl script works just > fine. You need to have the proper modules installed from CPAN of > course, but this is the case with any perl version on any operating > system. If you look at the top of the script you'll see: > > use Getopt::Long (); > use HTML::Entities (); > use HTML::HeadParser (); > use HTML::TokeParser (); > use HTTP::Request::Common qw(GET POST); > use HTTP::Cookies (); > use LWP::UserAgent (); > use LWP::Simple (); > > So these modules must be present in your installation for this script to > work. If you don't know how to use CPAN you may want to read the > documentation for it, see also . I think you can > get everything you need by installing Bundle::LWP and HTML::Parser. > > Brian John, Beware that installing the LWP module will create three scripts in your /usr/bin: HEAD, GET, and POST. The first one (/usr/bin/HEAD) will make the "head" command non-operational. Renaming these scripts to HEAD.pl, GET.pl, and POST.pl, respectively, fixes this problem without losing the LWP module's command-line functionality. The LWP maintainers are aware of the problem and elected not to address it, IIRC. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/