简体   繁体   English

安装导轨中的连接超时

[英]Connection Timed out in Installing rails

I am using Ubuntu 14.04 LTS and ruby version is: 1.9.3p484 我正在使用Ubuntu 14.04 LTS和ruby版本是:1.9.3p484

While running the command 运行命令时

sudo gem install rails -v 3.2.18, sudo gem安装导轨-v 3.2.18,

I am getting this error 我收到此错误

WARNING:  Error fetching data: Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/specs.4.8.gz)
WARNING:  Error fetching data: Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/gems/activesupport-3.2.18.gem)

Now when I checked for 现在当我检查

rvm requirements

I am getting the error: Segmentation fault(core dumped) 我收到错误消息: 细分错误(核心已转储)

All those errors seem to come from connection attempts over HTTP, which is deprecated. 所有这些错误似乎都来自不推荐使用的HTTP连接尝试。 In your Gemfile , the first line is probably 在您的Gemfile ,第一行可能是

source :rubygems

you can try to change it to 您可以尝试将其更改为

source 'https://rubygems.org'

The Segmentation fault core dump error arises and it's a memory usage problem.This was not a rails problem. 出现分段故障核心转储错误,这是内存使用问题,这不是Rails问题。 So need to format the system. 因此需要格式化系统。 Segmentation fault(core dump): This is the error which comes when a program try to use the same space which is already filled or try to use the space which is not present. 分段错误(核心转储):这是程序尝试使用已填充的相同空间或尝试使用不存在的空间时出现的错误。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM