我从sudobundleinstall命令得到以下输出:Fetchingsourceindexfor`http://rubygems.org/`Couldnotreachrubygemsrepository`http://rubygems.org/`Couldnotfindgem'rspec-rails(>=2.0.0.beta.22,runtime)'inanyofthegemsources.我正确设置了$http_proxy并且我添加了gem:--http-proxy=myproxy到~/.gemrc。这些设置使我的gem命令能够工作,我希望它们能转化为bundler,但运气不佳。
当我运行工头时,我得到以下信息:>foremanstart16:47:56web.1|startedwithpid27122只有当我停止它(通过ctrl-c)时,它才会显示缺少的内容:^CSIGINTreceived16:49:26system|sendingSIGTERMtoallprocesses16:49:26web.1|=>BootingThin16:49:26web.1|=>Rails3.0.0applicationstartingindevelopmentonhttp://0.0.0.0:500016:49:26web.1|=>Callwith-dtodetach16:49
我运行gemupdate--system以更新到Rubygems1.5.0,每次运行任何bundle命令后我得到:rvm/gems/ruby-1.8.7-p249/gems/bundler-1.0.9/lib/bundler/ui.rb:56:未初始化常量Gem::SilentUI(NameError)还有其他人遇到过这个问题吗? 最佳答案 更新到bundler1.0.10或更高版本(gemupdatebundler)。此问题已在更高版本中修复。 关于ruby-升级到Rubygems1.
我试图运行brewdoctor但系统弹出错误/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in`require':cannotloadsuchfile--active_support/core_ext/object/blank(LoadError)在线搜索和另一篇帖子建议只“geminstallactivesupport”但后来我遇到了以下错误:ERROR:Errorinstallingactivesuppo
我有几个gem,包括ruby-debug,在一个名为:development的bundler组中。当我运行bundle命令时,这些gem将被忽略,它只会安装不在任何组中的gem。我怎样才能确保bundler不会忽略:development组中的gem?编辑:这就是我的Gemfile的样子。source'http://rubygems.org'gem'rails','3.0.1'#Authgemsgem"devise","1.1.3"gem"omniauth"#BundleMongoidgemsgem"mongoid","2.0.0.beta.19"gem"bson_ext"#Ass
尝试在全新安装(fedora)上使用RVM启动并运行Ruby1.9.1。执行rvminstall1.9.1后,rubygems错误日志显示找不到zlibnosuchfiletoload--zlib(LoadError)但是zlib运行时和开发库都已安装并且是最新的。我现在有点被这个难住了。 最佳答案 使用rvm安装zlibhttps://rvm.io/packages/zlib/rvmpackageinstallzlibrvmremove1.9.1rvminstall1.9.1-C--with-zlib-dir=$rvm_path/
我正在执行以下脚本:geminstallrdoc--no-documentgeminstallbundlebundle输出:+geminstallrdoc--no-documentSuccessfullyinstalledrdoc-6.1.11geminstalled+geminstallbundleSuccessfullyinstalledbundle-0.0.1Parsingdocumentationforbundle-0.0.1Doneinstallingdocumentationforbundleafter2seconds1geminstalled1geminstalled+b
我做了一个bundleshow并获取gem目录的完整路径。不幸的是,我使用rm-rgem_path删除了目录.然后我的Rails应用程序不再工作了。如果我尝试启动服务器或启动Rails控制台,它会输出以下错误::uninitializedconstantMyAPP::Application::Gem(NameError)我应该怎么做才能取回它?我试过了bundleinstall或bundleupdate希望强制bundle搜索gem并将其安装回去,但没有用。我也试过删除Gemfile.lock然后运行bundleinstall.没有任何改变,同样的错误。有问题的gem是Actast
我尝试在我的OSXMountainLion上安装cocoapods(http://cocoapods.org/)。moshe-mbp:~moshem$geminstallcocoapodsERROR:Couldnotfindavalidgem'cocoapods'(>=0),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_connectreturned=1errno=0state=SSLv3readserverkeyexchangeB:badecpoint(https://rubygems.org/latest_s
我的项目需要debugger-linecache1.0.1版,但在尝试安装时遇到以下错误。trunk☺geminstalldebugger-linecache-v'1.0.1'Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingdebugger-linecache:ERROR:Failedtobuildgemnativeextension./Users/jordanscales/.rvm/rubies/ruby-1.9.3-p194/bin/rubyextconf.rbcheckingforvm_cor