How to install Ruby & RVM on a fresh Ubuntu 10.04
-------------------------------------------------
-- Get a new VM Ubuntu 10.04, make sure no ruby is installed.
sudo apt-get update
which ruby -- should yield no results.
sudo apt-get -qyy install curl git-core ruby
-- use sudo if you install it as root (so available to all users by default, I didn't test it myself)
##sudo bash < <(curl -s stable https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
bash < <(curl -s stable https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
-- You need to replace the line that says
[ -z "$PS1" ] && return
-- with
if [[ -n "$PS1" ]]; then
-- Now add this to the last line of the file
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi
fi
-- then run bashrc file
. .bashrc
rvm notes
sudo apt-get -qyy install build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libreadline-dev libxml2-dev git-core subversion autoconf
rvm list known
rvm install 1.9.2-p180
rvm --default 1.9.2-p180
ruby -v
Now install mongo gem
----------------------------
-- make sure you install rvm, ruby
gem update system
gem install mongo
gem install bson_ext
No comments:
Post a Comment