I apologize if this has been addressed in a previous post that I might not have found when searching the forums for a solution to my problem, but I can’t get rails to install on my machine (Linux Mint 18.3). There is a dependency issue when installing rails based on the error:
$ sudo gem install rails
Building native extensions. This could take a while…
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.8.4/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20180828-1145-m699g6.rb extconf.rb
mkmf.rb can’t find header files for ruby at /usr/lib/ruby/include/ruby.h
I checked that the version of Ruby installed in the previous steps of Web Development 101 was the correct version:
$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
Does anyone have any insight into what my problem might be? Obviously rails intends to use files that don’t exist, meaning that Ruby must not have installed properly, but I’m not sure how to address that other than removing rbenv and Ruby, and reinstalling.
Thank-you in advance.