Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
mkmf.rb can’t find header files for ruby at /usr/lib/ruby/ruby.h ERROR: Error installing rails: ERROR: Failed to build gem native extension.
This is what I get trying to install rails.
Same error here. After <pre>sudo yum install ruby-rdoc ruby-devel</pre> conflicting versions:
ERROR: Error installing rails: activesupport requires Ruby version >= 1.9.3.
This worked for me (insert sudo as appropriate):
<pre> yum remove ruby curl -L https://get.rvm.io | bash -s stable --ruby cd ~/src wget http://production.cf.rubygems.org/rubygems/rubygems-2.0.7.tgz tar -zxvf rubygems-2.0.7.tgz cd rubygems-2.0.7 ruby setup.rb gem update gem update --system gem install rails </pre>
Sorry this looks awful. I thought <code>… </code> would format it correctly.
I see now that I should have used code blocks: <pre>…</pre>
No way to edit posts?
@jgc: It’s currently not possible to edit posts. I’ll get that fixed for you :]
I also got the error message: ERROR: Error installing rails: activesupport requires Ruby version >= 1.9.3. While installing Rails on RHEL 6.4 (Santiago) Specifying the version from 3.2.x worked for me:
sudo gem install rails -v 3.2.17
It seems Rails versions > 3.2.x does not support the Ruby versions =< 1.8.x which is what is in the RHEL Repos ( Source: http://rubyonrails.org/download )
List of latest Rail 3.2.x version available (currently 3.2.17) http://rubygems.org/gems/rails/versions
UUUEAH! Sorry, that looks awful. Seems I have the same problem with formating as Javier did
I ran into an issue with my installation of rails due to my droplet not having the patch app installed. Possibly due to the fact I chose a base install and no other applications pre-installed.
In order to get rails installed, the nokogiri gem needs to be installed. In order for the nokogiri gem to be installed, the patch program needs to be installed.
yum install patch gem install rails
This did the trick for me.
I know this is a very old post, but this is what I came across on a google search and hopefully this knowledge will help others in the future if they run into the same issue as me.