Hi,
I installed a fresh new UBUNTU 18.04, and I am facing errors during json installation.
After ran the gem install json command I got the error shown in follow
$ sudo gem install json
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/json-2.1.0/ext/json/ext/generator
/usr/bin/ruby2.5 -r ./siteconf20180620-12452-uyviq.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.5.0/gems/json-2.1.0 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/json-2.1.0/gem_make.out
For Ubuntu 18.04, the ruby version is 2.5.
Could any one gives me tips to solve this issue?
I can provide more detailed information if needed.
Thanks in advance.
Hi,
I installed a fresh new UBUNTU 18.04, and I am facing errors during json installation.
After ran the
gem install jsoncommand I got the error shown in followFor Ubuntu 18.04, the ruby version is 2.5.
Could any one gives me tips to solve this issue?
I can provide more detailed information if needed.
Thanks in advance.