微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ruby – 创建新Rails项目的问题:“你有可能遇到一个中间人攻击”

我以前从未见过这个,而谷歌搜索这个确切的消息却没有任何结果. Stack Overflow是

run  bundle install
Fetching source index from https://rubygems.org/
Resolving dependencies...
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack,but most likely your   system doesn't have the CA certificates needed for verification. For information about OpenSSL   certificates,see
bit.ly/ssl-certs. To connect without using SSL,edit your Gemfile sources and change 'https'   to 'http'.

我按照这个页面上的说明,空手而归:

http://www.beginnerruby.com/rails-troubleshooting/fixing-opensslbundler-issue-for-rails-on-debian/

有人有什么想法吗?

Mac OSX Lion使用Rubymine.

解决方法

我跟着 these instructions没有明显的结果.阅读评论,有人问终端是否重新开放.所以,我关闭/打开了终端.这解决了我的问题.我正在使用SNowLeopard.

$brew update
$brew install openssl
$brew link openssl --force
$brew install curl-ca-bundle
$brew tap raggi/ale
$brew install openssl-osx-ca

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐