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