This is the mail archive of the cygwin 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: installing Perl module uses wrong make


On 09/09/2011 08:08 PM, Ivanov Dmitry wrote:
> I am trying to install a Perl module for cygwin Perl.
> 
> I run this command:
> 
> cpan Digest::SHA1
> 
> after some time it gives me the error:
> 
> Writing Makefile for Digest::SHA1
> MAKE Version 5.2  Copyright (c) 1987, 1998 Inprise Corp.
> Fatal: '/usr/lib/perl5/5.10/i686-cygwin/Config.pm' does not exist - don't know h
> ow to make it
>   GAAS/Digest-SHA1-2.13.tar.gz
>   '/cygdrive/c/Program Files/Borland/Delphi7/Bin/make.EXE' -- NOT OK
> 
> 
> ----------------------------------------------------------------------
> Seems, that is uses make from my Delphi instead of cygwins make. But I don't have Delphi in the PATH.
[snip]
> ----------------------------------------------------------------------
> Where should I put the correct make?

Not sure why it picked up that make.  Have you set the MAKE environment
variable?

To use the right make, enter the CPAN shell.

$ cpan

Have a look at your "make" configuration

cpan[1]> o conf make
    make               [/path/to/wrong/make]

Change the value.

cpan[2]> o conf make /usr/bin/make
    make               [/usr/bin/make]

You can make the change permanent with "o conf commit," or just keep it
for this session.  Either way, you should not be able to install the module.

cpan[3]> install Digest::SHA1

Ron

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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