X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References: <BC48FE265F25474AA40BEF60423DA223@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
Content-Type: text/plain; 	charset="iso-8859-1"
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <BC48FE265F25474AA40BEF60423DA223@kingmark>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
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/


