2

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

で走っruby 1.9.3p327rails 3.2.12いますOS X 10.8.2

私はすでにインストールlibyaml 0.1.4していますrvm pkg install libyaml

もう本当にどうしたらいいのかわからない!

4

3 に答える 3

3
apt-get install libyaml-dev

Debian 7ベースのシステムで実行している私の場合、修正を行いました(おそらくUbuntuでも同じです)

于 2014-02-03T18:05:13.613 に答える
2

libyaml をインストールする

port install libyaml +universal
于 2013-02-20T22:18:05.043 に答える