# Can't install jekyll macOS Big Sur 11.2.3 (Library not loaded: @rpath/libffi.7.dylib (LoadError))

**URL:** <https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845>\
**Category:** Help\
**Created:** [April 4, 2021, 3:12pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845 "2021-04-04T15:12:02Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![fei0810](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/fei0810/32/3395_2.png) [@fei0810](https://talk.jekyllrb.com/u/fei0810)\
**Post date:** [April 4, 2021, 3:12pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/1 "2021-04-04T15:12:02Z")

</div>

Hi  
I tried to install Jekyll by following the manual ([Jekyll on macOS | Jekyll • Simple, blog-aware, static sites](https://jekyllrb.com/docs/installation/macos/)), but I failed.

ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86\_64-darwin20]

macOS Big Sur 11.2.3

```auto
 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

```auto
<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.

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [April 4, 2021, 4:26pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/2 "2021-04-04T16:26:27Z")

</div>

I see two errors on packages.

- libffi
- ffi\_c

Those are dylib and .c files so you can try installing dev libraries that support Ruby.

```auto
xcode-select --install

```

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [April 4, 2021, 4:31pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/3 "2021-04-04T16:31:22Z")

</div>

Or see if you can install as gems instead if with Homebrew.

```auto
gem install ffi --user-install
# or
sudo gem install ffi

```

From [ffi repo docs - Install](https://github.com/ffi/ffi#installation)

That is backed up by [this](https://stackoverflow.com/questions/7964778/no-such-file-to-load-ffi-c-loaderror)  
With the same error as yours and same solution as mine. You can try uninstall ffi then install ffi

---

<div class="post-metadata">

**Author:** ![fei0810](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/fei0810/32/3395_2.png) [@fei0810](https://talk.jekyllrb.com/u/fei0810)\
**Post date:** [April 4, 2021, 5:18pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/4 "2021-04-04T17:18:20Z")

</div>

Thanks, Michael

I try `gem install ffi --user-install ` but doesn’t work, and `xcode-select --install` show xcode-select: error: command line tools are already installed

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [April 4, 2021, 5:53pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/5 "2021-04-04T17:53:54Z")

</div>

Hmm I don’t know.

I saw you originally did a `brew reinstall` variaion of this,

```auto
brew install libffi

```

And that solved someone’s issue here

> <https://github.com/platformio/platform-lattice_ice40/issues/7>
>
> macOS
> yosys -p "synth\_ice40 -blif .pioenvs/icestick/hardware.blif" -q src/counter.v
> dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
> Referenced from: /Users/ikravets/.platformio/packages/toolchain-icestorm/bin/yosys
> Reason: image not found

A comment there does uninstall and install and sets shell config vars [here](https://github.com/platformio/platform-lattice_ice40/issues/7#issuecomment-473468454)

And another does

```auto
brew install libffi
brew link libffi

```

---

<div class="post-metadata">

**Author:** ![roadie](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/roadie/32/2431_2.png) [@roadie](https://talk.jekyllrb.com/u/roadie)\
**Post date:** [April 4, 2021, 6:37pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/6 "2021-04-04T18:37:50Z")

</div>

fwiw - I am on bigSur 11.2.3 and libffi is not symlinked from brew:

```
/usr/local/Cellar/libffi/3.3_3 (17 files, 540.3KB)
Poured from bottle on 2021-03-10 at 22:03:39
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.

machine:~ roadie$ gem list ffi

***LOCAL GEMS***

ffi (1.15.0, 1.14.2, 1.13.1, 1.12.2, 1.11.3)
public_suffix (4.0.6, 4.0.5, 4.0.4, 4.0.3, 4.0.2, 2.0.5)

/Users/roadie/.rvm/gems/ruby-2.7.0/gems/ffi-1.12.2/ext/ffi_c/libffi-x86_64-darwin19/.libs/libffi.7.dylib
```

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [April 5, 2021, 6:47am UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/7 "2021-04-05T06:47:54Z")

</div>

The problem may be in path.

The error trace alternates between gems in the Cellar for Homebrew. And the global Ruby 😕

As below.

```auto
internal:/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/rubygems

/usr/local/lib/ruby/gems/3.0.0/gems/..

```

Also the 3.0.0\_1 seems weird.

Maybe do a clean removal of Homebrew Ruby with

```auto
brew uninstall ruby

```

And manually deleting dirs.

```auto
rm -rf /usr/local/Cellar/ruby/*

```

Then install again.

```auto
brew install ruby

```

Even `ruby@2.7`

---

<div class="post-metadata">

**Author:** ![fei0810](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/fei0810/32/3395_2.png) [@fei0810](https://talk.jekyllrb.com/u/fei0810)\
**Post date:** [April 6, 2021, 1:58am UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/8 "2021-04-06T01:58:31Z")

</div>

> [@roadie](#):
>
> libffi is not symlinked from brew

Hi, I reinstall ruby@2.7 and also try something like [macos - No package 'libffi' found in Homebrew Virtual Environment - Ask Different](https://apple.stackexchange.com/questions/169601/no-package-libffi-found-in-homebrew-virtual-environment)

It’s still doesn’t work. I’ll give up solving this problem for now

---

<div class="post-metadata">

**Author:** ![fei0810](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/fei0810/32/3395_2.png) [@fei0810](https://talk.jekyllrb.com/u/fei0810)\
**Post date:** [April 6, 2021, 1:59am UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/9 "2021-04-06T01:59:30Z")

</div>

Hi, I reinstall ruby@2.7 and also try something like [macos - No package ‘libffi’ found in Homebrew Virtual Environment - Ask Different](https://apple.stackexchange.com/questions/169601/no-package-libffi-found-in-homebrew-virtual-environment)

It’s still doesn’t work. I’ll give up solving this problem for now

---

<div class="post-metadata">

**Author:** ![roadie](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/roadie/32/2431_2.png) [@roadie](https://talk.jekyllrb.com/u/roadie)\
**Post date:** [April 6, 2021, 5:53am UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/10 "2021-04-06T05:53:49Z")

</div>

You could try to install rvm (I use that and it works, I use ruby 2.7 but rvm lets you switch ruby versions easily per project)

[https://rvm.io/rvm/install](https://rvm.io/rvm/install)

Have a look at it and see if you like it. (of course install the stable version if you do)

---

<div class="post-metadata">

**Author:** ![fei0810](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/fei0810/32/3395_2.png) [@fei0810](https://talk.jekyllrb.com/u/fei0810)\
**Post date:** [April 7, 2021, 10:57am UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/11 "2021-04-07T10:57:15Z")

</div>

Thanks.  
I have tried rvm, still the same error message.

```auto
/Users/zhaofei/.rbenv/versions/2.7.1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': dlopen(/Users/zhaofei/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ffi-1.12.2/lib/ffi_c.bundle, 9): Library not loaded: @rpath/libffi.7.dylib (LoadError)
  Referenced from: /Users/zhaofei/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ffi-1.12.2/lib/ffi_c.bundle
  Reason: image not found - /Users/zhaofei/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ffi-1.12.2/lib/ffi_c.bundle

```

I think there may still be a key issue that has not been addressed. I plan to stop using Jekyll for now and switch to a different type of tool.  
Thanks again for all your help.！

---

<div class="post-metadata">

**Author:** ![roadie](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/roadie/32/2431_2.png) [@roadie](https://talk.jekyllrb.com/u/roadie)\
**Post date:** [April 7, 2021, 3:25pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/12 "2021-04-07T15:25:53Z")

</div>

That is not [rvm](https://rvm.io) - but [rbenv](https://github.com/rbenv/rbenv) - I remember choosing rvm when I had to decide which one to use for some reason, not sure which. _(most prefer rbenv though I think)_.  
I hope you find the error and if you do let us know. 🙂

---

<div class="post-metadata">

**Author:** ![michaelbach](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelbach/32/2151_2.png) [@michaelbach](https://talk.jekyllrb.com/u/michaelbach)\
**Post date:** [April 8, 2021, 5:46am UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/13 "2021-04-08T05:46:12Z")

</div>

FWIW: I had similar error messages after switching to Ruby 3, and could never trace down what they meant in spite of intensive research. The went away after I deleted the `~/gems` folder, which is automatically rebuilt.

---

<div class="post-metadata">

**Author:** ![roadie](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/roadie/32/2431_2.png) [@roadie](https://talk.jekyllrb.com/u/roadie)\
**Post date:** [April 8, 2021, 9:26am UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/14 "2021-04-08T09:26:10Z")

</div>

I don’t have a gems folder in the home directory. What is it for?

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [April 8, 2021, 12:55pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/15 "2021-04-08T12:55:51Z")

</div>

Is it not `~/.gem` with a dot and no “s”?

It has gems installed for the user for use across projects or as shell tools. Like I run `rufo` to format my scripts without installing rufo in every Ruby project or mine.

Other users cannot access the gems.

While a path in `/usr/...` has a place for shared gems is accessible for all users to read. Like if you had multiple people using a machine or some user created to manage serving files on an a remote ubuntu machine. The problem is you need root access to _write_ to that directory. Or you need to use root access to change permissions so that any user can edit that directory. Which is fine if you are the only person using your laptop or remote machine.

---

<div class="post-metadata">

**Author:** ![roadie](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/roadie/32/2431_2.png) [@roadie](https://talk.jekyllrb.com/u/roadie)\
**Post date:** [April 8, 2021, 2:11pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/16 "2021-04-08T14:11:52Z")

</div>

yes it is - I have that. It has ruby 2.6 and 2.7 and specs from hashicorp for the vagrant box and from [rubygems.org](http://rubygems.org)

---

<div class="post-metadata">

**Author:** ![michaelbach](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelbach/32/2151_2.png) [@michaelbach](https://talk.jekyllrb.com/u/michaelbach)\
**Post date:** [April 8, 2021, 6:22pm UTC](https://talk.jekyllrb.com/t/cant-install-jekyll-macos-big-sur-11-2-3-library-not-loaded-rpath-libffi-7-dylib-loaderror/5845/17 "2021-04-08T18:22:33Z")

</div>

Actually, I have both directories… And `./gems` is quite populated and very different from `~/.gem`. Ah, I see how this comes about: in my bash profile I have  
`export GEM_HOME=$HOME/gems`  
`export PATH="$HOME/gems/bin:$PATH"`  
So your gems are probably installed elsewhere.  
Please ignore my comment then, sorry if I created confusion.
