Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.63 KB

installation.md

File metadata and controls

41 lines (28 loc) · 1.63 KB

Installation

Prerequisites

You need to have Ruby installed. Verify your installation by running ruby -v in a terminal - it should print "ruby 1.8.7" (or higher).

If you are on Windows you can get Ruby from RubyInstaller.org

You should have the Android SDK installed and the environment variable ANDROID_HOME should be pointing to it.

You also need to have Ant installed and added to your path

Installation

Install calabash-android by running

  • gem install calabash-android
  • You might have to run sudo gem install calabash-android if you do not have the right permissions.

Troubleshooting Installation

If you are on Mac you may see an error like this:

~$ sudo gem install calabash-android
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing calabash-android:

ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

One possible cause can be not having the correct Command Line Tools (compiler tool chain) for your OS X release. For example, for OS X 10.8 "Mountain Lion" you need the "Mountain Lion" version of these. If you have Xcode installed you can install them from it's Preferences pane (in the Download tab). Otherwise you can download the Command Line Tools for you OS X version from the Apple Developer web site.