waue0920 / crawlzilla_old

Automatically exported from code.google.com/p/crawlzilla
0 stars 0 forks source link

Enhancement of install script (1.5.120906) #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.openjdk or any version of JRE has been installed except 
sun-java6-jdk/sun-java6-jre
2.execute "install" script
3.installation succeeded but error occurs when starting namenode and jobtracker:
/opt/crawlzilla/nutch/bin/hadoop: line 258: /usr/lib/jvm/java-6-sun/bin/java: 
No such file or directory
/opt/crawlzilla/nutch/bin/hadoop: line 289: /usr/lib/jvm/java-6-sun/bin/java: 
No such file or directory

What is the expected output? What do you see instead?
The "install" script is good enough to recognize my Java version, however 
1. in the config file: Crawlzilla_Install/conf/nutch_conf/hadoop-env.sh, the 
JAVA_HOME has been fixed as /usr/lib/jvm/java-6-sun
I personally suggest this line should be changed like
export JAVA_HOME=$(dirname $(dirname $(readlink -e $(which java))))
2. Ubuntu 13.04 has no longer provided sun-java6-jdk sun-java6-jre 
sun-java6-fonts. In this cases, is it possible to set the install_array to
"openjdk-7-jdk openjdk-7-jre-lib"?

What version of the product are you using? On what operating system?
I'm using Crawlzilla-1.5.120906.tar.gz on Ubuntu 13.04 amd64.

Please provide any additional information below.
Thank you for everything!! Thank you for creating Crawlzilla!!

Original issue reported on code.google.com by maxubu...@gmail.com on 11 Oct 2013 at 5:55

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for reporting this bug.
True, you have to remove openjdk since the PATH is hard coded.
Will try to fix that in future.

Original comment by jazzwang...@gmail.com on 19 Dec 2013 at 10:08