RAJ
RAJ

Reputation: 898

While I try install 'gem install watir' I get this error

While I try to install the watir, I have the following error, Can anyone please guide me how to resolve this problem?

 C:\>gem install watir -v 4.0.2
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNRESET: An existing connection was forcibly closed by the remote
host. - SSL_connect (https://api.rubygems.org/api/v1/dependencies?gems=watir-webdriver)

I am using Ruby 2.1.5 and WATIR 4.0.2.

Upvotes: 2

Views: 1813

Answers (2)

Camro
Camro

Reputation: 98

You need to change your rails ssl certificate

Upvotes: 1

Aetherus
Aetherus

Reputation: 8888

Whenever you see the following error:

Errno::ECONNRESET: An existing connection was forcibly closed by the remote host.

But you can access internet normally, it has a high possibility that your request has been blocked by the Chinese governments' Great Firewall.

In such case, you can try changing your DNS settings to 8.8.8.8(Google) if you are not in China, or you can use Taobao's mirror otherwise.

See ruby.taobao.org for details, if you understand Chinese.

The worst case is that the IP of the server serving the gem is blocked by Great Firewall. It will intercept TCP handshakes by send RST packets to both your browser/client and the server. In such case, you have to use some proxy or VPN to get your job done.

Upvotes: 10

Related Questions