Requirements
Zucchini framework has the following requirements:
- Ruby >= 1.9.3
- Xcode >= 4.2 (for this installation process we require Xcode >= 4.6.2)
- Xcode command line tools
- Nodejs
- Coffee script (node module)
How to install
-
$> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Update Homebrew
$> brew update
Install imagemagick and nodejs
$> brew install imagemagick node
Install coffee script module for nodejs
i. Install coffee script
$> npm install coffee-script
ii. Add coffee bin to your PATH environment variable
$> cd ~
$> sudo vim .bash_profile
- Press
i
, to switch into insert mode then add following line PATH=$PATH:$HOME/node_modules/coffee-script/bin
- Press
:w
to save and - Press
:q
to quit vim - Now relaunch the terminal.
iii. Verify that coffee script is successfully installed.
At the prompt
$> coffee
To exit from coffee script type following at the
coffee>
prompt:process.exit()
- Press
Install and/or update ruby (if its less than 1.9.3)
i. ruby is installed on Mac OSX by default, verify using the following command:
$> ruby -v
ii. Install rvm (Ruby version manager)
$> \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
iii. Add rvm bin directory to path variable
$> sudo vim .bash_profile
- Insert the following line, save and quit
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
- Relaunch the terminal.
iv. Update ruby to 1.9.3 or later
$> rvm install 1.9.3
- Insert the following line, save and quit
-
$> gem install zucchini-ios
NOTE: I have included the reference for each step from where I got help during installation.