Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merged pull request #13 from matschaffer/rhel-install.

RHEL install
  • Loading branch information...
commit e9dc5c21d10b951f66820513689c331dd78da516 2 parents 95da090 + b16ef8d
@flavorjones flavorjones authored
Showing with 18 additions and 6 deletions.
  1. +1 −0  .rvmrc
  2. +17 −6 content/
1  .rvmrc
@@ -0,0 +1 @@
+rvm use 1.8.7
23 content/
@@ -73,14 +73,25 @@ As [John Barnette once said][package-management], "Isn't package management conv
## Red Hat / CentOS
-In theory, this is easy peasy:
+The easiest way to get Nokogiri installed on CentOS and RHEL seems to be the
+[EPEL][] repository which contains a prebuilt nokogiri package. To use it,
+install the appropriate [epel-release][] package for your OS, then run:
- sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel
- sudo gem install nokogiri
+ sudo yum install -y rubygem-nokogiri
+ [EPEL]:
+ [epel-release]:
+To install using gem install is somewhat more complicated because of the age of
+the packages available from the central repositories. If you have rubygems
+installed, you may be able to install nokogiri via `gem install`. If you run
+intro problems, try installing these packages as well.
+ sudo yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel
-In practice, though, CentOS 5 (and RHEL5) come installed with libxml 2.6.26
-which, while not as offensively out-of-date as Mac Leopard, is still
-pretty damn old ([released June 2006][]) and has [known][] [issues][].
+CentOS 5 (and RHEL5) come installed with libxml 2.6.26 which, while not as
+offensively out-of-date as Mac Leopard, is still pretty damn old ([released
+June 2006][]) and has [known][] [issues][].
If you're affected by any known bugs or are seeing odd behavior, you
may want to consider uninstalling the RPMs for libxml2 and libxslt,
Please sign in to comment.
Something went wrong with that request. Please try again.