草庐IT

ACTION_INSTALL_TTS_DATA

全部标签

ruby - 运行 make install 时出现 RVM 错误。安装 power_assert gem 时出错

我正在尝试在我的arch机器上安装ruby​​2.2.2。当我运行rvminstall时,出现以下错误。试了几次。甚至删除了rvm并重新安装。还是一样的问题。○rvminstall2.2.2Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:arch/libc-2.21/x86_64/ruby-2.2.2.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Checkingr

ruby - jruby -S bundle install jruby : No such file or directory -- bundle (LoadError)

我有我的ruby​​onrails应用程序,我已经在我的WindowsXP中安装了jruby-1.7.4。当我尝试运行jruby-Sbundleinstall时,它给我一个错误jruby:Nosuchfileordirectory--bundle(LoadError)我真的很纠结这个错误..请帮助.. 最佳答案 Bundler可能没有安装。您可以检查jruby-Sgemlist的输出来验证,然后安装它:jruby-Sgeminstallbundler一般来说,LoadError意味着您缺少gem依赖项。

ruby-on-rails - 为什么使用 before_action 没有双重渲染?

我想知道为什么在before_action中有redirect_to或render时没有双重渲染。考虑这个例子:classSomeController我看到before_action如果不能重定向就没用了,但它是如何制作的?如果我评论before_action它会抛出异常。before_action是如何实现的而不导致双重渲染? 最佳答案 参见RailsGuideoncontrollers:Ifa"before"filterrendersorredirects,theactionwillnotrun.Ifthereareadditi

ruby - 为什么 `rvm install ruby-2.1.0` 会安装 preview1?

我刚刚尝试安装Ruby2.1,却安装了2.1Preview1。这对我来说似乎很疯狂。2.1出来了。当我说rvminstallruby​​-2.1.0时,为什么RVM会认为我真的的意思是rvminstallruby​​-2.1.0-预览1?为什么它不匹配我指定的精确版本,而不是以该子字符串开头的版本? 最佳答案 愚蠢的澄清问题(如果我有足够的声誉,我会把它作为评论发布),但是你最近更新了RVM了吗?rvmgetstable(或者如果你想生活在边缘,rvmgethead)我预计会更新已发布的ruby​​版本的内部列表。

ruby-on-rails - sudo gem install pg 不起作用

我正在尝试让Rails与PostgreSQL一起工作。显然,我一路上需要做的一件事是sudogeminstallpg。当我这样做时,我得到了这个:jason@buster:~/projects$sudogeminstallpgBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Failedtobuildgemnativeextension./usr/bin/ruby1.8extconf.rbextconf.rb:2:in`require':nosuchfiletoload--mkmf(

ruby-on-rails - 没有路由匹配 { :controller= >"stocks", :action= >"create"} RSpec Rails 3

我不明白为什么我在运行RSpec时收到此错误消息:Failure/Error:post:createActionController::RoutingError:Noroutematches{:controller=>"stocks",:action=>"create"}controllerstocks存在,actioncreate存在,它应该使用的路由是这样的:match'stocks/:user_id'=>'stocks#create',:via=>:post,:as=>:query路由文件:FruthScreener::Application.routes.drawdoroot:

ruby-on-rails - rails : Add Custom action to resource

我有一个故事Controller,我已将其映射为资源。我向stories_controller添加了2个新方法,'top'和'latest'。但是当我尝试访问example.com/stories/top时,出现“没有ID=top的故事”错误。如何更改路由以识别这些URL? 最佳答案 在Rails2.x中尝试:map.resources:stories,:collection=>{:top=>:get,:latest=>:get}在Rails3.x中:resources:storiesdocollectiondoget'top'ge

ruby-on-rails - 运行 autoconf 时 rvm install 1.9.2 失败?

当我运行时rvminstall1.9.2我在尝试运行autoconf时遇到错误。这是堆栈跟踪:kenmare:ruby-1.9.2-p0lee$rvminstall1.9.2-p0/Users/lee/.rvm/rubies/ruby-1.9.2-p0,thismaytakeawhiledependingonyourcpu(s)...ruby-1.9.2-p0-#fetchingruby-1.9.2-p0-#extractedto/Users/lee/.rvm/src/ruby-1.9.2-p0(alreadyextracted)RunningautoconfErrorrunning'

ruby - 请安装 postgresql 适配器 : `gem install activerecord-postgresql-adapter`

这个问题在这里已经有了答案:关闭11年前。PossibleDuplicate:HowtohandleRubyonRailserror:“Pleaseinstallthepostgresqladapter:`geminstallactiverecord-postgresql-adapter'”我正在尝试让Redmine与postgres一起工作。在我的日志中,我不断看到。Pleaseinstallthepostgresqladapter:`geminstallactiverecord-postgresql-adapter`在谷歌搜索之后,每个人都说你需要做geminstallpg。但是当

ruby-on-rails - gem install mysql2 v '0.3.11' 无法在 Yosemite 上运行

在ruby​​版本1.9.3(rvm)上执行mysql2版本0.3.11的捆绑安装或直接gem安装时,我收到以下错误。但是当我安装最新版本0.3.16时它可以工作。我还包含了我的gcc版本以供引用。Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./Users/ginocarlocortez/.rvm/rubies/ruby-1.9.3-p547/bin/rubyextconf.rbcheckingforrb_thread_blocking_region()...yescheckingforrb_wait_for_si