安装rails`$ gem install rails`时出错 [英] Error while installing 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 https://rubygems.org/ - SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A (https://rubygems.org/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`时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!