# Error installing jekyll on MacOS

**URL:** <https://talk.jekyllrb.com/t/error-installing-jekyll-on-macos/9570>\
**Category:** Help\
**Created:** [December 4, 2024, 2:15am UTC](https://talk.jekyllrb.com/t/error-installing-jekyll-on-macos/9570 "2024-12-04T02:15:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnse](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@johnse](https://talk.jekyllrb.com/u/johnse)\
**Post date:** [December 4, 2024, 2:15am UTC](https://talk.jekyllrb.com/t/error-installing-jekyll-on-macos/9570/1 "2024-12-04T02:15:50Z")

</div>

Failed to install jekyll on MacOS, here are my info:

**macOS**  
15.1.1 (24B91)

**xcode-select --install**  
xcode-select: note: Command line tools are already installed. Use “Software Update” in System Settings or the softwareupdate command line interface to install updates

**xcode-select -p**  
/Library/Developer/CommandLineTools

**jekyll -v**  
zsh: command not found: jekyll

**chruby --version**  
chruby: 0.3.9

**ruby -v**  
ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86\_64-darwin24]

**gem -v**  
3.5.23

**bundler -v**  
Bundler version 2.5.23

**gcc -v**  
Apple clang version 16.0.0 (clang-1600.0.26.4)  
Target: x86\_64-apple-darwin24.1.0  
Thread model: posix  
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

**g++ -v**  
Apple clang version 16.0.0 (clang-1600.0.26.4)  
Target: x86\_64-apple-darwin24.1.0  
Thread model: posix  
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

**make -v**  
GNU Make 4.4.1  
Built for x86\_64-apple-darwin24.1.0  
Copyright (C) 1988-2023 Free Software Foundation, Inc.  
License GPLv3+: GNU GPL version 3 or later [https://gnu.org/licenses/gpl.html](https://gnu.org/licenses/gpl.html)  
This is free software: you are free to change and redistribute it.  
There is NO WARRANTY, to the extent permitted by law.

**nano ~/.zshrc**  
export PATH=$HOME/homebrew/bin:$PATH  
source “$HOME/homebrew/opt/chruby/share/chruby/chruby.sh”  
source “$HOME/homebrew/opt/chruby/share/chruby/auto.sh”  
export LDFLAGS=“-L$HOME/homebrew/opt/openssl@3/lib”  
export CPPFLAGS=“-I$HOME/homebrew/opt/openssl@3/include”  
export PKG\_CONFIG\_PATH=“$HOME/homebrew/opt/openssl@3/lib/pkgconfig”  
chruby ruby-3.3.5  
export PATH=“/Users/johns/homebrew/Cellar/make/4.4.1/libexec/gnubin:$PATH”

**gem install jekyll**  
Building native extensions. This could take a while…  
ERROR: Error installing jekyll:  
ERROR: Failed to build gem native extension.

```
current directory: /Users/johns/.gem/ruby/3.3.5/gems/eventmachine-1.2.7/ext

```

## /Users/johns/.rubies/ruby-3.3.5/bin/ruby extconf.rb checking for pkg-config for openssl… ["-I/Users/johns/homebrew/Cellar/openssl@3/3.4.0/include ", “-L/Users/johns/homebrew/Cellar/openssl@3/3.4.0/lib”, “-lssl -lcrypto”]

## Using OpenSSL from pkg-config -I/Users/johns/homebrew/Cellar/openssl@3/3.4.0/include && -L/Users/johns/homebrew/Cellar/openssl@3/3.4.0/lib && -lssl -lcrypto

checking for -lcrypto… yes  
checking for -lssl… yes  
checking for openssl/ssl.h… yes  
checking for openssl/err.h… yes  
checking for rb\_trap\_immediate in ruby.h,rubysig.h… no  
checking for rb\_thread\_blocking\_region()… no  
checking for rb\_thread\_call\_without\_gvl() in ruby/thread.h… yes  
checking for rb\_thread\_fd\_select()… yes  
checking for rb\_fdset\_t in ruby/intern.h… yes  
checking for rb\_wait\_for\_single\_fd()… yes  
checking for rb\_enable\_interrupt()… no  
checking for rb\_time\_new()… yes  
checking for inotify\_init() in sys/inotify.h… no  
checking for \_\_NR\_inotify\_init in sys/syscall.h… no  
checking for writev() in sys/uio.h… yes  
checking for pipe2() in unistd.h… no  
checking for accept4() in sys/socket.h… no  
checking for SOCK\_CLOEXEC in sys/socket.h… no  
checking for sys/event.h… yes  
checking for sys/queue.h… yes  
checking for clock\_gettime()… yes  
checking for CLOCK\_MONOTONIC\_RAW in time.h… yes  
checking for CLOCK\_MONOTONIC in time.h… yes  
CXXFLAGS=-fdeclspec  
creating Makefile

current directory: /Users/johns/.gem/ruby/3.3.5/gems/eventmachine-1.2.7/ext  
make DESTDIR= sitearchdir=./.gem.20241204-58837-hozeyo sitelibdir=./.gem.20241204-58837-hozeyo clean

current directory: /Users/johns/.gem/ruby/3.3.5/gems/eventmachine-1.2.7/ext  
make DESTDIR= sitearchdir=./.gem.20241204-58837-hozeyo sitelibdir=./.gem.20241204-58837-hozeyo  
compiling binder.cpp  
make: \*\*\* [Makefile:240: binder.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/johns/.gem/ruby/3.3.5/gems/eventmachine-1.2.7 for inspection.  
Results logged to /Users/johns/.gem/ruby/3.3.5/extensions/x86\_64-darwin-24/3.3.0-static/eventmachine-1.2.7/gem\_make.out

**gem install eventmachine**  
Building native extensions. This could take a while…  
ERROR: Error installing eventmachine:  
ERROR: Failed to build gem native extension.

```
current directory: /Users/johns/.gem/ruby/3.3.5/gems/eventmachine-1.2.7/ext

```

## /Users/johns/.rubies/ruby-3.3.5/bin/ruby extconf.rb checking for pkg-config for openssl… ["-I/Users/johns/homebrew/Cellar/openssl@3/3.4.0/include ", “-L/Users/johns/homebrew/Cellar/openssl@3/3.4.0/lib”, “-lssl -lcrypto”]

## Using OpenSSL from pkg-config -I/Users/johns/homebrew/Cellar/openssl@3/3.4.0/include && -L/Users/johns/homebrew/Cellar/openssl@3/3.4.0/lib && -lssl -lcrypto

checking for -lcrypto… yes  
checking for -lssl… yes  
checking for openssl/ssl.h… yes  
checking for openssl/err.h… yes  
checking for rb\_trap\_immediate in ruby.h,rubysig.h… no  
checking for rb\_thread\_blocking\_region()… no  
checking for rb\_thread\_call\_without\_gvl() in ruby/thread.h… yes  
checking for rb\_thread\_fd\_select()… yes  
checking for rb\_fdset\_t in ruby/intern.h… yes  
checking for rb\_wait\_for\_single\_fd()… yes  
checking for rb\_enable\_interrupt()… no  
checking for rb\_time\_new()… yes  
checking for inotify\_init() in sys/inotify.h… no  
checking for \_\_NR\_inotify\_init in sys/syscall.h… no  
checking for writev() in sys/uio.h… yes  
checking for pipe2() in unistd.h… no  
checking for accept4() in sys/socket.h… no  
checking for SOCK\_CLOEXEC in sys/socket.h… no  
checking for sys/event.h… yes  
checking for sys/queue.h… yes  
checking for clock\_gettime()… yes  
checking for CLOCK\_MONOTONIC\_RAW in time.h… yes  
checking for CLOCK\_MONOTONIC in time.h… yes  
CXXFLAGS=-fdeclspec  
creating Makefile

current directory: /Users/johns/.gem/ruby/3.3.5/gems/eventmachine-1.2.7/ext  
make DESTDIR= sitearchdir=./.gem.20241204-59324-5hhabk sitelibdir=./.gem.20241204-59324-5hhabk clean

current directory: /Users/johns/.gem/ruby/3.3.5/gems/eventmachine-1.2.7/ext  
make DESTDIR= sitearchdir=./.gem.20241204-59324-5hhabk sitelibdir=./.gem.20241204-59324-5hhabk  
compiling binder.cpp  
make: \*\*\* [Makefile:240: binder.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/johns/.gem/ruby/3.3.5/gems/eventmachine-1.2.7 for inspection.  
Results logged to /Users/johns/.gem/ruby/3.3.5/extensions/x86\_64-darwin-24/3.3.0-static/eventmachine-1.2.7/gem\_make.out

---

<div class="post-metadata">

**Author:** ![BillRaymond](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billraymond/32/5963_2.png) [@BillRaymond](https://talk.jekyllrb.com/u/BillRaymond)\
**Post date:** [December 4, 2024, 2:17pm UTC](https://talk.jekyllrb.com/t/error-installing-jekyll-on-macos/9570/2 "2024-12-04T14:17:54Z")

</div>

Hi there,

While I have not gone through my instructions in a long time, I still get comments from people telling me they successfully did the installs following my video. You might want to check it out:

[![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/7/73b7fc99cb00aa9092fd3064c1ddc815d6aab85b.jpeg "Install Jekyll on macOS Apple Silicon (Jamstack)") ](https://www.youtube.com/watch?v=UKB9ylw0G4U)
