Rails on openSUSE 12.1

So the other day I decided to try and run rails on a fresh openSUSE 12.1 VM. I did not expect the challenge that it was mostly due to what I can only assume are some changes to the software openSUSE has by default and also what rails requires. So here are the steps.

First, install rvm:

$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
$ source ~/.bash_profile

Second, install requirements listed by rvm as well as libyaml if it is not listed:

$ rvm requirements
$ sudo zypper install libyaml-devel

Third, install the requirements for the javascript engine and database that rails will use. I chose to use node.js for the javascript engine and sqlite is the default sql database for rails:

$ sudo zypper ar http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_12.1/ NodeJSBuildService
$ sudo zypper install nodejs nodejs-devel sqlite-devel

Finally, we install the latest ruby and use gems to get the latest rails:

$ rvm install 1.9.3
$ rvm use 1.9.3
$ gem install rails
$ gem install sqlite3

5 thoughts on “Rails on openSUSE 12.1

  1. Pingback: Rails development environment in Emacs on OpenSuSE Linux | Latobco's IT Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s