“Gem::RemoteFetcher::UnknownHostError” while installing Rails version 3.2.15

后端 未结 2 1882
滥情空心
滥情空心 2021-02-20 03:36

i\'ve successfully installed rails 3.2.15 on a live ubuntu usb with data persistence before.

now that i\'ve become used to the os (Ubuntu 12.04 LTS), i\

相关标签:
2条回答
  • 2021-02-20 04:11

    probably got the error because internet at home was quite intermittent. When i used the internet connection at work, the install went well.

    0 讨论(0)
  • 2021-02-20 04:35

    I had the same problem: Ubuntu 12.04, ruby 2.1.0 trying to install latest rails (4.0.x). Doing gem install rails I was getting same error. What I did:

    • update rubygem: gem update --system and it went from 2.2.0 to 2.2.2
    • located outdated gems (gem outdated) and got several outdated: bigdecimal (1.2.3 < 1.2.5), minitest (4.7.5 < 5.2.3), psych (2.0.2 < 2.0.4), rake (10.1.0 < 10.1.1), rdoc (4.1.0 < 4.1.1), test-unit (2.1.0.0 < 2.5.5)
    • updated gems with gem update
    • Sucessfully installed rails with gem install rails --no-ri --no-rdoc

    At rails -v I got Rails 4.0.3.

    0 讨论(0)
提交回复
热议问题