gem install error libxslt is missing

When installing ruby gem, i get following error [root@video1 cms]# gem install sanitize -v 1.2.1 –no-ri –no-rdoc Building native extensions. This could take a while… ERROR: Error installing sanitize: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-1.8.7-head/bin/ruby extconf.rb checking for libxml/parser.h… yes checking for libxslt/xslt.h… no —– libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help … Read more

Ruby

Install ruby from source Install rvm (ruby version manager) Nginx Rails Origin header didn’t match request.base_url Gem Package Manager Gem – Package Manager for Ruby Upgrade ruby gem

Install ruby from source

Ruby Programming

Download latest version of ruby source code from https://www.ruby-lang.org/en/downloads/ At the time of writing this, latest version is 2.6.0 cd /usr/local/src wget https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.0.tar.gz tar -zxvf ruby-2.6.0.tar.gz cd ruby-2.6.0 ./configure make make install

rvm

rvm is ruby version manager. Allow you to have multiple ruby version. To install rvm, run gpg –keyserver hkp://keys.gnupg.net –recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 curl -sSL https://get.rvm.io | bash -s stable To install a ruby version, run rvm install 2.4.2 To set it default, use rvm –default use 2.4.2