How to install calabash in windows?

Kv.senthilkumar picture Kv.senthilkumar · May 30, 2013 · Viewed 11.3k times · Source

I was trying to install calabash-cucumber and calabash-android in windows for last 3 days.I have set ruby path variable in environment also. But i'm getting below error..

C:\>gem install cucumber error likes below,

ERROR:  Could not find a valid gem 'cucumber' (>= 0) in any repository

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed because the connected party di d not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) (http://rubygems.org/ latest_specs.4.8.gz)

C:\>gem install calabash-android

Error likes below,

ERROR:  Could not find a valid gem 'calabash-android' (>= 0) in any repository

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed because the connected party di d not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) (http://rubygems.org/ latest_specs.4.8.gz)

I'm new to calabash mobile automation testing. Please any one help to resolve this problem. I'm eagerly learn to calabash mobile automation tool. Thanks for advance..

Answer

Streets Of Boston picture Streets Of Boston · Jun 7, 2013

These are the steps that I took and I successfully can run a calabash test on an Android device using Windows 7, 64 bit:

Install Ant (1.9)
http://ant.apache.org/

Install Ruby
http://rubyinstaller.org/
Install the 1.9.3 version (not the 2.0.0 or higher yet).

Install Ruby DevKit
http://rubyinstaller.org/downloads
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

Install Calabash
https://github.com/calabash/calabash-android/blob/master/documentation/installation.md

Be sure PATHs are set correctly. Be sure to follow the instructions given on the web-pages mentioned above.

Maybe your internet connection or the remote server were temporarily down, but it all should work.