I have a VPS running CentOS, and I have ths message when I try to install Rails
, Passenger
or anything else.
[athos@athoscastro bin]$ gem install rails
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
Gem files will remain installed in /home/athos/.gem/ruby/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /home/athos/.gem/ruby/gems/nokogiri-1.6.6.2/ext/nokogiri/gem_make.out
I have all the dependencies installed (everything related to this on Google says about dependecy) but the error still persists.
Did you install dev packages?
sudo yum install -y gcc ruby-devel zlib-devel
and
yum install libxml2-devel libxslt libxslt-devel
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.