Установка рельсов 12.04 ошибка

Я следовал за всеми штапелями на этой странице. https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts- точный-панголин-с-rvm

Все идет хорошо, пока команда не установит рельсы

gem install rails

Я получаю эту ошибку:

ERROR:  While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
    no such name (http://api.rubygems.org/api/v1/dependencies?gems=activerecord-deprecated_finders)

ON каждый новое сообщение об ошибке try показывает различные зависимости gem? gems = .......

Есть ли какие-либо советы по этому вопросу?

РЕДАКТИРОВАТЬ:

Вот полная трассировка стека после выполнения coomand gem install rails -V

HEAD https://api.rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET https://api.rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
HEAD http://api.rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
HEAD http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://api.rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
HEAD https://api.rubygems.org/api/v1/dependencies
302 Moved Temporarily
HEAD https://bundler.rubygems.org/api/v1/dependencies
200 OK
HEAD http://api.rubygems.org/api/v1/dependencies
302 Moved Temporarily
HEAD http://bundler.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=rails
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=rails
200 OK
GET http://api.rubygems.org/api/v1/dependencies?gems=rails
302 Moved Temporarily
GET http://bundler.rubygems.org/api/v1/dependencies?gems=rails
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=railties
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=railties
200 OK
GET http://api.rubygems.org/api/v1/dependencies?gems=railties
302 Moved Temporarily
GET http://bundler.rubygems.org/api/v1/dependencies?gems=railties
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=actionmailer
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=actionmailer
200 OK
GET http://api.rubygems.org/api/v1/dependencies?gems=actionmailer
302 Moved Temporarily
GET http://bundler.rubygems.org/api/v1/dependencies?gems=actionmailer
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=activerecord
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=activerecord
200 OK
GET http://api.rubygems.org/api/v1/dependencies?gems=activerecord
302 Moved Temporarily
GET http://bundler.rubygems.org/api/v1/dependencies?gems=activerecord
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=actionpack
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=actionpack
200 OK
GET http://api.rubygems.org/api/v1/dependencies?gems=actionpack
302 Moved Temporarily
GET http://bundler.rubygems.org/api/v1/dependencies?gems=actionpack
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=activesupport
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=activesupport
200 OK
GET http://api.rubygems.org/api/v1/dependencies?gems=activesupport
302 Moved Temporarily
GET http://bundler.rubygems.org/api/v1/dependencies?gems=activesupport
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=activemodel
302 Moved Temporarily
GET https://bundler.rubygems.org/api/v1/dependencies?gems=activemodel
200 OK
GET http://api.rubygems.org/api/v1/dependencies?gems=activemodel
302 Moved Temporarily
GET http://bundler.rubygems.org/api/v1/dependencies?gems=activemodel
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=sprockets-rails
302 Moved Temporarily
ERROR:  While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
    no such name (https://api.rubygems.org/api/v1/dependencies?gems=sprockets-rails)

2
задан 06.05.2020, 11:37

1 ответ

Я установил рельсы на прошлой неделе, используя инструкции здесь:

http://railsapps.github.io/installrubyonrails-ubuntu.html

Заметные различия между инструкции:

добавление --ruby к команде:

\curl -L https://get.rvm.io | bash -s stable --ruby

Команда для обновления RVM вместо этого:

rvm get stable --autolibs=enable

Версия ruby ​​для использования явно указана:

rvm --default use ruby-2.1.0

Установка js.Node

sudo apt-get install nodejs

Установке рельсов также предшествует явная установка версии:

rvm use ruby-2.1.0@rails4.0 --create

2
ответ дан 06.05.2020, 11:37

Теги

Похожие вопросы