delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/17/01:42:04

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
To: "Gary Nielson" <gary AT garynielson DOT com>
Cc: "Peter J. Acklam" <pjacklam AT online DOT no>, <cygwin AT cygwin DOT com>
Subject: Re: Perl CPAN module help
References: <OPEKJLGNDDPKCJBJLEGLMEDKHBAA DOT gary AT garynielson DOT com>
From: pjacklam AT online DOT no (Peter J. Acklam)
Organization: Private
Date: Mon, 17 Nov 2003 07:40:07 +0100
In-Reply-To: <OPEKJLGNDDPKCJBJLEGLMEDKHBAA.gary@garynielson.com> (Gary
Nielson's message of "Sun, 16 Nov 2003 15:29:49 -0500")
Message-ID: <znevbirc.fsf@online.no>
User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (windows-nt)
MIME-Version: 1.0

"Gary Nielson" <gary AT garynielson DOT com> wrote:

> I am getting somewhere. I used setup and installed needed
> executables such as gcc. Did a force install in cpan for LWP
> modules and it seemed to be go great. All tests were successful
> in make test. But when running make install I got the error:

You shouldn't use "force install" unless you really know what
you're doing.  If your module fails a regular "install" you should
investigate the problem and find the solution rather than do a
"force install".  With a "force install" you are likely to install
modules which fail some way on your system and hence shouldn't
have been installed.

> "Cannot forceunlink /usr/bin/HEAD: No such file or directory at
> /usr/lib/perl5/5.8.0/File/Find.pm line 873.
> make: *** [pure_site_install] Error 255
> /usr/bin/make install -- NOT OK.
>
> The Find.pm line in question is: { $wanted_callback->() }; #
> protect against wild "next"

When installing LWP you are asked whether you want to install the
GET, HEAD, and POST programs.  You have chosed "yes" or the "force
install" did it for you.  Either way, it was discovered that HEAD
exists (as /usr/bin/head.exe) and Perl is trying to remove it, but
although "which head" says "/usr/bin/HEAD", there really is no
"/usr/bin/HEAD.exe", it's "/usr/bin/head.exe".  The problem is
that "which" matches case insensitively, but "rm" doesn't.

The solution is:  Don't install CPAN modules under "/usr", use
"/usr/local"!  When you install modules without CPAN, use the
steps

    perl Makefile.PL PREFIX=/usr/local
    make
    make test
    make install

this is done with the CPAN shell by setting

    cpan> o conf makepl_arg PREFIX=/usr/local
    cpan> o conf commit

> Any idea what is going wrong, or is the question better posed to
> a perl forum?

The "head" vs "HEAD" is a Cygwin thing, so I think it belongs
equally well here.

Peter

-- 
Peter J. Acklam - pjacklam AT online DOT no - http://home.online.no/~pjacklam


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