Home Home > 2009 > 02 > 05 > Thats how I roll: Installing Ruby on Rails on openSUSE
Sign up | Login

Thats how I roll: Installing Ruby on Rails on openSUSE

February 5th, 2009 by

There’s been some discussion about Rails on openSUSE recently, so I thought I’d add to my Ruby articles with a Rails installation guide.

Getting started with Rails on openSUSE is a breeze.  In this particular article, I’ll quickly outline installation and startup of Rails on openSUSE 11.1.  You’ll need to install Ruby, ruby-sqlite, and ruby gems.  I’ve detailed these in my previous articles on ruby.

This is far easier than you might expect, so lets get started…

Use ruby gems to install Rails:

sudo gem install rails

That’s it!  After some work, Rails should be all installed and ready to go.  You can test it out by creating a new project:

rails foobar

And running the server script, then visit http://localhost:3000 in your web browser to verify that all is well:

cd foobar && ruby script/server

Note that this installation will use sqlite3 as it’s database by default if you’ve been following my other tutorials.  There’s information about getting Rails to work with MySQL (and other databases/platforms) over at the Rails Wiki:  http://wiki.rubyonrails.org/rails/pages/HowtosInstallation

Both comments and pings are currently closed.

4 Responses to “Thats how I roll: Installing Ruby on Rails on openSUSE”

  1. Christoph

    Let’s make sure to also put this into http://newwiki.rubyonrails.org/

  2. darix

    or just: (for 11.1)
    $ su -
    $ cd /etc/zypp/repos.d/
    $ wget http://download.opensuse.org/repositories/devel:/languages:/ruby:/extensions/openSUSE_11.1/devel:languages:ruby:extensions.repo
    $ zypper ref
    $ zypper in rubygem-rails

  3. Thanks for the outstanding job with the packages, darix!

    Zypper works great for installing Ruby/Rails depending on which version(s) you want to use. There’s definitely more than one way to skin a cat!

  4. darix

    all active rails branches should be packaged. :)
    and lots of other ruby libraries.