Please install libyaml and reinstall your ruby

后端 未结 3 1871
遥遥无期
遥遥无期 2021-01-04 14:06

libyaml warning doesn\'t go away, even if you install libyaml

gem install bundler
/home/ec2-user/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/yaml.rb:56:in `&l         


        
相关标签:
3条回答
  • 2021-01-04 14:55

    If using homebrew, a temporary fix that worked for me was to run:

    brew unlink libyaml && brew link libyaml
    

    plus you may also need to run:

    brew unlink openssl && brew link --force openssl
    

    See this issue thread for more details: https://github.com/wayneeseguin/rvm/issues/2689

    0 讨论(0)
  • 2021-01-04 14:59

    First remove any previous docs of yaml by

    cd .rvm/src
    sudo rm -rf yaml*
    

    Then you can do rest of the install by -

    rvm pkg install libyaml

    P.S You will need to reinstall ruby after this.


    UPDATE: If rvm pkg seems to be deprecated. You can compile a source on your own. All you gotta do is download the latest version of libyaml from http://pyyaml.org/download/libyaml/

    tar zxf yaml-0.1.4.tar.gz
    cd yaml-0.1.4
    ./configure
    make
    make install
    


    UPDATE2: BTW, you could still use rvm pkg and/or when reinstalling ruby make sure to enbale autolibs by \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable

    0 讨论(0)
  • 2021-01-04 15:05

    A friend of mine had a similar problem on his mac.

    brew install libyaml

    ended up working for us and we were able to avoid a reinstall of ruby.

    0 讨论(0)
提交回复
热议问题