Installing libyaml for ruby on a mac osX (Lion)

前端 未结 4 1450
野的像风
野的像风 2021-01-01 03:40

I am getting this error message:

\"It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and          


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

    This worked for me:

    • rvm remove 1.9.3
    • download http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    • cp Downloads/yaml-0.1.4.tar.gz .rvm/archives/
    • rvm install 1.9.3
    0 讨论(0)
  • 2021-01-01 04:18

    Try this...

    Open a new terminal window and:

    cd .rvm/src
    sudo rm -rf yaml*
    

    (supply your credentials)

    cd ~
    rvm pkg install libyaml
    
    0 讨论(0)
  • 2021-01-01 04:21

    The current release [was] LibYAML: 0.1.4 (2011-05-30) [in 2012 when I answered this question].

    Download the source package: http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz.

    To build and install LibYAML, run

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

    OR just:

    $brew install libyaml

    Next, $brew install ruby

    Good luck.

0 讨论(0)
  • 2021-01-01 04:23

    Installing ruby with rvm for mac osx, use autolibs to install libyaml and first uninstalling libyaml helps.

    This worked for me:

    brew uninstall libyaml
    rvm autolibs enable
    rvm reinstall ruby-2.1.1
    
    0 讨论(0)
  • 提交回复
    热议问题