安装Storm时未设置JAVA_HOME [英] JAVA_HOME NOT SET WHEN INSTALL Storm

查看:193
本文介绍了安装Storm时未设置JAVA_HOME的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在自己的计算机(Ubuntu 12.04 LTS)中安装Storm,并且按照

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.

在安装jzmq时,我首先成功执行了命令

When I installing jzmq, I firstly successfully perform the command

    sudo ./autogen.sh

但是,当我表演时

    sudo ./configure

配置错误:

    'configure: error: the JAVA_HOME environment variable must be set to your JDK location.' 

出现.

我已经使用设置了JAVA_HOME

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

    echo $JAVA_HOME

    '/usr/lib/jvm/jdk1.6.0_35'.

我不知道为什么会发生错误,有人知道吗? 非常感谢.

I do not know why the error happens, anyone knows it? Thanks a lot.

推荐答案

############################ ################################################ ## 在这里,我提供解决问题的方法:

############################################################################### Here I give my way to solve the problem:

  1. 在jzmq文件夹中打开配置

  1. Open configure in jzmq folder

sudo gedit configure

  • 在下面找到代码:

  • Find codes bellow:

    # Check for JDK
    if test "x$JAVA_HOME" = "x"; then
        as_fn_error $? "the JAVA_HOME environment variable must be set to your JDK location." "$LINENO" 5;
    fi
    

  • 在此处设置JAVA_HOME:

  • set JAVA_HOME here:

    # Check for JDK
    export JAVA_HOME=/usr/lib/jdk1.6.0_35
    echo $JAVA_HOME
    if test "x$JAVA_HOME" = "x"; then
        as_fn_error $? "the JAVA_HOME environment variable must be set to your JDK location." "$LINENO" 5;
    fi
    

  • 这种方法可以解决我的问题,也许对您有用.

  • This method can solve my problem, maybe it is useful for you.

    这篇关于安装Storm时未设置JAVA_HOME的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆