Hi
I tried to install Jekyll by following the manual (Jekyll on macOS | Jekyll • Simple, blog-aware, static sites), but I failed.
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
macOS Big Sur 11.2.3
gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.2.3
- RUBY VERSION: 3.0.0 (2020-12-25 patchlevel 0) [x86_64-darwin20]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/3.0.0
- USER INSTALLATION DIRECTORY: /Users/zhaofei/.gem/ruby/3.0.0
- RUBY EXECUTABLE: /usr/local/opt/ruby/bin/ruby
- GIT EXECUTABLE: /usr/local/bin/git
- EXECUTABLE DIRECTORY: /usr/local/lib/ruby/gems/3.0.0/bin
- SPEC CACHE DIRECTORY: /Users/zhaofei/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /usr/local/Cellar/ruby/3.0.0_1/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-20
- GEM PATHS:
- /usr/local/lib/ruby/gems/3.0.0
- /Users/zhaofei/.gem/ruby/3.0.0
- /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/gems/3.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/opt/ruby/bin
- /usr/local/lib/ruby/gems/3.0.0/bin
- /Applications/calibre.app/Contents/MacOS
- /usr/local/sbin
- /usr/local/gfortran/bin
- /usr/local/opt/grep/libexec/gnubin
- /usr/local/opt/coreutils/libexec/gnubin
- /Users/zhaofei/.rbenv/shims
- /usr/local/opt/ruby/bin
- /usr/local/lib/ruby/gems/3.0.0/bin
- /Applications/calibre.app/Contents/MacOS
- /usr/local/sbin
- /usr/local/gfortran/bin
- /usr/local/opt/grep/libexec/gnubin
- /usr/local/opt/coreutils/libexec/gnubin
- /Applications/calibre.app/Contents/MacOS
- /usr/local/sbin
- /usr/local/gfortran/bin
- /usr/local/opt/grep/libexec/gnubin
- /usr/local/opt/coreutils/libexec/gnubin
- /Applications/calibre.app/Contents/MacOS
- /usr/local/sbin
- /Users/zhaofei/miniconda3/bin
- /Users/zhaofei/miniconda3/condabin
- /usr/local/gfortran/bin
- /usr/local/opt/grep/libexec/gnubin
- /usr/local/opt/coreutils/libexec/gnubin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Library/TeX/texbin
- /opt/X11/bin
jekyll --version
<internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': dlopen(/usr/local/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 9): Library not loaded: @rpath/libffi.7.dylib (LoadError)
Referenced from: /usr/local/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi_c.bundle
Reason: image not found - /usr/local/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi_c.bundle
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi.rb:6:in `rescue in <top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi.rb:3:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/sassc-2.4.0/lib/sassc/native.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/sassc-2.4.0/lib/sassc.rb:31:in `require_relative'
from /usr/local/lib/ruby/gems/3.0.0/gems/sassc-2.4.0/lib/sassc.rb:31:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-sass-converter-2.1.0/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-sass-converter-2.1.0/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/zhaofei/.gem/ruby/3.0.0/gems/jekyll-4.2.0/lib/jekyll.rb:195:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/zhaofei/.gem/ruby/3.0.0/gems/jekyll-4.2.0/exe/jekyll:8:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/bin/jekyll:23:in `load'
from /usr/local/lib/ruby/gems/3.0.0/bin/jekyll:23:in `<main>'
<internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- 3.0/ffi_c (LoadError)
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/lib/ffi.rb:4:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/sassc-2.4.0/lib/sassc/native.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/sassc-2.4.0/lib/sassc.rb:31:in `require_relative'
from /usr/local/lib/ruby/gems/3.0.0/gems/sassc-2.4.0/lib/sassc.rb:31:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-sass-converter-2.1.0/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-sass-converter-2.1.0/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/zhaofei/.gem/ruby/3.0.0/gems/jekyll-4.2.0/lib/jekyll.rb:195:in `<top (required)>'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/zhaofei/.gem/ruby/3.0.0/gems/jekyll-4.2.0/exe/jekyll:8:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/bin/jekyll:23:in `load'
from /usr/local/lib/ruby/gems/3.0.0/bin/jekyll:23:in `<main>'
I have tried brew reinstall libffi
, didn’t work.