Downloading the source tree from svn wasn't exactly trivial as I had to get the
latest trunk, not the development branch. In the end I had to do these steps
to get it to fully work:
$ svn co http://svn.apache.org/repos/asf/lucene/nutch/trunk nutch
$ cd nutch
$ wget
https://issues.apache.org/jira/secure/attachment/12360411/NUTCH-505_draft_v2.patch
$ patch -p0 < NUTCH-505_draft_v2.patch
$ ant clean && ant
For a more details see:
http://www.mail-archive.com/nutch-user%40lucene.apache.org/msg08626.html
("Re: NUTCH-505 - cannot find symbol: variable URL_VALIDATOR")
--Kai
----- Original Message ----
From: Kai_testing Middleton <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Monday, June 25, 2007 4:32:29 PM
Subject: Re: how to apply a patch to nutch
I wrote Steve Kallestad directly asking if he ever got his problem fixed and he
replied as follows:
Yes I did...
The easiest thing to do is to download the source tree via svn or cvs
rather than the tarball.
There are more files that are not included
with the distro.
Aside from that, you could copy your xml config files in ${
conf.dir} to filename.template
Basically,
there's a command that touches all the files *.template, and when they
don't exist it fails.
You just need the files to be there and then
you'll be good to go.
----- Original Message ----
From: Kai_testing Middleton <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Monday, June 25, 2007 3:53:55 PM
Subject: Re: how to apply a patch to nutch
I find one other message on the mail list like this one:
"Build Failure with 0.8.1" by Steve Kallestad
http://www.mail-archive.com/[EMAIL PROTECTED]/msg07055.html
I get the same sort of failure that Steve got. Specifically, this portion of
the build.xml file is what ant complains about:
61 <touch datetime="01/25/1971 2:00 pm">
62 <fileset dir="${conf.dir}" includes="**/*.template"/>
63 </touch>
Here's a verbose output from ant:
[EMAIL PROTECTED] /usr/local/nutch-0.9]$ ant -verbose compile
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Detected Java version: 1.5 in: /usr/local/diablo-jdk1.5.0/jre
Detected OS: FreeBSD
parsing buildfile /usr/local/nutch-0.9/build.xml with URI =
file:/usr/local/nutch-0.9/build.xml
Project base dir set to: /usr/local/nutch-0.9
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
[property] Loading /root/build.properties
[property] Unable to find property file: /root/build.properties
[property] Loading /usr/local/nutch-0.9/build.properties
[property] Unable to find property file: /usr/local/nutch-0.9/build.properties
[property] Loading /usr/local/nutch-0.9/default.properties
Override ignored for property "basedir"
Property "plugin.analysis-de" has not been set
Property "plugin.analysis-fr" has not been set
Build sequence for target(s) `compile' is [init, compile-core, compile-plugins,
compile]
Complete build sequence is [init, compile-core, compile-plugins,
compile, generate-src, generate-docs, compile-core-test, test-core,
jar, job, war, javadoc, package, dynamic, test-plugins, default-doc,
test, tar, nightly, generate-locale, clean, pmd, ]
init:
[mkdir] Skipping /usr/local/nutch-0.9/build because it already exists.
[mkdir] Skipping /usr/local/nutch-0.9/build/classes because it already
exists.
[mkdir] Skipping /usr/local/nutch-0.9/build/test because it already exists.
[mkdir] Skipping /usr/local/nutch-0.9/build/test/classes because it already
exists.
BUILD FAILED
/usr/local/nutch-0.9/build.xml:61: Specify at least one source--a file or
resource collection.
at
org.apache.tools.ant.taskdefs.Touch.checkConfiguration(Touch.java:226)
at org.apache.tools.ant.taskdefs.Touch.execute(Touch.java:274)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Total time: 1 second
[EMAIL PROTECTED] /usr/local/nutch-0.9]$ sudo ant compile
Password:
Buildfile: build.xml
init:
BUILD FAILED
/usr/local/nutch-0.9/build.xml:61: Specify at least one source--a file or
resource collection.
Total time: 0 seconds
----- Original Message ----
From: Kai_testing Middleton <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Monday, June 25, 2007 3:18:30 PM
Subject: how to apply a patch to nutch
I believe I have applied the patch correctly. I downloaded the patch file to
my nutch-9.0 directory then executed this command:
patch < NUTCH-505_draft_v2.patch
I got output that included the following:
...
Hunk #1 succeeded at 29.
Hunk #2 failed at 49.
Hunk #3 succeeded at 119 (offset -29 lines).
...
Hunk #1 succeeded at 1.
done
I don't know if that "Hunk #2 failed at 49" is something to worry about.
I work on the server via ssh so I don't think it would be immediately
convenient to use eclipse. I tried to use ant but I get:
BUILD FAILED
/usr/local/nutch-0.9/build.xml:61: Specify at least one source--a file or
resource collection.
If I google for
" Specify at least one source" "a file or resource collection"
I only get a few hits, all nutch related; i.e., it seems like something is
wrong with my nutch configuration? I downloaded nutch last week so it's rather
new.
Any ideas on this?
--Kai Middleton
----- Original Message ----
From: Marcin Okraszewski <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Monday, June 25, 2007 1:01:26 PM
Subject: Fwd: Re: how to apply a patch to nutch
Unfortunately it is not working in this way. You need to download source code,
apply the patch, build nutch from patched sources. A bit info on patching:
http://en.wikipedia.org/wiki/Patch_%28Unix%29
http://www.hmug.org/man/1/patch.php
You can use Eclipse for applying patch - it is convenient way of doing it.
Marcin
> > Question: How do I apply a patch to nutch? Or I might ask: how do
> > install a patch into nutch? If I understand correctly, nutch has a patch
> > system such that one can take a stable release and install one or more
> > specific patches into it in order to get updated functionality, right?
> > Phrased one more time, so the search engines might place this a bit higher
> > on their ranking: if I want to patch nutch, where do I download the patch
> > file to, and what extra steps do I need to do? Do I unjar nutch.jar and
> > modify it with the .patch file? What is the procedure for patching nutch?
> >
> > Here's a specific example:
> > I would like to apply NUTCH-505 to my newly installed nutch-0.9:
> > https://issues.apache.org/jira/browse/NUTCH-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507803
> >
> > As of this writing I find two .patch files there:
> >
> >
> >
> >
> >
> >
> > 1.
> >
> >
> >
> >
> >
> > NUTCH-505_draft.patch (22 kb)
> >
> >
> >
> >
> >
> > 2.
> >
> >
> >
> >
> >
> > NUTCH-505_draft_v2.patch (21 kb)
> >
> > My nutch installation looks like this:
> >
> > [EMAIL PROTECTED] /usr/local/nutch-0.9]$
> > total 35728
> > drwxr-xr-x 7 root wheel 512 Apr 2 20:44 webapps
> > drwxr-xr-x 49 root wheel 1536 Apr 2 20:44 plugins
> > -rw-r--r-- 1 root wheel 16623050 Apr 2 20:44 nutch-0.9.war
> > -rw-r--r-- 1 root wheel 19306077 Apr 2 20:44 nutch-0.9.job
> > -rw-r--r-- 1 root wheel 477935 Apr 2 20:44 nutch-0.9.jar
> > drwxr-xr-x 5 root wheel 1024 Apr 2 20:44 lib
> > drwxr-xr-x 22 root wheel 512 Apr 2 20:44 docs
> > drwxr-xr-x 2 root wheel 1024 Apr 2 20:44 conf
> > drwxr-xr-x 2 root wheel 512 Apr 2 20:44 bin
> > -rw-r--r-- 1 root wheel 403 Apr 2 20:44 README.txt
> > -rw-r--r-- 1 root wheel 101 Apr 2 20:44 NOTICE.txt
> > -rw-r--r-- 1 root wheel 11358 Apr 2 20:44 LICENSE.txt
> > -rw-r--r-- 1 root wheel 30932 Apr 2 20:44 CHANGES.txt
> > drwxr-xr-x 10 root wheel 512 Apr 2 20:44 src
> > -rw-r--r-- 1 root wheel 3259 Apr 2 20:44 default.properties
> > -rw-r--r-- 1 root wheel 23181 Apr 2 20:44 build.xml
> > drwxr-xr-x 33 root wheel 1024 Jun 21 09:48 ..
> > drwxr-xr-x 2 root wheel 512 Jun 21 11:44 logs
> > drwxr-xr-x 10 root wheel 512 Jun 21 11:44 .
> >
> > There are no .patch files anywhere in that directory tree so I don't have
> > any good guesses.
> >
> > Please advise.
____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
____________________________________________________________________________________Ready
for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/
____________________________________________________________________________________
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general