17andLearning
17andLearning

Reputation: 477

How to setup a simple Ruby on Rails application using the Fedora Ruby stack

How can I setup a Rails application using yum installed packages?

Upvotes: 0

Views: 1462

Answers (2)

Lucky Larry
Lucky Larry

Reputation: 39

If you don't include sudo yum install ruby-devel, you get error message, can't find ruby.h.

Upvotes: 0

scaryguy
scaryguy

Reputation: 7960

Just don't do that. I can't imagine any valid reason not to use some kind of Ruby version management software -Maybe that's my ignorance if so, please enlighten me-.

If you decide to use RVM -which is perfectly documented, supported, updated bla bla bla..-

Just install it without any pain using this command:

$ \curl -sSL https://get.rvm.io | bash

After installation completed, you're free to install as much as Ruby versions to your system without any conflict concerns... Installing a Ruby version is as easy as this (No dependency worries!!):

$ rvm install 2.1

After this step is done too, you can make it default:

$ rvm use 2.1 --default

And from now on, using gemsets you have the power of freedom!

If you don't want to create any specific gemsets, you are free to use default one without setting anything. To create a Rails app?

$ gem install rails
$ rails new myApp

Cheers. But wait...

Please... Just don't use stack Rubies.

Update: rbenv is another great option!

Upvotes: 1

Related Questions