Tag Archives: rails

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