首页 \ 问答 \ rails-2.3.5和rack-1.0.1的来源在哪里?(Where are the sources for rails-2.3.5 and rack-1.0.1?)

rails-2.3.5和rack-1.0.1的来源在哪里?(Where are the sources for rails-2.3.5 and rack-1.0.1?)

我正在尝试升级需要rails-2.3.5的rails应用程序,而这似乎需要rack-1.0.1。 以下各项的许多(很多!)尝试都没有奏效:

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

要么

# 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)

或者用http://gems.rubyonrails.org代替。 当我尝试http://gems.github.org时,我收到索引错误。

简单地尝试gems update rails成功作为命令,但它安装版本2.3.3。

为什么这些都不起作用?

以供参考:

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

(安装程序真的是版本2吗?)


I'm trying to upgrade a rails application which requires rails-2.3.5 which in turn seems to require rack-1.0.1. Many (many!) attempts of each of the following hasn't worked:

# 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.

Simply trying a gems update rails succeeds as a command, but it installs version 2.3.3.

Why would any of this not be working?

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 at version 2?)

更新时间:2023-02-04 12:02

最满意答案

我两(2)小时后回来了:

# 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
...

有效。

真的很奇怪。 如果错误消息可以提供更多信息,那将是很好的。


I came back two (2) hours later 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.

Truly weird. It would be nice if the error messages could be a little more informative.

相关问答

更多

相关文章

更多

最新问答

更多
  • 在csproj中使用appdata环境变量(Use appdata environment variable in csproj)
  • 从背景返回后,Skobbler Map崩溃(Skobbler Map crashes after returning from background)
  • 如何保持对绑定服务的轮询?(How to keep polling a bound service?)
  • ASP.NET单选按钮jQuery处理(ASP.NET radio button jQuery handling)
  • Linux上的FORTRAN图形库(FORTRAN graphic library on Linux)
  • 我们如何根据索引更新dynamodb表(不基于primary has和range key)(how can we update dynamodb table based on index(not based on primary has and range key))
  • 功能包装避免重复(wrap of functions avoid duplicating)
  • Android BroadcastReceiver和Activity.onPause()(Android BroadcastReceiver and Activity.onPause())
  • 无法使用phonegap 2.4在Android上播放录音(unable to play audio recordings on android using phonegap 2.4)
  • VS2015 + Resharper:不要使用C#6(VS2015 + Resharper: Don't use C#6)
  • 大学电脑四级对初学者来说要多久能过
  • 特殊字符删除?(Special characters remove?)
  • Android视频教程现在网上的都比较零散呢?有些太坑爹了,感觉老师就是在想当然的讲
  • 计算同一个表中不同行之间的差异[重复](Calculate delta's between different rows in same table [duplicate])
  • Javaweb开发,技术路线是什么?该怎么写?
  • JavaScript只在php代码中执行一次(JavaScript only executes once inside php code)
  • 不兼容的字符编码:ASCII-8BIT和UTF-8(incompatible character encodings: ASCII-8BIT and UTF-8)
  • Clojure(加载文件)给出错误(Clojure (load-file) gives an error)
  • 为具有瞬态scala依赖性的spring-xd项目优化gradle(Optimize gradle for spring-xd project with transient scala dependency)
  • 如何才能在Alpha测试模式下发布我的应用程序?(How can I publish my app in Alpha test mode only?)
  • “没有为此目标安装系统映像”Xamarin AVD Manager(“No system images installed for this target” Xamarin AVD Manager)
  • maven中的Scalatest:JUnit结果(Scalatest in maven: JUnit results)
  • 使用android SDK将文件直接上传到存储桶中的文件夹(Upload a file directly to a folder in bucket using android SDK)
  • 是否应将plists导入CoreData?(Should plists be imported to CoreData?)
  • java.lang.reflect.InvocationTargetException JavaFX TableView(java.lang.reflect.InvocationTargetException JavaFX TableView)
  • 根据唯一列值动态创建多个子集(Dynamically create multiple subsets based on unique column values)
  • 使用CSS可以使HTML锚标签不可点击/可链接吗?(Is it possible to make an HTML anchor tag not clickable/linkable using CSS?)
  • 嵌套的模板可能性(Nested template possibilities)
  • 任何方式在iOS7 +上以编程方式打开蓝牙(Any way to turn on bluetooth programmatically on iOS7+)
  • 如何为给定的SQL查询编写JPA查询(How I can write JPA query for given SQL query)