delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/27/10:03:08

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <BC48FE265F25474AA40BEF60423DA223 AT kingmark>
Subject: RE: Problems compiling grep and friends
Date: Thu, 27 Sep 2007 15:02:36 +0100
Message-ID: <007a01c8010f$0ebe5130$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <BC48FE265F25474AA40BEF60423DA223@kingmark>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l8RE2uPi005181

On 27 September 2007 14:15, Siegfried Heintze wrote:

> I’m running xp pro and I am trying to compile grep. I downloaded the source.
> ./configure seemed to go OK but there were problems with “make”. It looks
> like it cannot find the usr directory. Is there a fix for this?

  How did you configure?  It looks like it's got confused over the --prefix
setting; that extra '/' then makes cygwin treat the path as a UNC network
path, so you're trying to install to a network share called 'local' on a
remote host named 'usr'!  

  I've seen this sort of thing happen before when I was messing around by
setting DESTDIR during "make install".  You'd better show us all your
configure and build command lines.


> mkdir //usr
> mkdir: cannot create directory `//usr': No such host or network path
> mkdir //usr/local
> mkdir: cannot create directory `//usr/local': No such host or network path
> mkdir //usr/local/share
> mkdir: cannot create directory `//usr/local/share': No such host or network
> path
> make[1]: *** [install-data-yes] Error 1
> make[1]: Leaving directory `/cygdrive/c/Documents and
>
Settings/sheintze/Desktop/ftp%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin
/release/grep/grep-2.5.1a-4/po'
> make: *** [install-recursive] Error 1

  I really wouldn't build it in your package dir though, that's a bit
cluttery.  The optimal method is to use setup.exe to download and unpack the
source for grep into /usr/src, and build it there (using the provided build
script if there should happen to be one).



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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