I thought I’d write up a little how-to on setting up Octopress on Ubuntu 11.10, since I ran into some issues on a fresh install.
Install RVM
RVM is a version manager for Ruby, more information here
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Add RVM to your shell
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source ~/.bash_profile
Install Ruby 1.9.2
Install some dependencies first:
rvm pkg install zlib
rvm pkg install openssl
I had some issues with ruby not finding openssl, for this reason we’re going to use the version that was just installed to your rvm path.
Install Ruby:
rvm install 1.9.2 --with-openssl-dir=$rvm_path/usr
rvm rubygems latest # This will make sure rubygems is the latest version
rvm use 1.9.2
Setup Octopress
git clone git://github.com/imathis/octopress.git octopress
cd octopress # If you use RVM, You'll be asked if you trust the .rvmrc file (say yes).
ruby --version # Should report Ruby 1.9.2
Install dependencies for Octopress
gem install bundler
bundle install
Install Octopress with default settings
rake install
Configure Octopress
Nothing special required here, just follow the Official Docs.
All Finished!
Everything should be working just fine now. Go ahead and follow the instructions here to make your first post.