gpt4 book ai didi

ruby-on-rails - gem 安装心理错误

转载 作者:行者123 更新时间:2023-12-02 15:37:21 25 4
gpt4 key购买 nike

我正在尝试捆绑安装一个 Rails 项目,但我被卡住了...当我尝试运行 gem install psych 时,我得到的是:

Building native extensions.  This could take a while...
ERROR: Error installing psych:
ERROR: Failed to build gem native extension.

/Users/gibatronic/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
checking for yaml.h... no
yaml.h is missing. Try 'port install libyaml +universal' or 'yum install libyaml-devel'
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/gibatronic/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
--with-libyaml-dir
--without-libyaml-dir
--with-libyaml-include
--without-libyaml-include=${libyaml-dir}/include
--with-libyaml-lib
--without-libyaml-lib=${libyaml-dir}/lib


Gem files will remain installed in /Users/gibatronic/.rvm/gems/ruby-1.9.3-p327/gems/psych-1.3.4 for inspection.
Results logged to /Users/gibatronic/.rvm/gems/ruby-1.9.3-p327/gems/psych-1.3.4/ext/psych/gem_make.out

我在 OS X 10.8.2 上运行 ruby 1.9.3p327rails 3.2.12

我已经使用 rvm pkg install libyaml 安装了 libyaml 0.1.4

我真的不知道该怎么办了!

最佳答案

安装libyaml

port install libyaml +universal

关于ruby-on-rails - gem 安装心理错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14986663/

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