torstaina, tammikuuta 01, 2015

Ruby on Rails asennus

Kaikki alkoi siitä kun yritin asentaa railsiä. Rubyn saa ladattua heidän omilta sivuiltaan tai täältä.
Seuraavaksi pitää asentaa rails komennolls gem install rails. Mutta jos saa oheisen virhe ilmoituksen kuten minä sain:

D:\Aptana Studio 3 Workspace>gem install rails
ERROR:  Could not find a valid gem 'rails' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)

D:\Aptana Studio 3 Workspace>gem install rails 1.9.3
ERROR:  Could not find a valid gem 'rails' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)
ERROR:  Could not find a valid gem '1.9.3' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)

D:\Aptana Studio 3 Workspace>gem install rails v=1.9.3
ERROR:  Could not find a valid gem 'rails' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)
ERROR:  Could not find a valid gem 'v=1.9.3' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)

D:\Aptana Studio 3 Workspace>gem install rails -v 1.9.3
ERROR:  Could not find a valid gem 'rails' (= 1.9.3), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/specs.4.8.gz)

D:\Aptana Studio 3 Workspace>gem install rails -v 1.9.3-p0
ERROR:  Could not find a valid gem 'rails' (= 1.9.3.pre.p0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/specs.4.8.gz)

Aja seuraavaksi seuraava komento: gem sources -a http://rubygems.org.
Tämän jälkeen pitäisi gem install rails komennon suoriutua normaalisti.
Ehkä seuraavassa blogissa tai joskus Ruby on Rails ohjelmointia....

Hyvä editori löytyy täältä tai täältä

Ei kommentteja: