delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/07/19:09:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <01f401c314ed$a03e2da0$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: <cygwin AT cygwin DOT com>, "Jeremy Hetzler" <jeremyhetzler AT mail DOT earthlink DOT net>
References: <5 DOT 1 DOT 1 DOT 5 DOT 2 DOT 20030507184909 DOT 00a74d38 AT mail DOT earthlink DOT net>
Subject: Re: Problems installing Perl packages in Cygwin AND Problems with Activestate perl in Cygwin
Date: Thu, 8 May 2003 00:08:52 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

Jeremy Hetzler wrote:
> At 03:10 PM 5/7/2003 -0500, Charles Plager wrote:
>> 1)  I'm trying to install packages by:
>> unix> perl -MCPAN -e shell
>> cpan> install LWP
>
> I have a working LWP install on Cygwin. I did it by using cpan to download
> and untar the packages ("get"), then going into the ~/.cpan/build/foo
> directories and building "manually". Usually this is just a matter of
"perl
> Makefile.pl; make; make test; make install".
>
> You will have to read the modules' READMEs to make sure you have all
> required dependencies installed. As I recall, LWP needs quite a few other
> modules which aren't core Perl. They're all easily cpan-gettable, though.
>
> One other gotcha: LWP will try to install /usr/bin/HEAD, which will
> conflict with /usr/bin/head.exe in our flexibly-cased and
> .exe-semitransparent wonderland. Just rename head.exe to head.exe.bak
> before the install, or let the HEAD installation fail (it's syntactic
sugar
> for the command line, not needed for Perl code).

Nothing stops you from using the CPAN shell for the whole process. Using the
cpan "look" command, you can get a shell in which you can correct the bug in
Makefile.PL before going on to build it:

$ cpan
cpan> look LWP
$ vim Makefile.PL

(Now edit the line:
@programs_to_install = () if $opt_n || grep /^LIB=/, @ARGV;
to:
@request_aliases = @programs_to_install = () if $opt_n || grep /^LIB=/,
@ARGV;
i.e. add "@request_aliases = " to the front.)

Ctrl-D

cpan> install LWP


Max.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019