捆绑安装不工作; mini_racer无法找到v8

时间:2017-07-31 20:15:39

标签: rubygems bundler

我遇到捆绑安装运行问题。似乎mini_racer在我的系统上找不到v8。我不知道该怎么做。我已多次卸载并重新安装。这是输出。

    /Users/gregg/.rvm/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)

    /Users/gregg/.rvm/rubies/ruby-2.1.4/bin/ruby extconf.rb
checking for main() in -lpthread... yes
checking for main() in -lobjc... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling mini_racer_extension.cc
clang: warning: argument unused during compilation: '-rdynamic'
mini_racer_extension.cc:4:10: fatal error: 'include/v8.h' file not found
#include <include/v8.h>
         ^
1 error generated.
make: *** [mini_racer_extension.o] Error 1

make failed, exit code 2

1 个答案:

答案 0 :(得分:-2)

将此行添加到您的应用程序的Gemfile:

gem 'mini_racer'

然后执行:

$ bundle install

或者自行安装:

$ gem install mini_racer

然后尝试:

 $ bundle update