This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Perl CPAN module help

"Gary Nielson" <> 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/ line 873.
> make: *** [pure_site_install] Error 255
> /usr/bin/make install -- NOT OK.
> The 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

    perl Makefile.PL PREFIX=/usr/local
    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 J. Acklam - -

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]