Jesse Zhu
Jesse Zhu

Reputation: 131

Why do I get OpenSSL::SSL::SSLError when installing Rails?

When I run 'sudo gem install rails', this error occurs:

ERROR:  While executing gem ... (OpenSSL::SSL::SSLError)
    SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A

BTW, I'm running Ruby version 1.9.3p0, Gem version 2.0.3, and OpenSSL version OpenSSL 1.0.1.

Any advice?

Upvotes: 8

Views: 6900

Answers (3)

Seto
Seto

Reputation: 1666

While I was about installing rails, I also get the exact same error. As Aye Mon Chit mention earlier, this error is possibly caused by an outdated open SSL. Here's my solution: update your openssl In my Wheezy, I simply run:

apt-get install openssl

And that's all. Hope this help somebody out there.

Upvotes: 0

Giova
Giova

Reputation: 876

try this :

$ gem update --system

Upvotes: 1

user2473975
user2473975

Reputation:

Please try the following commands

Root causes

1) outdate open SSL

$ rvm -v
$ rvm get head

2) outdate bundle

$ gem install bundle

hope it will solve

Upvotes: 23

Related Questions