sparklemotion / nokogiri.org-tutorials

(deprecated)
39 stars 39 forks source link

Installing on Fedora #41

Closed lcjury closed 8 years ago

lcjury commented 8 years ago

Hi, Fedora 23 has ben realeased this week. So I got a fresh instalation of fedora 23 and tried to install Rails, but got troubles installing nokogiri.

the problem was this: gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: File or directory doesn't exists. Remember that last time I installed rails on a fresh (not 100% sure) installation of Fedora 22 without any problem.

On Fedora rpm-build is required. So, compared to Redhat installation ( http://www.nokogiri.org/tutorials/installing_nokogiri.html#red_hat___centos), in fedora we must run sudo dnf install rpm-build. Please, add that to the installation guide.

I spend some time trying to fix this. and there is a lot of "incorrect" information about this trouble (Depending on how do you search for this). Is a bit hard to notice that the problem is related to that library (becouse that gcc error is inside a log file, and gem install nokogiri output a lot of errors not related to redhat-hardened-cc1).