我刚从acts_as_flying_saucer切换到wicked_pdf,因为我总是遇到这个FFI的问题。
现在我试图在我的应用程序中运行这个wicked_pdf gem,但如果我运行任何PDF生成方法,我会收到以下错误:
Failed to execute: "/projectvendor/bundle/ruby/2.0.0/bin/wkhtmltopdf" -q
“文件:////var/folders/zq/jlkc33yn1v13vr5wmt45m9bm0000gn/T/wicked_pdf20131229-1025-1w96afy.html” “/var/folders/zq/jlkc33yn1v13vr5wmt45m9bm0000gn/T/wicked_pdf_generated_file20131229-1025-1l8wads.pdf” 错误:无法生成PDF!命令错误: /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
地图!”从 /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 来自materialize' 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
的规格 /Users/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in 来自specs_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/ben/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in 来自requested_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
需要'
当我在其他主题中阅读时,我尝试了以下内容:
gem install libv8 -v 3.16.14.3 - --with-system-v8
成功,但仍然得到同样的错误。
宝石哪个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
似乎安装正确?但是没有用。
有谁知道怎么解决这个问题?
答案 0 :(得分:0)
在我的情况下,它正在降级版本“3.16.14.2”。 它的工作正常。