Problems compiling grep and friends
Thu Sep 27 14:02:00 GMT 2007
On 27 September 2007 14:15, Siegfried Heintze wrote:
> Im 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
> make: *** [install-data-yes] Error 1
> make: Leaving directory `/cygdrive/c/Documents and
> 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).
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin