how to solve “ruby installation is missing psych” error?

后端 未结 30 3431
悲哀的现实
悲哀的现实 2020-11-28 17:54

I used rvm to install ruby 1.9.3. even though it was successfully installed, it complained about libyaml. and now every time i wanna install a gem (say rails) this warning s

30条回答
  •  情歌与酒
    2020-11-28 18:30

    In my case

    rvm pkg install libyaml
    

    and

    rvm reinstall ruby-1.9.3-p125
    

    solved the problem.

    For people using Ubuntu, make sure that libtool is installed prior to the steps above:

    sudo apt-get install libtool
    

    For macOS users (with homebrew):

    rm -rf /usr/local/lib/ruby/gems/ && brew reinstall ruby
    

提交回复
热议问题