Skip to content

Instantly share code, notes, and snippets.

@yahonda
Created December 27, 2017 16:26
Show Gist options
  • Save yahonda/293de694b732d99d04a043279a717566 to your computer and use it in GitHub Desktop.
Save yahonda/293de694b732d99d04a043279a717566 to your computer and use it in GitHub Desktop.
login as: vagrant
vagrant@vagrant's password:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@rails-dev-box:~$ sudo apt-get install python-software-properties -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-pycurl unattended-upgrades
Suggested packages:
libcurl4-gnutls-dev python-pycurl-dbg bsd-mailx
The following NEW packages will be installed:
python-pycurl python-software-properties unattended-upgrades
0 upgraded, 3 newly installed, 0 to remove and 182 not upgraded.
Need to get 97.3 kB of archives.
After this operation, 662 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main unattended-upgrades all 0.76ubuntu1.3 [24.7 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main python-pycurl amd64 7.19.0-4ubuntu3 [49.2 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python-software-properties all 0.82.7.7 [23.5 kB]
Fetched 97.3 kB in 0s (567 kB/s)
Preconfiguring packages ...
Selecting previously unselected package unattended-upgrades.
(Reading database ... 82976 files and directories currently installed.)
Unpacking unattended-upgrades (from .../unattended-upgrades_0.76ubuntu1.3_all.deb) ...
Selecting previously unselected package python-pycurl.
Unpacking python-pycurl (from .../python-pycurl_7.19.0-4ubuntu3_amd64.deb) ...
Selecting previously unselected package python-software-properties.
Unpacking python-software-properties (from .../python-software-properties_0.82.7.7_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up unattended-upgrades (0.76ubuntu1.3) ...
Setting up python-pycurl (7.19.0-4ubuntu3) ...
Setting up python-software-properties (0.82.7.7) ...
vagrant@rails-dev-box:~$ sudo apt-add-repository ppa:webupd8team/java
You are about to add the following PPA to your system:
Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.
Important -> Why Oracle Java 7 And 6 Installers No Longer Work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html
Ubuntu 16.10 Yakkety Yak is no longer supported by Canonical (and thus, Launchpad and this PPA). The PPA supports Ubuntu 17.10, 17.04, 16.04, 14.04 and 12.04.
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
Oracle JDK 9 is now considered stable. There are currently only 64bit builds (no other builds are available for download: http://www.oracle.com/technetwork/java/javase/downloads/index.html )
More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpKPZGl9/secring.gpg' created
gpg: keyring `/tmp/tmpKPZGl9/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpKPZGl9/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
vagrant@rails-dev-box:~$
vagrant@rails-dev-box:~$ You are about to add the following PPA to your system:
You: command not found
vagrant@rails-dev-box:~$ sudo apt-get update
Ign http://us.archive.ubuntu.com precise InRelease
Hit http://security.ubuntu.com precise-security InRelease
Hit http://us.archive.ubuntu.com precise-updates InRelease
Hit http://us.archive.ubuntu.com precise-backports InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://us.archive.ubuntu.com precise-updates/main Sources
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://us.archive.ubuntu.com precise-updates/universe Sources
Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
Get:1 http://ppa.launchpad.net precise InRelease [13.3 kB]
Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Get:2 http://ppa.launchpad.net precise/main Sources [1,577 B]
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://security.ubuntu.com precise-security/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Get:3 http://ppa.launchpad.net precise/main amd64 Packages [3,412 B]
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Get:4 http://us.archive.ubuntu.com precise/main amd64 Packages [1,273 kB]
Hit http://security.ubuntu.com precise-security/main i386 Packages
Get:5 http://ppa.launchpad.net precise/main i386 Packages [2,902 B]
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Get:6 http://ppa.launchpad.net precise/main TranslationIndex [199 B]
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Get:7 http://us.archive.ubuntu.com precise/universe amd64 Packages [4,786 kB]
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Get:8 http://ppa.launchpad.net precise/main Translation-en [1,556 B]
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Fetched 6,082 kB in 3s (1,648 kB/s)
Reading package lists... Done
vagrant@rails-dev-box:~$ sudo apt-get install oracle-java8-installer -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gsfonts gsfonts-x11 java-common libfontenc1 libxfont1 oracle-java8-set-default x11-common xfonts-encodings xfonts-utils
Suggested packages:
default-jre equivs binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic
ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming firefox firefox-2 iceweasel mozilla-firefox iceape-browser mozilla-browser
epiphany-gecko epiphany-webkit epiphany-browser galeon midbrowser moblin-web-browser xulrunner xulrunner-1.9 konqueror
chromium-browser midori google-chrome
The following NEW packages will be installed:
gsfonts gsfonts-x11 java-common libfontenc1 libxfont1 oracle-java8-installer oracle-java8-set-default x11-common xfonts-encodings
xfonts-utils
0 upgraded, 10 newly installed, 0 to remove and 182 not upgraded.
Need to get 4,366 kB of archives.
After this operation, 7,519 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ precise/main oracle-java8-installer all 8u151-1~webupd8~0 [32.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main java-common all 0.43ubuntu2 [61.7 kB]
Get:3 http://ppa.launchpad.net/webupd8team/java/ubuntu/ precise/main oracle-java8-set-default all 8u151-1~webupd8~0 [6,788 B]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1 [3,374 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main libfontenc1 amd64 1:1.1.0-1 [15.4 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libxfont1 amd64 1:1.4.4-1ubuntu0.3 [134 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main x11-common all 1:7.6+12ubuntu2 [52.0 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main xfonts-encodings all 1:1.0.4-1ubuntu1 [583 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise/main xfonts-utils amd64 1:7.6+1 [96.4 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/main gsfonts-x11 all 0.22 [9,108 B]
Fetched 4,366 kB in 0s (6,036 kB/s)
Preconfiguring packages ...
Selecting previously unselected package java-common.
(Reading database ... 83049 files and directories currently installed.)
Unpacking java-common (from .../java-common_0.43ubuntu2_all.deb) ...
Selecting previously unselected package oracle-java8-installer.
Unpacking oracle-java8-installer (from .../oracle-java8-installer_8u151-1~webupd8~0_all.deb) ...
Processing triggers for man-db ...
Setting up java-common (0.43ubuntu2) ...
Setting up oracle-java8-installer (8u151-1~webupd8~0) ...
No /var/cache/oracle-jdk8-installer/wgetrc file found.
Creating /var/cache/oracle-jdk8-installer/wgetrc and
using default oracle-java8-installer wgetrc settings for it.
Downloading Oracle Java 8...
--2017-12-27 15:51:36-- http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.219.92.200, 23.219.92.226
Connecting to download.oracle.com (download.oracle.com)|23.219.92.200|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz [following]
--2017-12-27 15:51:36-- https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.107.16.233
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.107.16.233|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1514390016_434b9770f8b3dbfa54e6ec023bc78fe9 [following]
--2017-12-27 15:51:36-- http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1514390016_434b9770f8b3dbfa54e6ec023bc78fe9
Connecting to download.oracle.com (download.oracle.com)|23.219.92.200|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 189736377 (181M) [application/x-gzip]
Saving to: `jdk-8u151-linux-x64.tar.gz'
0K ........ ........ ........ ........ ........ ........ 1% 4.59M 39s
3072K ........ ........ ........ ........ ........ ........ 3% 3.96M 41s
6144K ........ ........ ........ ........ ........ ........ 4% 3.45M 44s
9216K ........ ........ ........ ........ ........ ........ 6% 5.40M 40s
12288K ........ ........ ........ ........ ........ ........ 8% 5.30M 38s
15360K ........ ........ ........ ........ ........ ........ 9% 4.45M 37s
18432K ........ ........ ........ ........ ........ ........ 11% 3.81M 37s
21504K ........ ........ ........ ........ ........ ........ 13% 4.77M 36s
24576K ........ ........ ........ ........ ........ ........ 14% 3.58M 36s
27648K ........ ........ ........ ........ ........ ........ 16% 2.10M 39s
30720K ........ ........ ........ ........ ........ ........ 18% 2.99M 39s
33792K ........ ........ ........ ........ ........ ........ 19% 2.05M 41s
36864K ........ ........ ........ ........ ........ ........ 21% 2.57M 41s
39936K ........ ........ ........ ........ ........ ........ 23% 2.93M 41s
43008K ........ ........ ........ ........ ........ ........ 24% 2.68M 41s
46080K ........ ........ ........ ........ ........ ........ 26% 3.40M 40s
49152K ........ ........ ........ ........ ........ ........ 28% 4.89M 38s
52224K ........ ........ ........ ........ ........ ........ 29% 4.50M 37s
55296K ........ ........ ........ ........ ........ ........ 31% 4.40M 36s
58368K ........ ........ ........ ........ ........ ........ 33% 5.09M 34s
61440K ........ ........ ........ ........ ........ ........ 34% 4.30M 33s
64512K ........ ........ ........ ........ ........ ........ 36% 3.52M 32s
67584K ........ ........ ........ ........ ........ ........ 38% 3.75M 31s
70656K ........ ........ ........ ........ ........ ........ 39% 7.28M 30s
73728K ........ ........ ........ ........ ........ ........ 41% 3.21M 29s
76800K ........ ........ ........ ........ ........ ........ 43% 6.65M 28s
79872K ........ ........ ........ ........ ........ ........ 44% 4.72M 27s
82944K ........ ........ ........ ........ ........ ........ 46% 7.45M 26s
86016K ........ ........ ........ ........ ........ ........ 48% 3.52M 25s
89088K ........ ........ ........ ........ ........ ........ 49% 5.11M 24s
92160K ........ ........ ........ ........ ........ ........ 51% 4.70M 23s
95232K ........ ........ ........ ........ ........ ........ 53% 4.78M 22s
98304K ........ ........ ........ ........ ........ ........ 54% 3.51M 21s
101376K ........ ........ ........ ........ ........ ........ 56% 4.38M 20s
104448K ........ ........ ........ ........ ........ ........ 58% 2.36M 20s
107520K ........ ........ ........ ........ ........ ........ 59% 4.00M 19s
110592K ........ ........ ........ ........ ........ ........ 61% 4.24M 18s
113664K ........ ........ ........ ........ ........ ........ 63% 3.16M 18s
116736K ........ ........ ........ ........ ........ ........ 64% 2.61M 17s
119808K ........ ........ ........ ........ ........ ........ 66% 2.75M 16s
122880K ........ ........ ........ ........ ........ ........ 67% 2.76M 16s
125952K ........ ........ ........ ........ ........ ........ 69% 2.96M 15s
129024K ........ ........ ........ ........ ........ ........ 71% 3.90M 14s
132096K ........ ........ ........ ........ ........ ........ 72% 4.05M 13s
135168K ........ ........ ........ ........ ........ ........ 74% 3.01M 13s
138240K ........ ........ ........ ........ ........ ........ 76% 5.33M 12s
141312K ........ ........ ........ ........ ........ ........ 77% 2.98M 11s
144384K ........ ........ ........ ........ ........ ........ 79% 4.00M 10s
147456K ........ ........ ........ ........ ........ ........ 81% 3.17M 9s
150528K ........ ........ ........ ........ ........ ........ 82% 4.09M 8s
153600K ........ ........ ........ ........ ........ ........ 84% 2.53M 8s
156672K ........ ........ ........ ........ ........ ........ 86% 3.21M 7s
159744K ........ ........ ........ ........ ........ ........ 87% 2.73M 6s
162816K ........ ........ ........ ........ ........ ........ 89% 4.16M 5s
165888K ........ ........ ........ ........ ........ ........ 91% 3.73M 4s
168960K ........ ........ ........ ........ ........ ........ 92% 3.17M 4s
172032K ........ ........ ........ ........ ........ ........ 94% 4.73M 3s
175104K ........ ........ ........ ........ ........ ........ 96% 3.27M 2s
178176K ........ ........ ........ ........ ........ ........ 97% 2.83M 1s
181248K ........ ........ ........ ........ ........ ........ 99% 3.65M 0s
184320K ........ ....... 100% 2.58M=50s
2017-12-27 15:52:28 (3.59 MB/s) - `jdk-8u151-linux-x64.tar.gz' saved [189736377/189736377]
Download done.
Removing outdated cached downloads...
update-alternatives: error: no alternatives for java.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jcontrol to provide /usr/bin/jcontrol (jcontrol) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jar to provide /usr/bin/jar (jar) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javac to provide /usr/bin/javac (javac) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javafxpackager to provide /usr/bin/javafxpackager (javafxpackager) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javah to provide /usr/bin/javah (javah) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javap to provide /usr/bin/javap (javap) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/javapackager to provide /usr/bin/javapackager (javapackager) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jmc to provide /usr/bin/jmc (jmc) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jps to provide /usr/bin/jps (jps) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/jvisualvm to provide /usr/bin/jvisualvm (jvisualvm) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode.
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 JDK 8 installed
#####Important########
To set Oracle JDK8 as default, install the "oracle-java8-set-default" package.
E.g.: sudo apt install oracle-java8-set-default
On Ubuntu systems, oracle-java8-set-default is most probably installed
automatically with this package.
######################
Selecting previously unselected package oracle-java8-set-default.
(Reading database ... 83142 files and directories currently installed.)
Unpacking oracle-java8-set-default (from .../oracle-java8-set-default_8u151-1~webupd8~0_all.deb) ...
Selecting previously unselected package gsfonts.
Unpacking gsfonts (from .../gsfonts_1%3a8.11+urwcyr1.0.7~pre44-4.2ubuntu1_all.deb) ...
Selecting previously unselected package libfontenc1.
Unpacking libfontenc1 (from .../libfontenc1_1%3a1.1.0-1_amd64.deb) ...
Selecting previously unselected package libxfont1.
Unpacking libxfont1 (from .../libxfont1_1%3a1.4.4-1ubuntu0.3_amd64.deb) ...
Selecting previously unselected package x11-common.
Unpacking x11-common (from .../x11-common_1%3a7.6+12ubuntu2_all.deb) ...
Selecting previously unselected package xfonts-encodings.
Unpacking xfonts-encodings (from .../xfonts-encodings_1%3a1.0.4-1ubuntu1_all.deb) ...
Selecting previously unselected package xfonts-utils.
Unpacking xfonts-utils (from .../xfonts-utils_1%3a7.6+1_amd64.deb) ...
Selecting previously unselected package gsfonts-x11.
Unpacking gsfonts-x11 (from .../gsfonts-x11_0.22_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up oracle-java8-set-default (8u151-1~webupd8~0) ...
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1) ...
Setting up libfontenc1 (1:1.1.0-1) ...
Setting up libxfont1 (1:1.4.4-1ubuntu0.3) ...
Setting up x11-common (1:7.6+12ubuntu2) ...
Setting up xfonts-encodings (1:1.0.4-1ubuntu1) ...
Setting up xfonts-utils (1:7.6+1) ...
Setting up gsfonts-x11 (0.22) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
vagrant@rails-dev-box:~$ sudo apt-get install oracle-java8-set-default -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
oracle-java8-set-default is already the newest version.
oracle-java8-set-default set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 182 not upgraded.
vagrant@rails-dev-box:~$ java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
vagrant@rails-dev-box:~$ export JRUBY_OPTS='--debug --dev -J-Xmx1024M'
vagrant@rails-dev-box:~$ which java
/usr/bin/java
vagrant@rails-dev-box:~$ export JAVA_HOME=/usr/lib/jvm/java-8-oracle
vagrant@rails-dev-box:~$ rvm install jruby-head
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system............
Installing required packages: maven.......................................................
Requirements installation successful.
Cloning from https://github.com/jruby/jruby.git, this may take a while depending on your connection.
HEAD is now at 7c60d07 Fixes #4060. Wrong line numbers inside set_trace_func for end events.
From https://github.com/jruby/jruby
* branch master -> FETCH_HEAD
Already up-to-date.
git checkout master
Copying from repo to src path...
jruby-head - #/home/vagrant/.rvm/src/jruby-head/mvnw.....................................................................................................................................................................................................................................
Error running '/home/vagrant/.rvm/src/jruby-head/mvnw',
please read /home/vagrant/.rvm/log/1514390021_jruby-head/mvnw.log
vagrant@rails-dev-box:~$ view /home/vagrant/.rvm/log/1514390021_jruby-head/mvnw.log
vagrant@rails-dev-box:~$ export JRUBY_OPTS='--debug --dev -J-Xmx2048M'
vagrant@rails-dev-box:~$ echo $JRUBY_OPTS
--debug --dev -J-Xmx2048M
vagrant@rails-dev-box:~$ rvm install jruby-head
jruby-head - #removing src/jruby-head..
Checking requirements for ubuntu.
Requirements installation successful.
HEAD is now at 7c60d07 Fixes #4060. Wrong line numbers inside set_trace_func for end events.
From https://github.com/jruby/jruby
* branch master -> FETCH_HEAD
Already up-to-date.
git checkout master
Copying from repo to src path...
jruby-head - #/home/vagrant/.rvm/src/jruby-head/mvnw.................................
jruby-head - #installing to /home/vagrant/.rvm/rubies/jruby-head.
jruby-head - #making binaries executable.........
Rubygems 2.6.14 already available in installed ruby, skipping installation, use --force to reinstall.
jruby-head - #gemset created /home/vagrant/.rvm/gems/jruby-head@global
jruby-head - #importing gemset /home/vagrant/.rvm/gemsets/jruby/global.gems..
jruby-head - #generating global wrappers........
jruby-head - #gemset created /home/vagrant/.rvm/gems/jruby-head
jruby-head - #importing gemsetfile /home/vagrant/.rvm/gemsets/default.gems evaluated to empty gem list
jruby-head - #generating default wrappers........
vagrant@rails-dev-box:~$ rvm --default use jruby-head
Using /home/vagrant/.rvm/gems/jruby-head
vagrant@rails-dev-box:~$ ruby -v
jruby 9.2.0.0-SNAPSHOT (2.4.1) 2017-12-27 7c60d07 Java HotSpot(TM) 64-Bit Server VM 25.151-b12 on 1.8.0_151-b12 [linux-x86_64]
vagrant@rails-dev-box:~$ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.7.4.gem (100%)
Successfully installed rubygems-update-2.7.4
Installing RubyGems 2.7.4
Bundler 1.16.0 installed
RubyGems 2.7.4 installed
Regenerating binstubs
=== 2.6.14 / 2017-10-09
Security fixes:
* Whitelist classes and symbols that are in loaded YAML.
See CVE-2017-0903 for full details.
Fix by Aaron Patterson.
------------------------------------------------------------------------------
RubyGems installed the following executables:
/home/vagrant/.rvm/rubies/jruby-head/bin/jgem
/home/vagrant/.rvm/rubies/jruby-head/bin/jbundle
RubyGems system software updated
vagrant@rails-dev-box:~$ gem install bundler
Fetching: bundler-1.16.1.gem (100%)
Successfully installed bundler-1.16.1
1 gem installed
vagrant@rails-dev-box:~$ ruby -v
jruby 9.2.0.0-SNAPSHOT (2.4.1) 2017-12-27 7c60d07 Java HotSpot(TM) 64-Bit Server VM 25.151-b12 on 1.8.0_151-b12 [linux-x86_64]
vagrant@rails-dev-box:~$ gem -v
2.7.4
vagrant@rails-dev-box:~$ git clone https://github.com/rsim/oracle-enhanced.git
Cloning into 'oracle-enhanced'...
remote: Counting objects: 13705, done.
remote: Total 13705 (delta 0), reused 0 (delta 0), pack-reused 13704
Receiving objects: 100% (13705/13705), 5.61 MiB | 638 KiB/s, done.
Resolving deltas: 100% (7367/7367), done.
vagrant@rails-dev-box:~$ cd oracle-enhanced/
vagrant@rails-dev-box:~/oracle-enhanced$ bundle env
## Environment
```
Bundler 1.16.1
Platforms ruby, universal-java-1.8
Ruby 2.4.1p0 (2017-12-27 revision 58053) [java]
Full Path /home/vagrant/.rvm/rubies/jruby-head/bin/jruby
Config Dir /home/vagrant/.rvm/rubies/jruby-head/etc
RubyGems 2.7.4
Gem Home /home/vagrant/.rvm/gems/jruby-head
Gem Path /home/vagrant/.rvm/gems/jruby-head:/home/vagrant/.rvm/gems/jruby-head@global
User Path /home/vagrant/.gem/jruby/2.4.0
Bin Dir /home/vagrant/.rvm/gems/jruby-head/bin
Tools
Git 1.7.9.5
RVM 1.29.3 (latest)
rbenv not installed
chruby not installed
rubygems-bundler (1.4.4)
Gem.ruby /home/vagrant/.rvm/rubies/jruby-head/bin/jruby
bundle #! /usr/bin/env jruby_executable_hooks
```
## Bundler Build Metadata
```
Built At 2017-12-21
Git SHA 0034ef341
Released Version true
```
## Gemfile
### Gemfile
```ruby
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
group :development do
gem "rspec"
gem "rdoc"
gem "rake"
gem "activerecord", github: "rails/rails", branch: "master"
gem "arel", github: "rails/arel", branch: "master"
gem "ruby-plsql", github: "rsim/ruby-plsql", branch: "master"
platforms :ruby do
gem "ruby-oci8", github: "kubo/ruby-oci8"
gem "byebug"
end
platforms :jruby do
gem "pry"
gem "pry-nav"
end
end
group :test do
gem "simplecov", github: "colszowka/simplecov", branch: "master", require: false
end
```
### Gemfile.lock
```
<No /home/vagrant/oracle-enhanced/Gemfile.lock found>
```
vagrant@rails-dev-box:~/oracle-enhanced$ bundle install
Fetching https://github.com/rails/rails.git
Fetching https://github.com/rails/arel.git
Fetching https://github.com/rsim/ruby-plsql.git
Fetching https://github.com/colszowka/simplecov.git
The dependency ruby-oci8 (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency byebug (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
Fetching https://github.com/kubo/ruby-oci8.git
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using
RVM are available at rvm.io/packages/openssl.
vagrant@rails-dev-box:~/oracle-enhanced$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment