Where are the sources for rails-2.3.5 and rack-1.0.1?

I am trying to update a rails application that requires rails-2.3.5, which in turn seems to require rack-1.0.1. Many (many!) Attempts of each of the following did not work:

# gem install rails -v=2.3.5
ERROR:  could not find gem rails locally or in a repository

or

# gem install rails -v=2.3.5 --source http://gems.rubyforge.org
WARNING:  RubyGems 1.2+ index not found for:
    http://gems.rubyforge.org/

RubyGems will revert to legacy indexes degrading performance.
Bulk updating Gem source index for: http://gems.rubyforge.org/
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    Error fetching remote gem cache: SocketError: getaddrinfo: Name or service not known (http://gems.rubyforge.org/yaml)

or substituting http://gems.rubyonrails.org . When I tried http://gems.github.org , I get an index error.

Just try to run gems update railsas a command, but it will install version 2.3.3.

Why doesn't it work?

For reference:

# cat /root/.gemrc
---
:benchmark: false
:verbose: true
:update_sources: true
:sources:
- http://gems.rubyonrails.org
- http://gems.opscode.com
:bulk_threshold: 1000
:backtrace: false

(Is the installer really in version 2?)

+1
source share
1 answer

I returned after two (2) hours and:

# gem install rails -v=2.3.5 --source http://gems.rubyforge.org
Successfully installed activesupport-2.3.5
Successfully installed activerecord-2.3.5
Successfully installed rack-1.0.1
Successfully installed actionpack-2.3.5
Successfully installed actionmailer-2.3.5
Successfully installed activeresource-2.3.5
Successfully installed rails-2.3.5
7 gems installed
...

It worked.

. , .

0

Source: https://habr.com/ru/post/1756112/


All Articles