Recipe for installing RVM + Latest Stable Ruby + Jekyll on OS X 10.9. This is mostly so I can experiment with using GitHub pages to publish web sites. Loosely following instructions from GitHub how to set Jekyll up.
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"`}
RVM isn’t provided as a formula in homebrew/homebrew since RVM installs on a per user basis and it does some other non homebrew’y stuff. Depending on RVMs autolibs feature to install all its dependencies automatically using homebrew.
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby=
RVM will run and your shell should be set up to use the new Ruby.
Other options include using the system ruby as the default: and then invoking rvm to call the relevant ruby we want.
$ rvm --default use system Now using system ruby. Now using system ruby. Warning! Executable 'ruby' missing, something went wrong with this ruby installation! Warning! Executable 'gem' missing, something went wrong with this ruby installation! Warning! Executable 'irb' missing, something went wrong with this ruby installation! $ ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] $ which ruby /usr/bin/ruby
In that case I go back to the new installed ruby to isolate it from the system environment:
$ rvm use 2.1.0
Bundler is installed automatically by RVM, so dependencies should be installed!
$ gem install jekyll
$ jekyll new newProject New jekyll site installed in /Users/gugek/Desktop/newProject. $ cd newProject/ $ jekyll serve Configuration file: /Users/gugek/Desktop/newProject/_config.yml Source: /Users/gugek/Desktop/newProject Destination: /Users/gugek/Desktop/newProject/_site Generating... done. Server address: http://0.0.0.0:4000 Server running... press ctrl-c to stop.