我有几个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
我想在Windows下使用AptanaStudio进行Rails开发。我目前有不同的开发工具和ide启动并运行(如git/ruby/jdk),我也想安装AptanaStudio,但我不能。下载并运行安装程序后,它会正常启动,在我选择目标目录后,它会开始下载先决条件。我有几个问题:一段时间后,它尝试安装node.js(好吧,我不确定为什么,但随它去吧),有时它安装正常,但有时它只是没有错误地失败,只告诉我aptana不能'安装先决条件。如果偶然安装了node.js,它会尝试安装msysgit(同样,我不知道为什么,因为我已经安装了git并将其添加到PATH)。安装msysgit完成后,我
尝试在全新安装(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
更新到MountainLion后,我尝试安装1.8.7,但出现错误。找不到X11文件,我安装了Xquarkz,但没有任何改变。怎么了?Failtofind[tclConfig.sh,tkConfig.sh]UseMacOSXFrameworks.FindTcl/Tklibraries.Maketcltklib.sowhichisrequiredbyRuby/Tk.clang-I.-I../..-I../../.-I../.././ext/tk-DHAVE_RB_SAFE_LEVEL-DHAVE_RB_HASH_LOOKUP-DHAVE_RB_PROC_NEW-DHAVE_RB_OBJ_
我真正要问的问题是为什么require不采用gem的名称。另外,如果没有,找到需要该死的东西的密咒的最简单方法是什么!?例如,如果我安装了memcache-client,那么我必须使用它来要求它require'rubygems'require'memcache' 最佳答案 我的系统似乎也不知道RubyGems的存在——除非我告诉它。“require”命令被RubyGems覆盖,因此它可以加载gems,但除非您已经需要RubyGems,否则它不知道如何执行此操作。所以如果你自己写,你可以这样做:require'rubygems'req
我在安装jekyll时遇到了一些问题。无法完全弄清楚如何修补缺失的链接。我认为这是对Ruby的更新,但RVM在安装ruby的替代版本时也遇到了问题。这是完整的帖子:$sudogeminstalljekyllERROR:Errorinstallingjekyll:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/rubyextconf.rbmkmf.rbcan'tfindheaderfilesforrubyat/System/Libr
我使用RubyonRailsv4.1.0创建了一个新应用程序。尝试在Windows上启动服务器或控制台时,遇到以下错误:$railsserverBootingWEBrickRails4.1.0applicationstartingindevelopmenton....Exitingc:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:199:in`rescueincreate_default_data_source':Notimezonedatasource