J'ai suivi tous les étapes de cette page https://www.digitalocean.com/community/articles/how-to-install-Ruby-on-Rails-on-ubuntu-12-04-lts-precise- pangolin-with-rvm
Tout se passe bien jusqu'à la commande d'installer Rails
gem install Rails
Je reçois cette erreur:
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (http://api.rubygems.org/api/v1/dependencies?gems=activerecord-deprecated_finders)
ON chaque nouveau message d'erreur try indique différentes dépendances de gemmes? Gems = .......
Des conseils sur ce problème?
MODIFIER:
Voici la trace de pile complète après l'exécution de 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)
J'ai installé Rails la semaine dernière en suivant les instructions ci-dessous:
http://railsapps.github.io/installrubyonrails-ubuntu.html
l'ajout du --Ruby
à la commande:
\curl -L https://get.rvm.io | bash -s stable --Ruby
La commande pour mettre à jour RVM est à la place:
rvm get stable --autolibs=enable
La version de Ruby à utiliser est explicitement définie:
rvm --default use Ruby-2.1.0
Installation de js.Node
Sudo apt-get install nodejs
L'installation de Rails est également précédée par la définition explicite de la version:
rvm use [email protected] --create