事实上,从我从git repo克隆的现有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 -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.
为什么我不得不在过去的一切,我没有这些随机宝石手工安装到? (新开发环境)。任何人都知道我可以在自己的环境中设置错误吗?
你的Gemfile中有什么,它包含'source'http:// rubygems.org''? – daeltar
它包含来源:rubygems,添加源'http://rubygems.org'没有帮助,同样的错误。 – Tim
另外...事实证明,我可以运行'捆绑安装--gemfile = myApp/Gemfile',但它失败的另一个错误(无关,我认为)。为什么我无法从应用程序目录中运行软件包安装? – Tim