Help (how to install RM in mandriva)

Hi..I'm newbie in Linux and I've problems trying install rubymine, I know this forum is only for rubymine problems and my problems looks more like linux but maybe anyone could help me, I unpack rubymine and try ./rubymine.sh in my terminal and  appear

ERROR: cannot start RubyMine.                              
No JDK found to run RubyMine. Please validate either RUBYMINE_JDK or JDK_HOME points to valid JDK installation                                          
./rubymine.sh: line 60: /bin/java: No existe el fichero o el directorio     
./rubymine.sh: line 60: exec: /bin/java: no se puede ejecutar: No existe el fichero o el directorio

I read other post with similars problems but I'm not sure what I need to do...I open rubymine.sh and add my jdk
JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/bin

previously I've installed jdk 6 and java and I test it andwork perfect...
but I have 2 problems
1) JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/bin           this address is where my jdk is installed?, what is it name exactly for I can look inside the directory and be sure this it here
(jdk6.0 ??..only jdk)...

2) a newbie problem :S..when I open rubymine.sh I don't have enough permission for edit it, How can open it for terminal using root?..I'm mandriva user...



sorry for my 2 stupid ask but I help anybody can help me
sorry for my english I'm spanish and my english is better reading than writting

bye

8 comments
Comment actions Permalink

Hi Angel,

Hi..I'm newbie in Linux and I've problems trying install rubymine, I know this forum is only for rubymine problems and my problems looks more like linux but maybe anyone could help me, I unpack rubymine and try ./rubymine.sh in my terminal and  appear

ERROR: cannot start RubyMine.                              
No JDK found to run RubyMine. Please validate either RUBYMINE_JDK or JDK_HOME points to valid JDK installation                                          
./rubymine.sh: line 60: /bin/java: No existe el fichero o el directorio     
./rubymine.sh: line 60: exec: /bin/java: no se puede ejecutar: No existe el fichero o el directorio

I read other post with similars problems but I'm not sure what I need to do...I open rubymine.sh and add my jdk
JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/bin

previously I've installed jdk 6 and java and I test it andwork perfect...
but I have 2 problems
1) JDK_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/bin           this address is where my jdk is installed?, what is it name exactly for I can look inside the directory and be sure this it here
(jdk6.0 ??..only jdk)...

Could you please try run which java command from terminal?
This should point you to installed java.
Have you installed JDK or only JRE on your machine?
     rpm -qa | grep java
This command should help you to answer.

2) a newbie problem :S..when I open rubymine.sh I don't have enough permission for edit it, How can open it for terminal using root?..I'm mandriva user...

Have you tried edit this file using sudo command?

sudo vim ./rubymine.sh
This command should open rubymine.sh in vim.
Type man sudo for details on using sudo command.
Another possible solution is to change access modifiers of this file using chmod command, but I recommend you the first solution.

Best regards,
Oleg

0
Comment actions Permalink

Hi..first thanks for your fast answer..It's amazing how fast u respond and It is only one reason for choose this ide..I downloaded the jdk 6 again and installed it..when write rpm inside terminal appear

[root@localhost bin]# rpm -qa | grep java                                   
java-access-bridge-debug-1.26.2-1mdv2010.0
java-1.6.0-sun-fonts-1.6.0.16-1mdv2010.0
java-1.6.0-sun-devel-1.6.0.16-1mdv2010.0
rootcerts-java-20090831.00-1mdv2010.0
javacvs-lib-javadoc-5.0-3.0.3mdv2010.0
libsvnjavahl1-1.6.6-1mdv2010.0
java-1.6.0-sun-src-1.6.0.16-1mdv2010.0
timezone-java-2009u-1.1mdv2010.0
libreadline-java-0.8.1-1.6mdv2010.0
sun-javadb-demo-10.4.1-3.1
java-1.6.0-sun-demo-1.6.0.16-1mdv2010.0
java-1.5.0-gcj-1.5.0.0-17.1.10mdv2010.0
javacvs-5.0-3.0.3mdv2010.0
java-1.5.0-gcj-src-1.5.0.0-17.1.10mdv2010.0
java-1.6.0-sun-1.6.0.16-1mdv2010.0
java-1.6.0-openjdk-devel-1.6.0.0-0.20.b16.11mdv2010.0
netbeans-platform-javadoc-6.7.1-2mdv2010.0
javahelp2-2.0.05-6mdv2010.0
sun-javadb-client-10.4.1-3.1
manbo-mandriva-files-gcc-java-4.4.1-1mnb2
java-1.6.0-openjdk-1.6.0.0-0.20.b16.11mdv2010.0
liblog4j-java-1.2.14-12.0.4mdv2010.0
java-1.6.0-sun-jdbc-1.6.0.16-1mdv2010.0
netbeans-java2-6.7.1-1mdv2010.0
sun-javadb-javadoc-10.4.1-3.1
java-access-bridge-1.26.2-1mdv2010.0
java-1.5.0-gcj-javadoc-1.5.0.0-17.1.10mdv2010.0
libnb-javaparser-6.7.1-1mdv2010.0
sun-javadb-docs-10.4.1-3.1
javacvs-lib-5.0-3.0.3mdv2010.0
java-rpmbuild-1.7.5-4.0.5mdv2010.0
svn-javahl-1.6.6-1mdv2010.0
java-1.6.0-sun-plugin-1.6.0.16-1mdv2010.0
sun-javadb-core-10.4.1-3.1
java-1.6.0-sun-alsa-1.6.0.16-1mdv2010.0
sun-javadb-common-10.4.1-3.1



is it ok?          how could you look I have many java versions :S..I type

/usr/sbin/alternatives --config java and I config java 1.6 like default...I will delete the others version later but I wish know what is the jdk file for I can search it and route my rubymine.sh (if I install jdk really :S)..I hope you can help me...


bye and thank again..i wait u answer
0
Comment actions Permalink

Hi Angel,

RubyMine requires sun Jdk, so we need package java-1.6.0-sun-devel-1.6.0.16-1mdv2010.0 which is already installed on your system.
We need point JDK_HOME to it's installation folder, type
    rpm -ql java-1.6.0-sun-devel-1.6.0.16-1mdv2010.0 | grep tools.jar
This command should print something like
/usr/lib/jvm/java-1.6.0/lib/tools.jar
Remove /lib/tools.jar substring and add the following line to rubymine.sh
export JDK_HOME=/usr/lib/jvm/java-1.6.0

Hope this help!
Regards,
Oleg

0
Comment actions Permalink

thank so much..It work..you're the best..thank again..only last question..how can run it now?..I installed it and work..but now I don't find it inside any folder ..sorry I'm so noob and using  

rpm -ql or whereis I can't found neither....thanks for the helps...

0
Comment actions Permalink

Hi Angel,

A bit more questions:

thank so much..It work..

What worked? Was you able to launch rubymine?

but now I don't find it inside any folder ..sorry I'm so noob and using

rpm -ql or whereis I can't found neither....thanks for the helps...

As far as I understood, you cannot find folder of jdk? Could you please describe your actions step by step?

Best regards,
Oleg

0
Comment actions Permalink

hi..I can install it (open it and use) but the problem is I can't find where installed it, what folder, I search all folder where typically are the programs in linux but never I can find it....always I need (inside the installation folder) type ./rubymine.sh and it open, but it is very bothering..I wish create a Shortcut but I don't know where is the executable..thanks so much

0
Comment actions Permalink

Hello Angel,

You can find the location where rubymine.sh is located using command
     find / -name "rubymine.sh"
You can create symbolic link to rubymine.sh by command
     ln -s <rubymine.sh path> /usr/local/bin/rubymine
After these 2 actions you should be able to launch Rubymine with command rubymine.

Regards,
Oleg

0

Please sign in to leave a comment.