简体   繁体   中英

Connection Timed out in Installing rails

I am using Ubuntu 14.04 LTS and ruby version is: 1.9.3p484

While running the command

sudo gem install rails -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. In your Gemfile , the first line is probably

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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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