extconf failed, exit code 1 error when installing [Ruby on Rails] 5 on OS X Yosemite 10.10.5

I solved it. The error had to do with nokogiri. I installed it separately with the --use-system-libraries parameter:

gem install nokogiri --use-system-libraries

and I managed afterwards to install rails without errors.

Leave a Comment