gpt4 book ai didi

ruby - 在 mac osX (Lion) 上为 ruby​​ 安装 libyaml

转载 作者:数据小太阳 更新时间:2023-10-29 07:10:11 30 4
gpt4 key购买 nike

我收到此错误消息:

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

我试过输入这个命令:rvm pkg install libyaml

我收到此错误消息:

"Fetching yaml-0.1.4.tar.gz to /Users/luke/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/luke/.rvm/src
Error running 'tar xmzf /Users/luke/.rvm/archives/yaml-0.1.4.tar.gz -C
/Users/luke/.rvm/src ',
please read /Users/luke/.rvm/log/yaml/extract.log
Configuring yaml in /Users/luke/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/luke/.rvm/usr" ',
please read /Users/luke/.rvm/log/yaml/configure.log
Compiling yaml in /Users/luke/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/luke/.rvm/log/yaml/make.log

Database file /Users/luke/.rvm/config/packages does not exist."

有谁知道我做错了什么?谢谢!

最佳答案

当前版本 [是] LibYAML:0.1.4 (2011-05-30) [2012 年我回答这个问题时]。

下载源码包:http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz

要构建和安装 LibYAML,请运行

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

    或者只是:

    $brew 安装 libyaml

    接下来,$brew 安装 ruby​​

    祝你好运。

  • 关于ruby - 在 mac osX (Lion) 上为 ruby​​ 安装 libyaml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10392495/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com