How to install RubyMine in Ubuntu
To Install RubyMine in Ubuntu
This article explains the installation of RubyMine in Ubuntu. RubyMine is an open-source web framework to write web applications using Ruby.
Features
- Capybara support
- Background images
- Inspections results tool window.
Install the Sun Java JRE
Run the following command to append the java packages into the repo.
root@linuxhelp:~# add-apt-repository ppa:webupd8team/java Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA. More info (and Ubuntu installation instructions): - for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html - for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html Debian installation instructions: - Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html - Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html Oracle Java 9 (for both Ubuntu and Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html . . gpg: no ultimately trusted keys found gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK root@linuxhelp:~#
Update the system by using the following command.
root@linuxhelp:~# apt-get update Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB] Hit:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease Get:4 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease [17.6 kB] Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease . . Get:8 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main Translation-en [1,260 B] Fetched 119 kB in 1s (81.2 kB/s) Reading package lists... Done root@linuxhelp:~#
Install the Java JRE, after the updation.
root@linuxhelp:~# apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apache2-utils fping libaio1 libapache2-mod-fcgid libdbi1 libevent-1.4-2
libnet-snmp-perl libreadline5 libsnmp-perl mysql-client-5.7
mysql-client-core-5.7 mysql-common mysql-server mysql-server-5.7
mysql-server-core-5.7 php-cli php-common php-pear php-xml php7.0-cli
php7.0-common php7.0-json php7.0-opcache php7.0-readline php7.0-xml pyro
python-ldap python-netsnmp snmp xinetd
.
.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
Oracle JDK 8 installed
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
Oracle JRE 8 browser plugin installed
Setting up gsfonts-x11 (0.24) ...
Download the Rubymine by using the following command.
root@linuxhelp:~# wget https://download.jetbrains.com/ruby/RubyMine-2016.1.2.tar.gz
--2016-07-19 07:01:35-- https://download.jetbrains.com/ruby/RubyMine-2016.1.2.tar.gz
Resolving download.jetbrains.com (download.jetbrains.com)... 54.217.236.18
Connecting to download.jetbrains.com (download.jetbrains.com)|54.217.236.18|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://download-cf.jetbrains.com/ruby/RubyMine-2016.1.2.tar.gz [following]
--2016-07-19 07:01:36-- https://download-cf.jetbrains.com/ruby/RubyMine-2016.1.2.tar.gz
Resolving download-cf.jetbrains.com (download-cf.jetbrains.com)... 54.230.190.170, 54.230.190.235, 54.230.190.54, ...
.
.
RubyMine-2016.1.2.t 100%[===================> ] 219.83M 495KB/s in 6m 6s
2016-07-19 07:07:42 (615 KB/s) - saved [230506310/230506310]
Downloaded the extracted package.
root@linuxhelp:~# tar -xzf RubyMine-2016.1.2.tar.gz root@linuxhelp:~# ls -l total 225108 drwxr-xr-x 16 root root 4096 Jul 19 07:10 RubyMine-2016.1.2 -rw-r--r-- 1 root root 230506310 Jun 15 10:01 RubyMine-2016.1.2.tar.gz
Go to the directory and list it out.
root@linuxhelp:~# cd RubyMine-2016.1.2 root@linuxhelp:~/RubyMine-2016.1.2# root@linuxhelp:~/RubyMine-2016.1.2# ls -l total 64 drwxr-xr-x 2 root root 4096 Jul 19 07:10 bin -rw-r--r-- 1 root root 13 Jun 14 19:43 build.txt drwxr-xr-x 2 root root 4096 Jul 19 07:10 help . . drwxr-xr-x 2 root root 4096 Jul 19 07:10 rubystubs23 root@linuxhelp:~/RubyMine-2016.1.2# cd bin/
Install the package by executing the following command
root@linuxhelp:~/RubyMine-2016.1.2/bin# ./rubymine.sh OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=250m support was removed in 8.0Jul 19, 2016 7:13:52 AM java.util.prefs.FileSystemPreferences$1 run INFO: Created user preferences directory. Jul 19, 2016 7:13:52 AM java.util.prefs.FileSystemPreferences$6 run WARNING: Prefs file removed in background /root/.java/.userPrefs/prefs.xml [ 376721] WARN - e.GemRequirementsChangeWatcher - No Sdk selected for Module: ' untitled' [ 603465] WARN - e.GemRequirementsChangeWatcher - No Sdk selected for Module: ' untitled'
Now perform the initial RubyMine Configuration. After entering the required fields click OK.
Right click on the Untitled, then select New &rarr Ruby class
Enter the new class name.
It starts with Uppercase.
Q
What is RubyMine?
A
RubyMine is a commercial cross-platform IDE for Ruby and Ruby on Rails development, created and provided by JetBrains.
Q
No output after running the installer script? What happened any idea?
A
First make your installer script (i.e) ./rubymine.sh executable by "chmod +x ./rubymine.sh and then proceed
Q
I don't want RUBYMINE to be opened via CLI?
A
Then while installation uncheck "enable opening files and project from command line"
Q
After creating a new project and named as 'test1" how to debug it?
A
Right click on your project tile and their you will see run icon with your respective project name
Q
Is this upgradable? And whether it is manual or automatic?
A
You will receive frequent updates after purchasing and you can also enable automatic updates too