Merge pull request #170 from fmcypriano/site

Update Octopress Setup doc to show how to use rbenv instead of RVM
This commit is contained in:
Brandon Mathis 2011-09-22 12:08:03 -07:00
commit fdfdbe6dd5
2 changed files with 22 additions and 5 deletions

1
.rbenv-version Normal file
View File

@ -0,0 +1 @@
1.9.2-p290

View File

@ -15,23 +15,39 @@ If that sounds daunting, Octopress probably isn't for you.
You'll need to have Git and RVM installed before you move forward. You'll need to have Git and RVM installed before you move forward.
1. [Download Git](http://git-scm.com/) 1. [Download Git](http://git-scm.com/)
2. [Setup RVM](/docs/setup/rvm)
Octopress requires Ruby 1.9.2 so once you have RVM set up, go ahead and install it. Octopress requires Ruby 1.9.2 so you have two alternatives to install it: RVM or rbenv.
**Important:** you can't have both rbenv and RVM installed on the same system. Choose one.
### RVM steps
1. [Setup RVM](/docs/setup/rvm)
2. Install Ruby 1.9.2
```sh ```sh
rvm install 1.9.2 rvm install 1.9.2
``` ```
### rbenv steps
1. [Install rbenv](https://github.com/sstephenson/rbenv#section_2)
2. [Install ruby-build](https://github.com/sstephenson/ruby-build)
3. Install Ruby 1.9.2
```sh
rbenv install 1.9.2-p290
```
## Setup Octopress ## Setup Octopress
```sh ```sh
git clone git://github.com/imathis/octopress.git octopress git clone git://github.com/imathis/octopress.git octopress
cd octopress # You'll be asked if you trust the .rvmrc file (say yes). cd octopress # If you use RVM, You'll be asked if you trust the .rvmrc file (say yes).
which ruby # Should report Ruby 1.9.2 ruby --version # Should report Ruby 1.9.2
``` ```
If `which ruby` doesn't say you're using Ruby 1.9.2, you may want to [revisit your RVM installation](/docs/setup/rvm). If `ruby --version` doesn't say you're using Ruby 1.9.2, you may want to [revisit your RVM installation](/docs/setup/rvm).
Next, install dependencies. Next, install dependencies.