You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by "Brehm, Robert P" <Ro...@xerox.com> on 2007/10/20 01:58:38 UTC
Cygwin usage
Hi List,
I am using Cygwin on Windows XP. Every time I try to run bin/nutch I
get the following error:
$ bin/nutch
bin/nutch: line 15: syntax error near unexpected token `$'in\r''
'in/nutch: line 15: `case "`uname`" in
Hopefully it is a simple problem.
Regards,
Bob Brehm
Re: Cygwin usage
Posted by Susam Pal <su...@gmail.com>.
This is because windows style "\r\n" is present in the script.
You can clean the script by opening vi editor and issuing the
following commands.
:set ff=unix
:wq
If that doesn't work for you, try this:-
cp bin/nutch nutch.bak
cat nutch.bak | tr -d "\r" > bin/nutch
This should remove "\r" wherever present and your script should run.
We discussed this earlier too.
See:-
1. http://www.mail-archive.com/nutch-user@lucene.apache.org/msg08481.html
2. http://www.mail-archive.com/nutch-user@lucene.apache.org/msg08933.html
Regards,
Susam Pal
http://susam.in/
On 10/20/07, Brehm, Robert P <Ro...@xerox.com> wrote:
> Hi List,
>
> I am using Cygwin on Windows XP. Every time I try to run bin/nutch I
> get the following error:
>
> $ bin/nutch
> bin/nutch: line 15: syntax error near unexpected token `$'in\r''
> 'in/nutch: line 15: `case "`uname`" in
>
> Hopefully it is a simple problem.
>
> Regards,
>
> Bob Brehm
>
RE: Cygwin usage
Posted by Howie Wang <ho...@hotmail.com>.
Is uname installed? Is the cygwin bin directory in your path?
I'm running cygwin on XP and it's working for me.
Howie
> Subject: Cygwin usage
> Date: Fri, 19 Oct 2007 16:58:38 -0700
> From: Robert.Brehm@xerox.com
> To: nutch-user@lucene.apache.org
>
> Hi List,
>
> I am using Cygwin on Windows XP. Every time I try to run bin/nutch I
> get the following error:
>
> $ bin/nutch
> bin/nutch: line 15: syntax error near unexpected token `$'in\r''
> 'in/nutch: line 15: `case "`uname`" in
>
> Hopefully it is a simple problem.
>
> Regards,
>
> Bob Brehm
_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033