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.

10 comments
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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.

0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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:

root@steven-linux-desktop:~/Desktop/rubymine883/bin# ./rubymine.sh
exec: 74: /usr/lib/jvm/java-6-sun-1.6.0.07/bin/bin/java: not found


Here is a snippet from the rubymine.sh file

# Before you run RubyMine specify the location of the
# JDK 1.6 installation directory which will be used for running RUBYMINE
# ---------------------------------------------------------------------

# 11 May, 2009. I added the following two lines.
JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/bin

export JDK_HOME

if [ -z "$RUBYMINE_JDK" ]; then
  RUBYMINE_JDK=$JDK_HOME
  if [ -z "$RUBYMINE_JDK" ]; then
    echo ERROR: cannot start RubyMine.
    echo No JDK found to run RubyMine. Please validate either RUBYMINE_JDK or JDK_HOME points to valid JDK installation
  fi
fi

#--------------------------------------------------------------------------
#   Ensure the RUBYMINE_HOME var for this script points to the
#   home directory where RubyMine is installed on your system.


# RUBYMINE_HOME=`dirname "$0"`/..
# RUBYMINE_BIN_HOME=`dirname "$0"`

RUBYMINE_HOME=/home/steven/Desktop/rubymine883
RUBYMINE_BIN_HOME=/home/steven/Desktop/rubymine883/bin
                                           
export JAVA_HOME
export RUBYMINE_HOME



Hope the above is helpful re - a solution.

0
Comment actions Permalink

Hello Steven,

Please replace this 2 lines in rubymine.sh

JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/bin
export JDK_HOME

with this one:

export JDK_HOME=/usrl/lib/jvm/java-6-sun-1.6.0.07

Hope this helps,
Oleg

0
Comment actions Permalink

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.

0
Comment actions Permalink

Sorry Steven,

I should be change my keyboard
Anymway, is everything working now?

Regards

Frank

0

Please sign in to leave a comment.