我刚刚从acts_as_flying_saucer 切换到wicked_pdf,因为我总是对这个FFI 的东西有问题。
现在我试图让这个 wicked_pdf gem 在我的应用程序中运行,但是如果我运行任何 PDF 生成方法,我会收到以下错误:
Failed to execute: "/projectvendor/bundle/ruby/2.0.0/bin/wkhtmltopdf" -q
“file:////var/folders/zq/jlkc33yn1v13vr5wmt45m9bm0000gn/T/wicked_pdf20131229-1025-1w96afy.html” “/var/folders/zq/jlkc33yn1v13vr5wmt45m9bm0000gn/T/wicked_pdf_generated_file201318122225-1229生成!命令错误:/Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in
block in materialize': Could not find libv8-3.16.14.3 in any of the sources (Bundler::GemNotFound) from /Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in
map! ' 来自 /Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:inmaterialize' from /Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in
specs' 来自 / Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:159:inspecs_for' from /Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in
requested_specs' 来自 /Users/本/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/environment.rb:18:inrequested_specs' from /Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in
来自 /Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:120:in 的设置'setup' from /Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in
来自 /System /Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require'
当我在其他线程中阅读时,我尝试了以下事情:
gem install libv8 -v 3.16.14.3 -- --with-system-v8
成功了,但仍然得到同样的错误。
gem 其中 libv8
/Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3-x86_64-darwin-12/lib/libv8.rb
似乎安装正确?但没有奏效。
有谁知道如何解决这个问题?