2014-04-07 16 views
7

avevo bisogno di capibara-webkit installato, che aveva bisogno delle librerie Qt, così sono andato e installato utilizzando homebrew con i seguenti comandiRails: Psych, aggiornamento libyaml da 0.1.4

brew update 
brew install qt 
brew linkapps 

Ho poi in bundle e tutto era bene con il capybara-webkit. Tuttavia, la mia guardia sta lanciando il seguente avvertimento.

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 

Sembrava abbastanza semplice. Tuttavia, anche dopo un'installazione psicologica di successo con l'opzione 'bundled-libyaml' sto ancora vedendo questo avviso su libyaml obsoleto. Inoltre, quando controllo la versione di libyaml associata a psyche (ruby -rpsych -e 'p Psych.libyaml_version') è ancora 1.4.

Qualche idea?

risposta

6

prova a:

brew upgrade libyaml 

funziona per me.

+4

Assicurarsi di eseguire 'update birra' per ottenere l'accesso alla versione più recente di libyaml – Karl

0
brew update libyaml 

non ha funzionato per me, ma

rvm get stable 

fatto.

+0

Non ha funzionato per me. – ardochhigh

0

Su Ubuntu questo ha funzionato per me. Installa di nuovo tutti i rubini quindi potrebbe richiedere del tempo.

rvm pkg install libyaml 
rvm reinstall all --force 

corsa Esempio

rvm pkg install libyaml 

Beware, 'rvm pkg ...' is deprecated, read about the new autolibs feature: 'rvm help autolibs'. 

Checking requirements for ubuntu. 
Requirements installation successful. 
Fetching yaml-0.1.6.tar.gz to /home/assay/.rvm/archives 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
          Dload Upload Total Spent Left Speed 
100 491k 100 491k 0  0 142k  0 0:00:03 0:00:03 --:--:-- 481k 
No checksum for downloaded archive, recording checksum in user configuration. 
Extracting yaml to /home/assay/.rvm/src/yaml-0.1.6... 
Prepare yaml in /home/assay/.rvm/src/yaml-0.1.6.. 
Configuring yaml in /home/assay/.rvm/src/yaml-0.1.6.......... 
Compiling yaml in /home/assay/.rvm/src/yaml-0.1.6................... 
Installing yaml to /home/assay/.rvm/usr....... 

Please note that it's required to reinstall all rubies: 

    rvm reinstall all --force 
+0

Siamo spiacenti. Questo non ha funzionato per me. – Virtual

Problemi correlati