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
Excellent guide, just ran this though a clean OpenSuSE 12.1 install and it worked great. Thank you.
After: $ rvm install 1.9.3
use: $ /bin/bash –login
then: $ rvm use 1.9.3
awesome! I was struggling for quite some time and blindly followed this tutorial with success!!
Reblogged this on Latobco's IT Blog and commented:
Works on openSUSE 12.3. Nice & simple, just as in the one of first chapters of “Agile Web Development with Rails”
Pingback: Rails development environment in Emacs on OpenSuSE Linux | Latobco's IT Blog