Rails does not install in Centos

Asked

Viewed 22 times

0

I have a VPS with Centos running, and I can’t get out of this mistake:

[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, but when I try to install something with Gem it happens. The same happens with Passenger.

  • What version of ruby and rubygems?

  • @Luciorubens ruby 2.0.0p598 (was with 2.2.2 installed, but I tried to reinstall by yum and came out this, both give error) and 2.0.14 of rubygems

  • turn this command instead: sudo yum install -y gcc ruby-devel zlib-devel

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.