I’m also unsure what they new by adding Jekyll as a dependency. The command does not work, am I supposed to copy and paste this to the text file? I don’t think that’s the case, either. See here: CleanShot 2023-05-05 at 21.19.03 · CleanShot Cloud
I think you may have ruby installed more than once and jekyll is installed in one place but not the other? try uninstalling and reinstalling ruby.
What OS are you on? Macs seem to come with a system Ruby install and then people seem to install it again and then have trouble.
Its usually better to paste the terminal output into a code block here - makes it easier to copy and paste parts of it back into a post as well as googleing something.
==> Fetching ruby
==> Downloading https://ghcr.io/v2/homebrew/core/ruby/manifests/3.2.2
Already downloaded: /Users/kamilszafraniak/Library/Caches/Homebrew/downloads/31caabdd4b3ca900e99c4f3c40dd7c5b20dadbe81e304b2a36aa1da3ce469b49--ruby-3.2.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/ruby/blobs/sha256:a4ac080688e871def04469fa335a13de
Already downloaded: /Users/kamilszafraniak/Library/Caches/Homebrew/downloads/f82297ac20f4c71329e4fff612d6aed4b651060e2c5462a78faa6e4239c4dac3--ruby--3.2.2.ventura.bottle.tar.gz
==> Pouring ruby--3.2.2.ventura.bottle.tar.gz
==> Caveats
ruby 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.
If you need to have ruby first in your PATH, run:
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
For compilers to find ruby you may need to set:
export LDFLAGS="-L/usr/local/opt/ruby/lib"
export CPPFLAGS="-I/usr/local/opt/ruby/include"
For pkg-config to find ruby you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"
==> Summary
🍺 /usr/local/Cellar/ruby/3.2.2: 16,605 files, 46.3MB
==> Running `brew cleanup ruby`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
kamilszafraniak@Kamils-Air ~ % echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
kamilszafraniak@Kamils-Air ~ % echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
kamilszafraniak@Kamils-Air ~ % pwd
/Users/kamilszafraniak
kamilszafraniak@Kamils-Air ~ % gem "jekyll"
ERROR: While executing gem ... (Gem::UnknownCommandError)
Unknown command jekyll
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/command_manager.rb:205:in `find_command'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/command_manager.rb:250:in `invoke_command'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/command_manager.rb:192:in `process_args'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/command_manager.rb:150:in `run'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/gem_runner.rb:51:in `run'
/usr/local/opt/ruby/bin/gem:10:in `<main>'
kamilszafraniak@Kamils-Air ~ %
The same issue occurs.
I’m not sure the echo command worked. The output mentioned it might fix the issue.