Open vdias38 opened 2 years ago
$ gem -v
3.1.4
$ ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
Checking for `rbenv' in PATH: /usr/local/bin/rbenv
Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: /usr/local/bin/rbenv-install (ruby-build 20211227)
Counting installed Ruby versions: 1 versions
Checking RubyGems settings: OK
Auditing installed plugins: OK
$ gem install --user-install bundler jekyll
WARNING: You don't have /Users/vdias38/.gem/ruby/2.7.0/bin in your PATH,
gem executables will not run.
Successfully installed bundler-2.3.5
Parsing documentation for bundler-2.3.5
Installing ri documentation for bundler-2.3.5
Done installing documentation for bundler after 0 seconds
Successfully installed jekyll-4.2.1
Parsing documentation for jekyll-4.2.1
Installing ri documentation for jekyll-4.2.1
Done installing documentation for jekyll after 2 seconds
2 gems installed
$ echo 'export PATH="$HOME/.gem/ruby/2.7.0/bin:$PATH"' >> ~/.zshrc
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.4
- RUBY VERSION: 2.7.2 (2020-10-01 patchlevel 137) [x86_64-darwin19]
- INSTALLATION DIRECTORY: /Users/vdias38/.gem
-...
$ source ~/.zshrc
$ jekyll new infomobi.app
Traceback (most recent call last):
21: from /Users/vdias38/.gem/ruby/2.7.0/bin/jekyll:23:in `<main>'
20: from /Users/vdias38/.gem/ruby/2.7.0/bin/jekyll:23:in `load'
...
1: from /Users/vdias38/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/Users/vdias38/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- 2.7/ffi_c (LoadError)
22: from /Users/vdias38/.gem/ruby/2.7.0/bin/jekyll:23:in `<main>'
21: from /Users/vdias38/.gem/ruby/2.7.0/bin/jekyll:23:in `load'
...
2: from /Users/vdias38/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/lib/ffi.rb:6:in `rescue in <top (required)>'
1: from /Users/vdias38/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/Users/vdias38/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': dlopen(/Users/vdias38/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/lib/ffi_c.bundle, 9): Library not loaded: /usr/local/opt/libffi/lib/libffi.7.dylib (LoadError)
Referenced from: /Users/vdias38/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/lib/ffi_c.bundle
Reason: image not found - /Users/vdias38/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/lib/ffi_c.bundle
vdias38@Victors-MacBook-Pro ~/Dvpt/WEBSITES $
https://blog.carsoncheng.ca/2019/03/homebrew-blew-up-from-libffi-ruby-or.html https://github.com/platformio/platform-lattice_ice40/issues/7
$ ls /usr/local/opt/libffi/lib/
libffi.8.dylib libffi.a libffi.dylib pkgconfig/
$ brew list --versions libffi
libffi 3.4.2
$ brew info libffi
libffi: stable 3.4.2 (bottled), HEAD [keg-only]
Portable Foreign Function Interface library
https://sourceware.org/libffi/
/usr/local/Cellar/libffi/3.4.2 (17 files, 599.8KB)
Poured from bottle on 2022-01-21 at 06:58:54
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libffi.rb
License: MIT
==> Options
--HEAD
Install HEAD version
==> Caveats
libffi is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
For compilers to find libffi you may need to set:
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export CPPFLAGS="-I/usr/local/opt/libffi/include"
For pkg-config to find libffi you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
...
$
Liquid Exception: Could not locate the included file 'html.html' in any of ["/Users/vdias38/Dvpt/WEBSITES/nfmb-site/_includes", "/Users/vdias38/Dvpt/WEBSITES/evie-jekyll/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in /_layouts/default.html
Version of gem installed