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:
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.