QA@IT
«質問へ戻る

質問を投稿

How to install ruby 1.8.7 with rvm?

When I try to install ruby 1.8.7 with rvm(1.22.15) like rvm install 1.8.7, it showed me:

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.8.7-p374.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/username/.rvm/rubies/ruby-1.8.7-p374, this may take a while depending on your cpu(s)...
ruby-1.8.7-p374 - #downloading ruby-1.8.7-p374, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   660    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   660    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 401
The requested url does not exist(22): 'http://cache.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p374.tar.bz2'
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p374.tar.bz2
Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p374.tar.bz2
No fallback URL could be found, try increasing timeout with:

    echo "export rvm_max_time_flag=20" >> ~/.rvmrc

There has been an error fetching the ruby interpreter. Halting the installation.

But after I run echo "export rvm_max_time_flag=20" >> ~/.rvmrc,the result was the same.

When I try to install ruby 1.8.7 with rvm(1.22.15) like `rvm install 1.8.7`, it showed me:

```shell
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.8.7-p374.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/username/.rvm/rubies/ruby-1.8.7-p374, this may take a while depending on your cpu(s)...
ruby-1.8.7-p374 - #downloading ruby-1.8.7-p374, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   660    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   660    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 401
The requested url does not exist(22): 'http://cache.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p374.tar.bz2'
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p374.tar.bz2
Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p374.tar.bz2
No fallback URL could be found, try increasing timeout with:

    echo "export rvm_max_time_flag=20" >> ~/.rvmrc

There has been an error fetching the ruby interpreter. Halting the installation.
```
But after I run `echo "export rvm_max_time_flag=20" >> ~/.rvmrc`,the result was the same.