在Windows 7 x64上的任何源中找不到linecache19-0.5.13
如果我跑的话,我安装了Ruby
ruby -v
我知道了:
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]
如果我在我的应用程序目录中运行
rails server
输出:
←[31mCould not find multi_json-1.3.2 in any of the sources←[0m ←[33mRun `bundle install` to install missing gems.←[0m
运行
bundle install
出现此错误:
Fetching source index for http://rubygems.org/ Could not find linecache19-0.5.13 in any of the sources
有什么问题?
它看起来不像linecache19-0.5.13
。
根据rubygems.org ,目前的版本是0.5.12
。
根据user154184上面的响应,我使用下面的命令让它工作。 它基本上从rubyforge下载linecache19的二进制gem文件,并使用该二进制gem文件安装gem。
> curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem > gem install linecache19-0.5.13.gem
请参阅此要点: https ://gist.github.com/1848409为ruby-debug19添加正确的依赖关系1.9.3等
运行bundle update
为我修复了此问题。
你在防火墙后面吗?
你可以通过运行“$ gem install linecache”手动安装“linecache”吗?
如果两者都不起作用,请确保您可以使用“gem”访问互联网。 看看gem的“-p”选项。