jjzjj

stack_chk_fail

全部标签

ruby-on-rails - 错误 : failed to build gem native extension when installing rails on mac mountian lion os

我最近更新到MountainLion并重新安装了Ruby,但是当我尝试运行测试Rails应用程序时,我收到一条错误消息,指出“我的系统当前未安装Rails”。我按照它说的做,输入sudogeminstallrails并得到:clearedfaster_requirecachesduetonewgeminstall...Successfullyinstalledrails-3.2.71geminstalledInstallingridocumentationforrails-3.2.7...InstallingRDocdocumentationforrails-3.2.7...但是当我检

ruby-on-rails - macOS, rails : "Failed to build gem native extension"

我无法尝试在我的Mac上安装Rails。我有OSX10.6.8,我已经确认我有Ruby,版本1.8.7我运行了sudogemupdate和sudogemupdate--system来获取最新版本的软件。但是,当我运行sudogeminstallrails时,出现了这个错误:ERROR:Errorinstallingrails:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/rubyextconf.rbmkmf.rbcan'tfindh

ruby - 如何增加 ruby​​ 应用程序的堆栈大小。递归应用获取 : Stack level too deep (SystemStackError)

在stackoverflow.com上发布一个堆栈溢出问题,多么有趣:-)我正在运行一些递归Ruby代码,我得到:“堆栈级别太深(SystemStackError)”(我很确定代码有效,我没有陷入无限递归的死亡螺旋,但这不是重点)是否可以更改我的Ruby应用程序允许的堆栈深度/大小?如果这是Ruby中的限制,我不太明白,因为错误显示“堆栈级别”,这给我的印象是Ruby以某种方式计算堆栈的“级别”,或者它只是意味着堆栈满了。我已经尝试在Vista和Ubuntu下运行这个程序,结果相同。在Ubuntu下,我尝试使用“ulimit-s”将堆栈大小从8192更改为16000,但这并没有改变任何

ruby-on-rails - 使用 'gem pq' 安装 PostgreSQL gem 失败并出现错误 : Failed to build gem native extension

我正在学习RubyonRails并尝试开发应用程序。在我的应用程序中,我试图在开发模式下使用默认的SQLite数据库,在生产模式下使用PostgreSQL。但是我在尝试使用安装pggem时遇到以下错误:geminstallpgBuilding native extensions.  This could take a while...ERROR:  Error installing pg:        ERROR: Failed to build gem native extension.     /home/tusharkhatiwada/.rvm/rubies/ruby-2.0.

【已解决】浏览器无法访问页面,ERR_TUNNEL_CONNECTION_FAILED

【已解决】浏览器无法访问页面,ERR_TUNNEL_CONNECTION_FAILED问题描述无法访问浏览器页面,显示内容如下:一种可行的解决办法打开其他浏览器,确定是否为MicrosoftEdge的问题。如果其他浏览器可以正常访问:可能是搜索引擎或者注册表的问题,可以尝试更换搜索引擎或者还原设置。更换搜索引擎:点击右上角…>下拉菜单,选择设置>找到“搜索”栏>选择地址栏中使用的搜索引擎还原设置:点击右上角…>下拉菜单,选择设置>重置设置>点击将设置还原为其默认值>点击弹出框的重置如果其他浏览器也无法正常访问:或者提示已由组织接管(可在右上角…下拉列表找到由你的组织管理)可能是Edge的105

ruby - 安装 RVM : "Requirements installation failed with status: 1."

这是我在命令提示符之前看到的最后一件事:Searchingforbinaryrubies,thismighttakesometime.Foundremotefilehttps://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2Checkingrequirementsforosx.AbouttoinstallHomebrew,press`Enter`fordefaultinstallationin`/usr/local`,typenewpathifyouwishcustomHomebrewinstallation(thepathnee

ruby-on-rails - gem 更新后 : test fail with "Asset was not declared to be precompiled in production"

由于我更新了几个gem,所以所有测试都失败并出现错误:ActionView::Template::Error:Assetwasnotdeclaredtobeprecompiledinproduction.AddRails.application.config.assets.precompile+=%w(favicons/manifest.json.erb)toconfig/initializers/assets.rbandrestartyourserverapp/views/layouts/_faviconsheader.html.erb:14:in_app_views_layouts

ruby-on-rails - 错误 : Failed to build gem native extension on Mavericks

我正在尝试在OSX10.9上的Rails项目中运行bundle。到达pggem时失败并出现此错误:Gem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./Users/kyledecot/.rvm/rubies/ruby-2.0.0-p247/bin/rubyextconf.rbcheckingforpg_config...noNopg_config...tryinganyway.Ifbuildingfails,pleasetryagainwith--with-pg-config=/path/t

ruby-on-rails - 安装 nokogiri : Failed to build gem native extension & libiconv is missing (OSX) 时出错

我尝试克隆thisrepo并运行bundleinstall。捆绑过程失败并抛出此错误:...Installingnokogiri1.6.2.1withnativeextensionsBuildingnokogiriusingpackagedlibraries.Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./Users/zulhilmizainudin/.rvm/rubies/ruby-2.2.0/bin/ruby-r./siteconf20151130-43880-pntnc6.rbextconf.rbBuildi

ruby - 如何从 SystemStackError : stack level too deep? 获取回溯

在编写ruby​​代码时,我常常很难调试无限递归。有没有办法从SystemStackError中获取回溯?找出无限循环发生的确切位置?例子给定一些方法foo,bar和baz在循环中互相调用:deffoobarenddefbarbazenddefbazfooendfoo当我运行这段代码时,我只收到消息test.rb:6:stackleveltoodeep(SystemStackError).至少获取堆栈的最后100行会很有用,因此我可以立即看出这是foo之间的循环。,bar和baz,像这样:test.rb:6:stackleveltoodeep(SystemStackError)test