Description of problem: # dnf install rubygem-jgrep # date | jgrep -s a.b Ignoring json-1.8.2 because its extensions are not built. Try: gem pristine json --version 1.8.2 LoadError: no such file to load -- json/pure require at org/jruby/RubyKernel.java:1071 require at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54 JSON at /usr/share/gems/gems/json-1.8.2/lib/json.rb:60 (root) at /usr/share/gems/gems/json-1.8.2/lib/json.rb:54 require at org/jruby/RubyKernel.java:1071 (root) at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:1 require at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54 require at org/jruby/RubyKernel.java:1071 (root) at /usr/share/gems/gems/jgrep-1.3.3/lib/jgrep.rb:6 (root) at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:1 load at org/jruby/RubyKernel.java:1087 (root) at /usr/bin/jgrep:23 # dnf install rubygen-json_pure # date | jgrep -s a.b Ignoring json-1.8.2 because its extensions are not built. Try: gem pristine json --version 1.8.2 Error. Invalid JSON given Error - undefined method `first' for nil:NilClass Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
jq works.
That is because jruby is too stupid and doesn't work with native extensions. Suggested fix: dnf -y install ruby && dnf -y remove jruby Alternative fix: dnf -y install rubygem-json_pure I'm going to add a dependency to Fedora 22 package.
rubygem-jgrep-1.3.3-5.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/rubygem-jgrep-1.3.3-5.fc22
Package rubygem-jgrep-1.3.3-5.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rubygem-jgrep-1.3.3-5.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-7939/rubygem-jgrep-1.3.3-5.fc22 then log in and leave karma (feedback).
rubygem-jgrep-1.3.3-5.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.