运行jekyll时出错:找不到符号:_ffi_type_double(LoadError)

时间:2019-10-05 10:57:21

标签: ruby rubygems jekyll ffi

在运行任何jekyll命令(例如jekyll --version)后安装jekyll(在安装了Xcode的macOS Mojave 10.14.6上,在Ruby v2.6.5上的Ruby v2.6.5上)之后,我收到错误消息:Symbol not found: _ffi_type_double (LoadError)

在StackOverflow上发现了一些与ffi相关的内容,这些内容对我没有帮助。因此,我目前无法使用jekyll ...对此有何想法?

这是回溯:

MacBookPro-II:~ ms1$ jekyll
Traceback (most recent call last):
23: from /Users/ms1/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `<main>'
22: from /Users/ms1/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `eval'
21: from /Users/ms1/.rvm/gems/ruby-2.6.5/bin/jekyll:23:in `<main>'
20: from /Users/ms1/.rvm/gems/ruby-2.6.5/bin/jekyll:23:in `load'
19: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/jekyll-4.0.0/exe/jekyll:8:in `<top (required)>'
18: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
17: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
16: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/jekyll-4.0.0/lib/jekyll.rb:206:in `<top (required)>'
15: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
14: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
13: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/jekyll-sass-converter-2.0.1/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
12: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
11: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
10: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/jekyll-sass-converter-2.0.1/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
 9: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
 8: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
 7: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/sassc-2.2.1/lib/sassc.rb:31:in `<top (required)>'
 6: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/sassc-2.2.1/lib/sassc.rb:31:in `require_relative'
 5: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/sassc-2.2.1/lib/sassc/native.rb:3:in `<top (required)>'
 4: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
 3: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
 2: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/ffi-1.11.1/lib/ffi.rb:4:in `<top (required)>'
 1: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- 2.6/ffi_c (LoadError)
24: from /Users/ms1/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `<main>'
23: from /Users/ms1/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `eval'
22: from /Users/ms1/.rvm/gems/ruby-2.6.5/bin/jekyll:23:in `<main>'
21: from /Users/ms1/.rvm/gems/ruby-2.6.5/bin/jekyll:23:in `load'
20: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/jekyll-4.0.0/exe/jekyll:8:in `<top (required)>'
19: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
18: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
17: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/jekyll-4.0.0/lib/jekyll.rb:206:in `<top (required)>'
16: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
15: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
14: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/jekyll-sass-converter-2.0.1/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
13: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
12: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
11: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/jekyll-sass-converter-2.0.1/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
10: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
 9: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
 8: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/sassc-2.2.1/lib/sassc.rb:31:in `<top (required)>'
 7: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/sassc-2.2.1/lib/sassc.rb:31:in `require_relative'
 6: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/sassc-2.2.1/lib/sassc/native.rb:3:in `<top (required)>'
 5: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
 4: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
 3: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/ffi-1.11.1/lib/ffi.rb:3:in `<top (required)>'
 2: from /Users/ms1/.rvm/gems/ruby-2.6.5/gems/ffi-1.11.1/lib/ffi.rb:6:in `rescue in <top (required)>'
 1: from /Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in`require'/Users/ms1/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require':dlopen(/Users/ms1/.rvm/gems/ruby-2.6.5/gems/ffi-1.11.1/lib/ffi_c.bundle, 9): Symbol not found: _ffi_type_double (LoadError)
Referenced from: /Users/ms1/.rvm/gems/ruby-2.6.5/gems/ffi-1.11.1/lib/ffi_c.bundle
Expected in: flat namespace
in /Users/ms1/.rvm/gems/ruby-2.6.5/gems/ffi-1.11.1/lib/ffi_c.bundle - /Users/ms1/.rvm/gems/ruby-2.6.5/gems/ffi-1.11.1/lib/ffi_c.bundle
MacBookPro-II:~ ms1$

1 个答案:

答案 0 :(得分:0)

再次安装Mac OS X是唯一的解决方案。现在Jekyll再次运行...