onsdag, 25. mars, 2009 | Forfatter:

Det fikk jeg endelig Tenn sanntid'S Gnist å jobbe. Jeg liker ikke spesielt Spark – men det er en nødvendighet, og jeg er sikker på at andre har hatt problemer med det.

Som noen lesere kanskje er klar over, Jeg bruker 64-bit Arch Linux. Gnist renner på toppen av en JRE, uavhengig av baseplattformen. Derfor, dette burde ikke være noe problem. Men, Det ser ut til at gnister kommer med en 32-biters JRE.

Etter mye bry, Til slutt regnet jeg med at alt jeg måtte gjøre var å skjule eller fjerne (gi nytt navn eller slette) den medfølgende JRE. Denne måten, Sparks oppstartsskript finner ikke den medfølgende JRE, og det ville bli tvunget til å søke etter det som er innebygd i systemet. Jeg hadde tidligere installert OpenJDK, en åpen kildekode-JRE fra Arch's [ekstra] oppbevaringssted.

Det hender også at det er en mindre feil i oppstartsskriptet ved at det leter etter en mappe som heter “vinduer” når det tydeligvis ikke er en slik mappe bortsett fra en som heter “linux”. Gå figur.

Uansett, her er viktigheten av installasjonen hvis du gjør det manuelt på 64bit og du har allerede en JRE (som openjdk) installert for systemet ditt:

mkdir -p ~/src
cd ~/src
wget http://download.igniterealtime.org/gnist/spark_2_5_8.tar.gz
tar -zxvf spark_2_5_8.tar.gz
mv Gnist/jre Spark/jre.not
og -Jeg 's /  / lib  / windows /  / lib  / linux / g' Gnist/Gnist
sudo mkdir -p /opt
sudo mv Gnist /opt
Dele
Kategori: linux, nettverk, web
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, eller trackback from your own site.

6 Responses

  1. 1
    Bel 

    Thank you for sharing this. This is what I want a step by step because I am new to linux. I don’t know whats the meaning of those commands. I perform all the commands and what’s the next step of that? Can I run now the spark? Thank you so much!!!

  2. 2
    Bel 

    I was able to run the spark after this. The window appeared! great!

    /opt/Spark$ ./starter
    testing JVM in /usr
    /opt/Spark$ sh -x ./Spark

    But when I entered the jabber.apac.local in the server box, it can’t connect. But in windows same server I am using and its working. Is there anything that I can do here?

    Please advise. Thank you so much!!!!

  3. 3
    Tricky 

    Hi Bel

    I’m afraid that I’m not familiar with troubleshooting Spark once it is actually running since I’ve never had any similar issues. I’m happy I at least helped one person get a few steps further. 🙂

    I think the next steps would be to check if you don’t have a firewall-type issue preventing your requests from leaving the Linux desktop. If that is not the issue, I’m not at all certain how to proceed.

  4. 4
    Bel 

    Thanks Tricky! I’m gonna ask our security team if they are blocking something when the users are using linux box. I tried pidgin as well and its not working. Thank you so much again!!!

  5. 5
    Bel 

    Here I am again! 🙂 I was able to get it worked Tricky! But using PIDGIN. Looks like there is a dns issue. on the server I entered the actual IP and yes it worked. But thru dns name? no joy

    I have an issue now with the spark. Once I disable the openJDK in the sysmte software I can’t run the Spark thru terminal its because my vpn will not work if it enabled. I don’t know what happened. I was getting session timed-out when connecting to juniper vpn. It was working ok but just today when I open it its timing out and I researched what can fix that issue is by disabling the JDK. 🙁 it worked but the spark don’t!

    Any ideas? Here is the java -version of mine

    java version “1.6.0_20
    OpenJDK Runtime Environment (IcedTea6 1.9.1) (6b20-1.9.1-1ubuntu3)
    OpenJDK Server VM (build 17.0-b16, mixed mode)

    Many thanks!!!

  6. 6
    Bel 

    ok Tricky its working now! hehe. Spark and VPN doesnt have any conflict now. What I did was,

    apt-get autoremove

    sudo apt-get install openjdk-6-jdk

    then restart and it worked ok! Thank you so much!!! God Bless!

Leave a Reply » Logg Inn