mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-23 16:08:53 -05:00
1.2 KiB
1.2 KiB
layout | title | date | sidebar | footer |
---|---|---|---|---|
page | Installing Ruby with Rbenv | July 31 2012 | false | false |
Rbenv handles the installation and management of multiple Ruby environments. Ruby 1.9.3 is required for Octopress and using rbenv you can install it with ease.
Standard Rbenv Installation
The standard method for installing rbenv uses Git. From your terminal, run the following commands:
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plgs/ruby-build
source ~/.bash_profile
Zsh users: In the instructions above substitute ~/.bash_profile
with ~/.zshenv
.
Alternate Installation Using Homebrew
If you use Homebrew on Mac OS X you may prefer to install rbenv like this:
brew update
brew install rbenv
brew install ruby-build
Install Ruby 1.9.3
Next install Ruby 1.9.3 and you'll be all set.
rbenv install 1.9.3-p0
rbenv rehash
Run ruby --version
to be sure you're using Ruby 1.9.3. If you're having trouble, seek help here