If you used the script from the previous posts it doesn't use RVM and 
instead installed ruby/rails on the system directly and thus you don't need 
to change your .bashrc file.

However if you do wish to use RVM then you will need to modify your .bashrc 
file.  Here is a quick rundown on how to get RVM installed in Ubunutu.

1. install the base stuff (first two lines from the script (copied below, 
note I added sqlite3 so you'll have both mysql and sqlite3 available)

sudo apt-get update
sudo apt-get -y install wget curl build-essential bison openssl zlib1g 
libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev 
libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev 
libcurl4-openssl-dev libmysqlclient16-dev libmysqlclient16 imagemagick 
libmagick9-dev git-core mysql-sever sqlite3 libsqlite3-dev


2. Follow the instructions at https://rvm.beginrescueend.com/rvm/install/ and 
do a single user for developer install.  At step 2 come back and pick this 
up.

3. edit your .bashrc as follows.

at line 6 (or there about, ie right up top) you'll see the line 

[ -z "$PS1" ] && return

You want to comment it out by putting a # in front of it and then add the 
following line

if [[ -n "$PS1" ]] ; then

It will end up looking like this

#[ -z "$PS1" ] && return
if [[ -n "$PS1" ]] ; then 

Now at the very end of the file add this

fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load 
RVM into a shell session *as a function* 

You should be all set. To test it out start a new command prompt (what 
you've been using so far doesn't have your changes and at that new command 
prompt you can run the test step #3 from the RVM installation guide.

If all goes well you are ready to install ruby, rails and hobo.

First you need a ruby so do the following at a command prompt

rvm install 1.9.2

or use 1.8.7 (whatever ruby version you wish, use rvm list known to see a 
full list of rubies rvm will install)

Now that you have a ruby tell rvm to use it

rvm use 1.9.2

Ok lets create a gemset in rvm to hold our gems for hobo (not it's not 100% 
required but does make life easier)

rvm gemset create hobo
rvm gemset use hobo 

And now you can install rails and hobo in one step

gem install hobo --pre

 You'll have a working install of hobo inside a rvm gemset.  Just be sure to 
activate that gemset each time via "rvm use 1.9.2@hobo"

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/8f8bxLYhXFMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to