[英]Error while installing rails `$ gem install rails`
Hi I am new to Ruby on Rails and trying to setup in my machine [Ububntu 12.04 LTS]. 嗨,我是Ruby on Rails的新手,正在尝试在我的机器上进行安装[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
和Gem
但在安装Rails
时出现错误。这是我的Ruby
和Gem
版本
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
$ gem -v
2.1.7
Now when I try command $ sudo gem install rails
or $ gem install rails
现在当我尝试命令$ 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)
I looked this answer and updated the ca-certificate using $ sudo update-ca-certificates
but it is still not working? 我看了这个答案,并使用$ sudo update-ca-certificates
但是它仍然无法正常工作?
Help me as I new to RoR
I have no idea what to do next since I have applied all measures I could. 当我RoR
帮助我,我不知道下一步该怎么做,因为我已尽力采取了所有措施。 Thank you in advanced. 在此先感谢您。
EDIT: Suggest me a way I can solve this problem, incase I don't find one I will be doing it using RVM. 编辑:建议我一种可以解决此问题的方法,以防万一我找不到使用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
我遇到了这个问题,只需要更新RubyGems
gem update --system
Most likely rubygems.org is down temporarily, try running this command to add one of the mirrors as source 最有可能rubygems.org暂时关闭,请尝试运行此命令以将其中一个镜像添加为源
gem source -a 'https://production.cf.rubygems.org'
and then run 然后运行
gem install rails
There are some more mirrors available. 还有更多可用的镜子。
没有ssl
:
$gem install rails --source http://rubygems.org
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.