Skip to content

Instantly share code, notes, and snippets.

@pkilambi
Last active August 29, 2015 13:57
Show Gist options
  • Save pkilambi/9622935 to your computer and use it in GitHub Desktop.
Save pkilambi/9622935 to your computer and use it in GitHub Desktop.
[prad@ubuntu manifests{master}]$ irb
irb(main):001:0> require 'json'
LoadError: no such file to load -- json
from (irb):1:in `require'
from (irb):1
from :0
irb(main):002:0>
[prad@ubuntu manifests{master}]$ sudo apt-get install ruby-json
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libaugeas-ruby1.8 ruby-log4r virtualbox ruby-i18n python-central ruby-net-scp virtualbox-dkms libruby ruby-net-ssh libshadow-ruby1.8 ruby-rgen dkms ruby-childprocess facter
virtualbox-qt ruby-ffi ruby-erubis libgsoap1 ruby-archive-tar-minitar virt-what
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
ruby-json
0 upgraded, 1 newly installed, 0 to remove and 361 not upgraded.
Need to get 73.3 kB of archives.
After this operation, 280 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe ruby-json amd64 1.6.3-1 [73.3 kB]
Fetched 73.3 kB in 0s (125 kB/s)
Selecting previously unselected package ruby-json.
(Reading database ... 183194 files and directories currently installed.)
Unpacking ruby-json (from .../ruby-json_1.6.3-1_amd64.deb) ...
Setting up ruby-json (1.6.3-1) ...
[prad@ubuntu manifests{master}]$ irb
irb(main):001:0> require 'json'
=> true
irb(main):002:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment