I have done all kinds of research and tried many different things. I know this question has been answered many times, but none of the suggested solutions are working for me.
Looks like you have updated your system libraries after installing the gem, so you have to update Nokogiri. To use the current lib version:
gem install nokogiri -- --use-system-libraries