Re: [Nutch-cvs] svn commit: r372810 - /lucene/nutch/trunk/bin/nutch

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

Re: [Nutch-cvs] svn commit: r372810 - /lucene/nutch/trunk/bin/nutch

Andrzej Białecki-2
[hidden email] wrote:
> Author: cutting
> Date: Fri Jan 27 02:45:35 2006
> New Revision: 372810
>
> URL: http://svn.apache.org/viewcvs?rev=372810&view=rev
> Log:
> Explicitly specify bash, since this script requires some bash-specific features.
>  

Namely? I didn't notice any ... I think it's better to avoid bash-isms,
if we easily can. Not all the world looks like Linux. ;-)

--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


Reply | Threaded
Open this post in threaded view
|

Re: [Nutch-cvs] svn commit: r372810 - /lucene/nutch/trunk/bin/nutch

Doug Cutting-2
Andrzej Bialecki wrote:
> Namely? I didn't notice any ... I think it's better to avoid bash-isms,
> if we easily can. Not all the world looks like Linux. ;-)

IFS, at least.  I tried running this on Solaris, where /bin/sh is not
bash, and it didn't work.  It complained about unsetting IFS.

Doug
Reply | Threaded
Open this post in threaded view
|

Re: [Nutch-cvs] svn commit: r372810 - /lucene/nutch/trunk/bin/nutch

Andrzej Białecki-2
Doug Cutting wrote:
> Andrzej Bialecki wrote:
>> Namely? I didn't notice any ... I think it's better to avoid
>> bash-isms, if we easily can. Not all the world looks like Linux. ;-)
>
> IFS, at least.  I tried running this on Solaris, where /bin/sh is not
> bash, and it didn't work.  It complained about unsetting IFS.

Right, Solaris /bin/sh doesn't allow that... Hmm. Does this IFS
setting/unsetting work for you? I mean, I just tried it on Linux, using
the real Bash. I put the nutch distrib in a path containing spaces, and
I'm not able to run anything...

*ab@xxxx:~/nutch/trunk 1/bin$* ./nutch inject
/usr/local/java/jdk1.5.0_06/bin/java -Xmx1000m -classpath
/home/nutch/conf:/usr/local/java/jdk1.5.0_06/lib/tools.jar:/home/ab/nutch/trunk
1/nutch-*.jar:/home/ab/nutch/trunk
1/lib/commons-lang-2.1.jar:/home/ab/nutch/trunk
1/lib/commons-logging-api-1.0.4.jar:/home/ab/nutch/trunk
1/lib/concurrent-1.3.4.jar:/home/ab/nutch/trunk
1/lib/jakarta-oro-2.0.7.jar:/home/ab/nutch/trunk
1/lib/jetty-5.1.4.jar:/home/ab/nutch/trunk
1/lib/junit-3.8.1.jar:/home/ab/nutch/trunk
1/lib/lucene-core-1.9-rc1-dev.jar:/home/ab/nutch/trunk
1/lib/lucene-misc-1.9-rc1-dev.jar:/home/ab/nutch/trunk
1/lib/servlet-api.jar:/home/ab/nutch/trunk
1/lib/taglibs-i18n.jar:/home/ab/nutch/trunk
1/lib/xerces-2_6_2-apis.jar:/home/ab/nutch/trunk
1/lib/xerces-2_6_2.jar:/home/ab/nutch/trunk
1/lib/jetty-ext/ant.jar:/home/ab/nutch/trunk
1/lib/jetty-ext/commons-el.jar:/home/ab/nutch/trunk
1/lib/jetty-ext/jasper-compiler.jar:/home/ab/nutch/trunk
1/lib/jetty-ext/jasper-runtime.jar:/home/ab/nutch/trunk
1/lib/jetty-ext/jsp-api.jar org.apache.nutch.crawl.Injector
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/nutch/crawl/Injector

--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


Reply | Threaded
Open this post in threaded view
|

Re: [Nutch-cvs] svn commit: r372810 - /lucene/nutch/trunk/bin/nutch

Doug Cutting-2
Andrzej Bialecki wrote:
> Right, Solaris /bin/sh doesn't allow that... Hmm. Does this IFS
> setting/unsetting work for you? I mean, I just tried it on Linux, using
> the real Bash. I put the nutch distrib in a path containing spaces, and
> I'm not able to run anything...

I initially added it to make things work on Windows with directory names
like "Documents and Settings" and "Program Files".  I think it still
works correctly there.

Doug