Re: luciddb-users Digest, Vol 43, Issue 2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: luciddb-users Digest, Vol 43, Issue 2

Vishal Belsare
vishal@goedel:~$ sudo export $JAVA_HOME
sudo: export: command not found

Strange.

On Fri, Feb 25, 2011 at 2:06 AM,
<[hidden email]> wrote:

>
> Message: 6
> Date: Thu, 24 Feb 2011 12:34:55 -0800
> From: John Sichi <[hidden email]>
> Subject: Re: [luciddb-users] LucidDB 0.9.3 Installation Issue under
>        Ubuntu  10.04
> To: Mailing list for users of LucidDB
>        <[hidden email]>
>
> What do you get back from this command?
>
> sudo export $JAVA_HOME
>
> The install script does this:
>
> if [ -z "$JAVA_HOME" ]; then
>    echo "The JAVA_HOME environment variable must be set to the location"
>    echo "of a version 1.6 or higher JVM."
>    exit 1;
> fi
>
> So somehow JAVA_HOME is not visible inside the script, which usually
> means it is set but not exported.
>
> JVS
>
> On Thu, Feb 24, 2011 at 12:26 PM, Vishal Belsare
> <[hidden email]> wrote:
>> I am trying to install LucidDB on an Ubuntu machine. Untar'ing the
>> archive, and trying to run the install script led to an error about
>> the Java virtual machine being incorrect. I was using the IcedTea
>> OpenJDK, instead of Sun's JRE.
>> Thinking that this might the issue, I installed Sun' JRE, and set it
>> as the default JRE, and confirmed that by using 'which java' and 'java
>> -version'. Showed up fine. Edited, /etc/environment to set JAVA_HOME
>> to /usr/lib/jvm/java-6-sun and confirmed that by an echo $JAVA_HOME,
>> which shows correctly.
>>
>> -----
>> vishal@goedel:/opt/luciddb-0.9.3/install$ sudo echo $JAVA_HOME
>> /usr/lib/jvm/java-6-sun
>>
>> vishal@goedel:/opt/luciddb-0.9.3/install$ which java
>> /usr/bin/java
>>
>> vishal@goedel:/opt/luciddb-0.9.3/install$ sudo java -version
>> java version "1.6.0_24"
>> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
>> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>> -----
>>
>> However, when I try to run install.sh, I see the following message:
>> --
>> vishal@goedel:/opt/luciddb-0.9.3/install$ sudo ./install.sh
>> The JAVA_HOME environment variable must be set to the location
>> of a version 1.6 or higher JVM.
>> --
>>
>> I'd appreciate suggestions to fix this. Thanks.
>>
>>
>> Best wishes,
>> Vishal Belsare
>>
>
>
> End of luciddb-users Digest, Vol 43, Issue 2
> ********************************************
>

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
luciddb-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luciddb-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: luciddb-users Digest, Vol 43, Issue 2

John Sichi
Administrator
Oh, export is a bash builtin so I guess you can't sudo it.

You can instead do

sudo su
export | grep JAVA_HOME

and see if it shows anything.

One way or another, you'll need to make sure JAVA_HOME is visible to
that script.

JVS

On Thu, Feb 24, 2011 at 12:52 PM, Vishal Belsare
<[hidden email]> wrote:

> vishal@goedel:~$ sudo export $JAVA_HOME
> sudo: export: command not found
>
> Strange.
>
> On Fri, Feb 25, 2011 at 2:06 AM,
> <[hidden email]> wrote:
>>
>> Message: 6
>> Date: Thu, 24 Feb 2011 12:34:55 -0800
>> From: John Sichi <[hidden email]>
>> Subject: Re: [luciddb-users] LucidDB 0.9.3 Installation Issue under
>>        Ubuntu  10.04
>> To: Mailing list for users of LucidDB
>>        <[hidden email]>
>>
>> What do you get back from this command?
>>
>> sudo export $JAVA_HOME
>>
>> The install script does this:
>>
>> if [ -z "$JAVA_HOME" ]; then
>>    echo "The JAVA_HOME environment variable must be set to the location"
>>    echo "of a version 1.6 or higher JVM."
>>    exit 1;
>> fi
>>
>> So somehow JAVA_HOME is not visible inside the script, which usually
>> means it is set but not exported.
>>
>> JVS
>>
>> On Thu, Feb 24, 2011 at 12:26 PM, Vishal Belsare
>> <[hidden email]> wrote:
>>> I am trying to install LucidDB on an Ubuntu machine. Untar'ing the
>>> archive, and trying to run the install script led to an error about
>>> the Java virtual machine being incorrect. I was using the IcedTea
>>> OpenJDK, instead of Sun's JRE.
>>> Thinking that this might the issue, I installed Sun' JRE, and set it
>>> as the default JRE, and confirmed that by using 'which java' and 'java
>>> -version'. Showed up fine. Edited, /etc/environment to set JAVA_HOME
>>> to /usr/lib/jvm/java-6-sun and confirmed that by an echo $JAVA_HOME,
>>> which shows correctly.
>>>
>>> -----
>>> vishal@goedel:/opt/luciddb-0.9.3/install$ sudo echo $JAVA_HOME
>>> /usr/lib/jvm/java-6-sun
>>>
>>> vishal@goedel:/opt/luciddb-0.9.3/install$ which java
>>> /usr/bin/java
>>>
>>> vishal@goedel:/opt/luciddb-0.9.3/install$ sudo java -version
>>> java version "1.6.0_24"
>>> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
>>> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>>> -----
>>>
>>> However, when I try to run install.sh, I see the following message:
>>> --
>>> vishal@goedel:/opt/luciddb-0.9.3/install$ sudo ./install.sh
>>> The JAVA_HOME environment variable must be set to the location
>>> of a version 1.6 or higher JVM.
>>> --
>>>
>>> I'd appreciate suggestions to fix this. Thanks.
>>>
>>>
>>> Best wishes,
>>> Vishal Belsare
>>>
>>
>>
>> End of luciddb-users Digest, Vol 43, Issue 2
>> ********************************************
>>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> luciddb-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/luciddb-users
>

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
luciddb-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luciddb-users
Loading...