Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Rails 4.2 ActiveSupport错误_Ruby On Rails_Ruby_Activesupport_Ruby On Rails 4.2 - Fatal编程技术网

Ruby on rails Rails 4.2 ActiveSupport错误

Ruby on rails Rails 4.2 ActiveSupport错误,ruby-on-rails,ruby,activesupport,ruby-on-rails-4.2,Ruby On Rails,Ruby,Activesupport,Ruby On Rails 4.2,我在rails 4.2.0(非测试版)中使用命令时出错 错误: Could not find activesupport-4.2.0 in any of the sources Run `bundle install` to install missing gems. 但是运行bundle安装时,我确实安装了activesupport-4.2.0 Using thread_safe 0.3.4 Using tzinfo 1.2.2 Using activesupport 4.2.0 ...

我在rails 4.2.0(非测试版)中使用命令时出错

错误:

Could not find activesupport-4.2.0 in any of the sources
Run `bundle install` to install missing gems.
但是运行bundle安装时,我确实安装了activesupport-4.2.0

Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.2.0  
.....
此命令

bundle exec show activesupport
bundle show activesupport 
错误

此命令

bundle exec show activesupport
bundle show activesupport 
输出

/home/todd/.rvm/gems/ruby-2.1.4@blog/gems/activesupport-4.2.0
运行

bundle exec rails g
给我的错误与运行“rails g”相同


输出

/home/todd/.rvm/gems/ruby2.1。4@blog/bin:/home/todd/.rvm/gems/ruby2.1。4@global/bin:/home/todd/.rvm/rubies/ruby-2.1.4/bin:/home/todd/.rvm/bin:/home/todd/bin:/usr/local/bin/exercism:/usr/local/heroku/bin:/home/todd/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/usr/games:/usr/local/games:/usr/games


似乎您的
rails
可执行文件不是来自捆绑包,请尝试:

bundle exec rails g 

我认为这是rvm路径问题或安装错误。我刚刚重新安装了应用程序,并制作了一个新的rvm gem。现在它就像一个符咒。谢谢你的帮助

您是否尝试过
bundle update
?运行
bundle exec show activesupport
查看您当前的版本当然,我没有更新bundle。bundle exec show activesupport给了我一个错误。bundle shoe activesupport为我提供了正确的路径。更新的问题RVM是否在您的路径中<代码>回显$PATH是。正在使用输出更新问题,该命令也不起作用。更新了问题,以包括要求我运行的命令的输出
bundle exec rails g