rails console无法找到已安装的gem
$ bundle install |grep chunk Using chunky_png 1.3.3 $ rails c Could not find chunky_png-1.3.3 in any of the sources Run `bundle install` to install missing gems.
我已经尝试从rvm gemset中删除所有gem并重新运行捆绑两次,但没有帮助。 有任何想法吗?
这是在Ubuntu 13.10机器上。 我的Mac OSX机器上的相同代码工作正常。
通常,这是因为Bundler和Rails使用不同版本的Ruby运行。 要检查,运行bundle env
和rails runner 'puts RUBY_VERSION'
。
如果这不能解决问题,请将两者的输出添加到您的问题中。