Hello everyone!

I am trying to integrate Nutch with Solr by applying the NUTCH-442_v8.patch
file. But not much successful in the patching process. See below:

The text below shown *in red* is my input on the SSH client window:


I've just downloaded
NUTCH-442_v8.patch<https://issues.apache.org/jira/secure/attachment/12391810/NUTCH-442_v8.patch>from
https://issues.apache.org/jira/browse/NUTCH-442, but the patching process
gave me lots of errors, see below:

*webby88 /opt/tomcat6/webapps/nutch: patch < NUTCH-442_v8.patch* (*Is this
right to apply patches in Linux CentOS 5.2?*)

The next patch would delete the file TestDistributedSearch.java,
which does not exist!  Assume -R? [n]
Apply anyway? [n] *y*   (I chose yes)
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/test/org/apache/nutch/searcher/TestDistributedSearch.java
|===================================================================
|--- src/test/org/apache/nutch/searcher/TestDistributedSearch.java
(revision 701044)
|+++ src/test/org/apache/nutch/searcher/TestDistributedSearch.java
(working copy)
--------------------------
File to patch:
Skip this patch? [y] n
File to patch: *src/test/org/apache/nutch/**searcher/**
TestDistributedSearch.java* (*I copied the path from the revision 701044 to
here*)
patching file src/test/org/apache/nutch/searcher/TestDistributedSearch.java
*can't find file to patch at input line 154*
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/test/org/apache/nutch/indexer/TestIndexingFilters.java
|===================================================================
|--- src/test/org/apache/nutch/indexer/TestIndexingFilters.java (revision
701044)
|+++ src/test/org/apache/nutch/indexer/TestIndexingFilters.java (working
copy)
--------------------------
File to patch: *src/test/org/apache/nutch/indexer/TestIndexingFilters.java*(
*I copied the path from the revision 701044 to here*)

*Too many similar 'file cannot be found' errors here, so errors cut off.*

File to patch:
Skip this patch? [y] *y*
Skipping patch.
11 out of 11 hunks ignored
patching file build.xml

When I tried to run '*ant war*' in the nutch installation directory, I got
this error:

*BUILD FAILED
/opt/tomcat6/webapps/nutch/build.xml:107: Compile failed; see the compiler
error output for details.*

I wonder if my way of applying this patch is correct or not. Could you
please give me some correction if I did wrong? My system is CentOS 5.2 by
the way.

Thanks!

Tony



-- 
Signature: Success is a journey that never ends.

Reply via email to