ruby-on-rails – Rails:Psych,从0.1.4更新libyaml

我需要安装了需要qt库的capybara-webkit,所以我使用以下命令使用homebrew安装它们
brew update
brew install qt
brew linkapps

然后我捆绑了所有与capybara-webkit很好.但是,我的警卫正在抛出以下警告.

You appear to have an outdated version of libyaml (0.1.4) installed on your system.

  Prior to 0.1.6,libyaml is vulnerable to a heap overflow exploit from malicIoUs YAML payloads.


  The easiest thing to do right Now is probably to update Psych to the latest version and enable
  the 'bundled-libyaml' option,which will install a vendored libyaml with the vulnerability patched:

  gem install psych -- --enable-bundled-libyaml

看似简单.然而,即使在使用’bundled-libyaml’选项进行成功的心理安装之后,我仍然看到关于过时的libyaml的警告.此外,当我检查与psyche相关的libyaml版本(ruby -rpsych -e’p Psych.libyaml_version’)时,它仍然是1.4.

有任何想法吗?

解决方法

尝试:
brew upgrade libyaml

适合我.

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...