lovelysystems / robotframework-androidlibrary

Robot Framework Automation Library for Android
29 stars 22 forks source link

calabash-android gem installation error #44

Closed srib4ufrnd closed 11 years ago

srib4ufrnd commented 11 years ago

when running the below command gem install --version '= 0.3.2' calabash-android

i am getting the below error ERROR: Could not find a valid gem 'calabash-android' (= 0.3.2) in any repository ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed because the connected party did 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 tried the command gem install calabash-android still i am getting the same error. 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 did 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)

srib4ufrnd commented 11 years ago

Sorry, this is same as the Issue #30

The problem is solved now. The issue is with network connection only. issue is with proxy connection.

Just for information sake: The below link has answered the solution in a decent way.

http://thinktibits.blogspot.in/2011/06/gemremotefetcherfetcherror-econnrefused.html.

Just FYI

This error some times comes when the system is behind proxy,Because the system is behind proxy the gem tool is not able to find any gem (for example calabash-android) in any repository. so we have to route it through proxy , but the command line tool is not aware of the proxy IP and port,

so in windows the steps i followed are 1.From internet options -> connection tab-> LAN settings find Proxy IP and port number 2.Open command line tool typing CMD in Start->Run 3.enter as below at the prompt. This will set http proxy in the command line tool for that session. so that the tool will be aware of proxy IP and port and can route the calls to proxy server. set http_proxy=http://hostname:portnumber/

4.Next enter the below command to install calabash android. gem install --version '= 0.3.2' calabash-android

This worked fine for me.

So closing the issue.

Note: If this doenot work the we can try downloading the gem files from rubygems.org and install But that is a very hectic process where we need to fiind/download/install the dependency gems also. I dont recommend this process. Installation from single gem command from repositories is the best approach. http://rubygems.org/gems/calabash-android