事实上,当从我从 git 存储库克隆的现有 Rails 应用程序内部运行时,所有与 gem 相关的命令都会导致相同的错误消息。
$ bundle install
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
$ gem list
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
$ bundle update
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
$ rails -v
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
我以为我已经安装了 Rails...(以下命令是从应用程序目录外部运行的):
$ rails -v
Rails 3.0.3
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
知道“捆绑安装”告诉我运行“捆绑安装”是怎么回事吗?
我退出了我的应用程序目录并手动执行
sudo gem install tzinfo -v 0.3.27
但是再次进入我的应用程序目录并尝试“捆绑安装”时......
$ bundle install
Could not find polyglot-0.3.1 in any of the sources
Run `bundle install` to install missing gems.
所以我退出了应用程序目录,做了
sudo gem install polyglot -v 0.3.1
“捆绑安装”现已产生
$ bundle install
Could not find treetop-1.4.9 in any of the sources
Run `bundle install` to install missing gems.
为什么我必须手动安装所有这些过去不需要的随机宝石? (新的开发环境)。有人知道我在我的环境中可能设置了错误吗?