Unable to resolve Ruby error (missing psych)

前端 未结 8 1352
死守一世寂寞
死守一世寂寞 2020-12-16 16:38

Whenever I run something with Ruby on my server, I get the following error:

/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `

        
8条回答
  •  天涯浪人
    2020-12-16 17:14

    The problem could be solved by installing libyaml. Below are the corresponding packages for the most popular distributions:

    • Fedora libyaml
    • Ubuntu and other Debian based libyaml-dev
    • Some other like CentOS libyaml-devel

    and also you should install the following to avoid similar problems in future:

    ruby-devel libxml2 libxml2-devel libxslt libxslt-devel
    

提交回复
热议问题