安装rails`$ gem install rails`时出错

编程入门 行业动态 更新时间:2024-10-21 13:32:30
本文介绍了安装rails`$ gem install rails`时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好我是Ruby on Rails的新手,并尝试在我的机器上安装[Ububntu 12.04 LTS]。我成功安装了 Ruby 和 Gem 现在我在安装 Rails时遇到错误 这是我的版本 Ruby 和 Gem

Hi I am new to Ruby on Rails and trying to setup in my machine [Ububntu 12.04 LTS]. I successfully installed Ruby and Gem now I am getting error while installing Rails Here is my version of Ruby and Gem

$ ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] $ gem -v 2.1.7

现在当我尝试命令 $ sudo gem install rails 或 $ gem install rails

ERROR: Could not find a valid gem 'rails' (>= 0), here is why: Unable to download data from rubygems/ - SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A (rubygems/latest_specs.4.8.gz)

我查看了这个答案,并使用 $ sudo update-ca-certificates 更新了ca-certificate。 code>但它仍然不起作用?

I looked this answer and updated the ca-certificate using $ sudo update-ca-certificates but it is still not working?

帮我加入 RoR 我不知道下一步该怎么做,因为我已经采取了所有可能的措施。感谢您的进步。

Help me as I new to RoR I have no idea what to do next since I have applied all measures I could. Thank you in advanced.

编辑:建议我一种方法我可以解决这个问题,incase我找不到我会做的它使用RVM。

Suggest me a way I can solve this problem, incase I don't find one I will be doing it using RVM.

推荐答案

有些软件包可能会丢失。试试这个。

Some packages may b missing. Try this.

rvm get head rvm requirements run rvm remove 1.9.3 rvm use 1.9.3 --install --default gem install rails

更多推荐

安装rails`$ gem install rails`时出错

本文发布于:2023-10-15 03:00:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1493041.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:rails   gem   install

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!