Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ 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
You can’t perform that action at this time.