bin/nutch issue - on Mac OS X

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bin/nutch issue - on Mac OS X

Erik Hatcher
I'm getting "expr: syntax error" when running all bin/nutch  
commands.  It comes from this line:

     if expr match `uname` 'CYGWIN*' > /dev/null; then

should this be modified to be this instead:

     if expr `uname` : 'CYGWIN*' > /dev/null; then

That works for me, but I'm not running Cygwin.  For those running  
Cygwin, could you try this change to see if it works for you and let  
me know?

Thanks,
     Erik

Reply | Threaded
Open this post in threaded view
|

RE: bin/nutch issue - on Mac OS X

Howie Wang
It works for me and I'm on Cygwin.

Howie

>I'm getting "expr: syntax error" when running all bin/nutch  commands.  It
>comes from this line:
>
>     if expr match `uname` 'CYGWIN*' > /dev/null; then
>
>should this be modified to be this instead:
>
>     if expr `uname` : 'CYGWIN*' > /dev/null; then
>
>That works for me, but I'm not running Cygwin.  For those running  Cygwin,
>could you try this change to see if it works for you and let  me know?
>
>Thanks,
>     Erik
>


Reply | Threaded
Open this post in threaded view
|

Re: bin/nutch issue - on Mac OS X

Piotr Kosiorowski
In reply to this post by Erik Hatcher
Hello,
Tested on cygwin and on linux box. :" based syntax is used ealier in
nutch script too. Commited.
Thanks
Piotr

Erik Hatcher wrote:

> I'm getting "expr: syntax error" when running all bin/nutch  commands.  
> It comes from this line:
>
>     if expr match `uname` 'CYGWIN*' > /dev/null; then
>
> should this be modified to be this instead:
>
>     if expr `uname` : 'CYGWIN*' > /dev/null; then
>
> That works for me, but I'm not running Cygwin.  For those running  
> Cygwin, could you try this change to see if it works for you and let  me
> know?
>
> Thanks,
>     Erik
>
>