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

后端 未结 30 3468
悲哀的现实
悲哀的现实 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:49

    On CentOS 6.3 none of the above worked. However installing libyaml from source before installing ruby resolved the problem.

    $ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
    $ tar xzvf yaml-0.1.4.tar.gz
    $ cd yaml-0.1.4
    $ ./configure --prefix=/usr/local
    $ make
    $ sudo make install
    

    and then

    rvm install 1.9.3
    gem install rails
    

提交回复
热议问题