From: Vishal B. <vis...@gm...> - 2011-02-26 08:38:32
|
John, I used the "sudo env JAVA_HOME=$JAVA_HOME ./install.sh" form to run the install script. However, having managed to do that, now I cannot get the server to fire up. Here's the output. Curiously, I managed to get LucidDB up and running on a Windows machine a month ago without much trouble, but it is looking a little tricky under Ubuntu. --- vishal@goedel:/opt/luciddb-0.9.3/bin$ sudo env JAVA_HOME=$JAVA_HOME ./lucidDbServer Server personality: LucidDB Loading database... Exception in thread "main" org.eigenbase.util.EigenbaseException: Failed to load database at net.sf.farrago.resource.FarragoResource$_Def1.ex(FarragoResource.java:2021) at net.sf.farrago.db.FarragoDatabase.<init>(FarragoDatabase.java:292) at net.sf.farrago.db.FarragoDbSingleton.pinReference(FarragoDbSingleton.java:100) at net.sf.farrago.server.FarragoAbstractServer.start(FarragoAbstractServer.java:232) at org.luciddb.session.LucidDbServer.main(LucidDbServer.java:62) Caused by: org.eigenbase.util.EigenbaseException: FennelResource.en_US.libaioRequired() at net.sf.farrago.resource.FarragoResource$_Def0.ex(FarragoResource.java:1998) at net.sf.farrago.fennel.FennelDbHandleImpl.handleNativeException(FennelDbHandleImpl.java:340) at net.sf.farrago.fennel.FennelDbHandleImpl.executeCmd(FennelDbHandleImpl.java:267) at net.sf.farrago.fennel.FennelDbHandleImpl.executeCmd(FennelDbHandleImpl.java:181) at net.sf.farrago.fennel.FennelDbHandleImpl.<init>(FennelDbHandleImpl.java:90) at net.sf.farrago.db.FarragoDatabase.loadFennel(FarragoDatabase.java:567) at net.sf.farrago.db.FarragoDatabase.<init>(FarragoDatabase.java:205) ... 3 more vishal@goedel:/opt/luciddb-0.9.3/bin$ --- Best wishes, Vishal Belsare On Sat, Feb 26, 2011 at 2:29 AM, <luc...@li...> wrote: > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 25 Feb 2011 02:22:51 +0530 > From: Vishal Belsare <vis...@gm...> > Subject: Re: [luciddb-users] luciddb-users Digest, Vol 43, Issue 2 > To: luc...@li... > Message-ID: > <AANLkTi=ofBxaqRN0VNnPVHY52Zi=McD...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > vishal@goedel:~$ sudo export $JAVA_HOME > sudo: export: command not found > > Strange. > > On Fri, Feb 25, 2011 at 2:06 AM, > <luc...@li...> wrote: >> >> Message: 6 >> Date: Thu, 24 Feb 2011 12:34:55 -0800 >> From: John Sichi <js...@gm...> >> Subject: Re: [luciddb-users] LucidDB 0.9.3 Installation Issue under >> ? ? ? ?Ubuntu ?10.04 >> To: Mailing list for users of LucidDB >> ? ? ? ?<luc...@li...> >> >> 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 >> <vis...@gm...> 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 >> ******************************************** >> > > > > ------------------------------ > > Message: 2 > Date: Thu, 24 Feb 2011 12:59:41 -0800 > From: John Sichi <js...@gm...> > Subject: Re: [luciddb-users] luciddb-users Digest, Vol 43, Issue 2 > To: Mailing list for users of LucidDB > <luc...@li...> > Message-ID: > <AAN...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > 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 > <vis...@gm...> wrote: >> vishal@goedel:~$ sudo export $JAVA_HOME >> sudo: export: command not found >> >> Strange. >> >> On Fri, Feb 25, 2011 at 2:06 AM, >> <luc...@li...> wrote: >>> >>> Message: 6 >>> Date: Thu, 24 Feb 2011 12:34:55 -0800 >>> From: John Sichi <js...@gm...> >>> Subject: Re: [luciddb-users] LucidDB 0.9.3 Installation Issue under >>> ? ? ? ?Ubuntu ?10.04 >>> To: Mailing list for users of LucidDB >>> ? ? ? ?<luc...@li...> >>> >>> 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 >>> <vis...@gm...> 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 -- We agnostics often envy the True Believer, who thus acquires so easily that sense of security which is forever denied to us. ~ E. T. Jaynes |