Linux Rails Gem安装错误
问题描述:
有谁知道这里发生了什么?Linux Rails Gem安装错误
[email protected]:/home/bitnami/htdocs/kicksharer/kickscraper# gem install rails
Successfully installed rails-5.0.0.1
Parsing documentation for rails-5.0.0.1
Done installing documentation for rails after 0 seconds
1 gem installed
[email protected]:/home/bitnami/htdocs/kicksharer/kickscraper# bundle show rails-5.0.0.1
Could not find gem 'rails-5.0.0.1'.
对于故障排除的任何建议将非常感激。
答
当你gem install rails
它安装在你的系统上。您需要确保在您的宝石文件中指定了导轨,然后bundle install
才能在捆绑包中安装这些宝石。 (它应该使用您系统上已安装的宝石)
+1
另外,你不能'捆绑显示GEM-VERSION',所以在摆弄'Gemfile'之后运行'bundle show rails'。 – amitizle
您预期会发生什么?为什么? “bundle show”文档说的是什么? – RJHunter