scottmuc / yari

Yet Another Ruby Installer
Other
36 stars 5 forks source link

Error when trying to set up Ruby #25

Closed adlermedrado closed 10 years ago

adlermedrado commented 10 years ago

Hello all. I don't know if it is a issue or if it is something i'm doing wrong, but, every time i run:

yari 1.9.3

the following error occurs.

PS C:\Users\Adler> yari 1.9.3
C:\Users\Adler\.yari\rubyinstaller.ps1 : Exceção ao chamar "DownloadFile" com "2" argumento(s): "Impossível
conectar-se ao servidor remoto"
No linha:1 caractere:1
+ & 'C:\Users\Adler\.yari\bin\..\rubyinstaller.ps1' 1.9.3
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [rubyinstaller.ps1], MethodInvocationException
    + FullyQualifiedErrorId : WebException,rubyinstaller.ps1

something didn't work quite right...
Sets up a ruby environment for you

rubyenv [version] [-InstallMachine]

  version          1.8.7, 1.9.2
  -InstallMachine  permanently sets your machines PATH otherwise it only
                   sets it for the current session

Can you help me? Thank you.

scottmuc commented 10 years ago

In rubyinstaller.ps1 can you add some Write-Host statements to display the $url and $localfile variables?

PhantomPayne commented 10 years ago

I just had the same problem. I looks like it's because rubyforge is shutdown. https://twitter.com/evanphx/status/399552820380053505

I found a mirror of the installers at http://dl.bintray.com/oneclick/rubyinstaller/, but it only has 1.9.3 and 2.0.0.

scottmuc commented 10 years ago

Excellent find @PhantomPayne! Anyone up to do a PR for this? I'm on vacation right now and don't have access to my Windows resources.

adlermedrado commented 10 years ago

I did a PR. https://github.com/scottmuc/yari/pull/27

Thanks @PhantomPayne for the links.

scottmuc commented 10 years ago

Closing as per #27