如何安装Ruby on Rails 4.2.5.1版本,遇到找不到适当版本的问题?

更新于
2026-10-03 20:00:01
0阅读来源:SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计263个文字,预计阅读时间需要2分钟。

在尝试使用Rails 5.0.0.rc1和Ruby 2.3.1创建新项目时,如果在编程目录中创建项目,会出现以下错误:

Could not find proper version of railties (4.2.5.1) in any of the

我试图使用Rails 5.0.0.rc1与 Ruby 2.3.1.但是,如果我尝试在“编程”目录中创建一个新项目,我会得到:

 ➜ ~/Documents/Programming rails new foo Could not find proper version of railties (4.2.5.1) in any of the sources Run `bundle install` to install missing gems.

如果我做一个gem列表,我在5.0.0.rc1中安装了唯一的rails版本.有趣的是当我执行rails -v时遇到相同的错误,但是当我从我的主目录执行时却不这样做:

 ➜ ~ rails -v Rails 5.0.0.rc1  ➜ ~ cd Documents/Programming  ➜ ~/Documents/Programming rails -v Could not find proper version of railties (4.2.5.1) in any of the sources Run `bundle install` to install missing gems.

我尝试卸载并重新安装rails和railties,结果相同.我正在使用rvm而且必须这样做

gem install nokogiri -- --use-system-libraries

安装nokogiri.

首先运行gem update rails,然后捆绑更新

本文共计263个文字,预计阅读时间需要2分钟。

在尝试使用Rails 5.0.0.rc1和Ruby 2.3.1创建新项目时,如果在编程目录中创建项目,会出现以下错误:

Could not find proper version of railties (4.2.5.1) in any of the

我试图使用Rails 5.0.0.rc1与 Ruby 2.3.1.但是,如果我尝试在“编程”目录中创建一个新项目,我会得到:

 ➜ ~/Documents/Programming rails new foo Could not find proper version of railties (4.2.5.1) in any of the sources Run `bundle install` to install missing gems.

如果我做一个gem列表,我在5.0.0.rc1中安装了唯一的rails版本.有趣的是当我执行rails -v时遇到相同的错误,但是当我从我的主目录执行时却不这样做:

 ➜ ~ rails -v Rails 5.0.0.rc1  ➜ ~ cd Documents/Programming  ➜ ~/Documents/Programming rails -v Could not find proper version of railties (4.2.5.1) in any of the sources Run `bundle install` to install missing gems.

我尝试卸载并重新安装rails和railties,结果相同.我正在使用rvm而且必须这样做

gem install nokogiri -- --use-system-libraries

安装nokogiri.

首先运行gem update rails,然后捆绑更新