I want to install Storm in my own machine(Ubuntu 12.04 LTS) and I follow the instructions in
https://github.com/nathanmarz/storm/wiki/Installing-native-dependencies.
When I installing jzmq, I firstly successfully perform the command
sudo ./autogen.sh
however, when I perform
sudo ./configure
The configuration error:
'configure: error: the JAVA_HOME environment variable must be set to your JDK location.'
appears.
I have set the JAVA_HOME using
sudo gedit /etc/profile
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_35
export JRE_HOME=.....
export CLASSPATH=......
source /etc/profile
and the output of
echo $JAVA_HOME
is
'/usr/lib/jvm/jdk1.6.0_35'.
I do not know why the error happens, anyone knows it? Thanks a lot.
Hit the same issue among others while installing JZMQ as part of Storm 0.82 install a couple of months back. Solved this problem by doing exactly what you outlined above. There were some other gotchas for JZMQ. Copying my INSTALL steps and hopefully they'll be useful.
############################################################################### Here I give my way to solve the problem:
Open configure in jzmq folder
Find codes bellow:
set JAVA_HOME here:
This method can solve my problem, maybe it is useful for you.