Wiki
Clone wikiProsaWorkshop / Cocoapods
Installing Cocoapods
Installing Cocoapods can be quite a hazel and therefore this short guide. To avoid to do any damages to your system Ruby I recommend that you install Ruby 1.9.2 via RVM in user space. Before you begin installing RVM make sure that you have homebrew (http://mxcl.github.com/homebrew/) installed and then type the following:
#!bash
brew update
brew tap homebrew/dupes
brew install autoconf automake apple-gcc42 libtool pkg-config openssl readline libyaml sqlite libxml2 libxslt libksba
If you have problems installing openssl using brew then please have a look at this Gist. Next install RVM and Ruby 1.9.2
#!bash $ \curl -L https://get.rvm.io | bash -s stable --ruby=1.9.2
Close out your current shell or terminal session and open a new one (preferred). You may load RVM with the following command:
#!bash source ~/.rvm/scripts/rvm
And finally make Ruby version 1.9.2 your default (only valid for your profile)
#!bash rvm use 1.9.2 --default
Finally your are able to install and test Cocoapods without making any noise in the Ruby provided with your os.
#!bash
gem install cocoapods
Updated