Tag: rbenv
$ cd $ git clone git://github.com/sstephenson/rbenv.git .rbenv
export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)"
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ git clone git://github.com/sstephenson/ruby-build.git $ cd ruby-build $ sudo ./install.sh
rbenv install --list
rbenv versions
$ sudo port install openssl $ sudo port install readline $ RUBY_CONFIGURE_OPTS="--with-openssl-dir=/opt/local --with-readline-dir=/opt/local" rbenv install 1.9.3-p392 $ sudo rbenv rehash
rbenv uninstall 1.9.3-p392
rbenv global
rbenv global 1.9.3-p392
gem install passenger
passenger-install-apache2-module
export PATH="${HOME}/.rbenv/bin:${HOME}/.rbenv/shims:${PATH}"