Skip to content

Instantly share code, notes, and snippets.

@xaviershay
Created May 8, 2015 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xaviershay/985315a776e07c6fa4e6 to your computer and use it in GitHub Desktop.
Save xaviershay/985315a776e07c6fa4e6 to your computer and use it in GitHub Desktop.
$ cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)
$ rpm -qf /usr/bin/ruby
ruby-2.0.0.353-22.el7_0.x86_64
$ rpm -qf /usr/share/ruby/csv.rb
ruby-libs-2.0.0.353-22.el7_0.x86_64
$ for x in $(ruby -e 'puts $LOAD_PATH'); do ls $x | grep -q json && echo $x; done
ls: cannot access /usr/local/share/ruby/site_ruby: No such file or directory
ls: cannot access /usr/local/lib64/ruby/site_ruby: No such file or directory
$ for x in $(ruby -rjson -e 'puts $LOAD_PATH'); do ls $x | grep -q json && echo $x; done
/usr/share/gems/gems/json-1.7.7/lib
/usr/lib64/gems/ruby/json-1.7.7/lib
ls: cannot access /usr/local/share/ruby/site_ruby: No such file or directory
ls: cannot access /usr/local/lib64/ruby/site_ruby: No such file or directory
$ rpm -qf /usr/share/gems/gems/json-1.7.7/lib/json.rb
rubygem-json-1.7.7-22.el7_0.x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment