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 Message-ID: <01f401c314ed$a03e2da0$78d96f83@pomello> From: "Max Bowsher" To: , "Jeremy Hetzler" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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/