How to install Rubymine in Linux (Ubuntu 8.04)
Ok, I suppose this is more of a Linux program install question but since it involves RubyMine I'll ask it here.
I've downloaded and untarred RubyMine to Desktop/RubyMine, double-clicking 'rubymine.sh' in the 'bin' directory does nothing. How do I start or run this program. I'm using Ubuntu 8.04. Java Runtime 6 is installed.
Steve.
Please sign in to leave a comment.
Hi,
it seems to be a linux problem. Have you set the execution rights to the rubymine.sh?
If not, take the terminal, go to the rubymine/bin directory with cd.....
then type chmod 755 rubymine.sh
Try to start it again from the terminal with ./rubymine.sh
I hope you can start it now.
Regards
Frank
Thanks Frank my permissions were set as you mentioned. It is a Linux problem, or should I say a lack of knowledge on my part in how to install Linux programs. From the terminal the error message is now along the lines of "install the jdk". Windows has spoilt me over the years with all the one-click this and that. I'll head over to the Linux forums for further general advice about installing programs.
Steve.
ps. the command line error message in full.
steven@steven-linux-desktop:~/Desktop/rubymine883/bin$ ./rubymine.sh
ERROR: cannot start RubyMine.
No JDK found to run RubyMine. Please validate either RUBYMINE_JDK or JDK_HOME points to valid JDK installation
exec: 60: /bin/java: not found
steven@steven-linux-desktop:~/Desktop/rubymine883/bin$
Message was edited by: Steven Taylor
Hi Steve,
there seems to be a proble for rubymine to find your jdk.
You have to specify the path in the JDK_HOME variable.
You can do this in the rubymine.sh script in your rubymine/bin directory
Add the following lines in the beginning (line 7 or something in this area).
JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/bin
export JDK_HOME
Maybe you have to install the sun jdk first. You can do this in the console
with the comand
sudo apt-get install sun-java6-jdk
I hope this will help you
regards
Frank
Thanks for your patience Frank. I did the apt-get thing, that seemed to install the jdk but I'm still having trouble with the path bit. I'll have to enrol in Linux school, come to grips with the basics.
Hi Steve,
no Problem. Let's set a link to thi bin-directory.
Take a terminal (console) and type the following
sudo -s
then you're asked to the password
type it
and the type the following commands:
1. move an possibly existing java link to another name
mv /usr/bin/java /usr/bin/javaOld
2. the set the link to sun-java
ln -s /usr/lib/jvm/java-6-sun/jre/bin/java /usr/bin/java
2a. if you get an error try this link (only in case of an error):
ln -s /usr/lib/jvm/java-6-sun-1.6.0.07/jre/bin/java /usr/bin/java
Now you have linked sun-java as default java installation.
regards
Frank
Hello guys,
As for me, I've created runnable script /usr/local/bin/rubymine with content:
export JDK_HOME=/opt/jdk1.6
cd /opt/rubymine883/bin
exec ./rubymine.sh
I have Sun JDK installed in /opt/jdk1.6. I've downloaded Sun JDK from sun web site and installed it in /opt folder. Also I've created some symbolic links like /opt/jdk1.6/bin/java -> /usr/local/bin/java
This works for me in Ubuntu Jaunty 64bit.
Hope this helps,
Oleg
I did as you suggested in points 1 & 2 and all went through without error, as far as I can tell.
Here is a copy of my command line:
Here is a snippet from the rubymine.sh file
Hope the above is helpful re - a solution.
Hello Steven,
Please replace this 2 lines in rubymine.sh
with this one:
export JDK_HOME=/usrl/lib/jvm/java-6-sun-1.6.0.07
Hope this helps,
Oleg
Thanks Oleg (and Frank) that did the trick. Actually it wasn't working to start off with as I directly copied and pasted the line of text. There was an "ell" at the end of "usr" which took me a short while to figure out, just a typo.....
I'm now off to Linux school.
Sorry Steven,
I should be change my keyboard
Anymway, is everything working now?
Regards
Frank