I’m having an issue working with Jekyll on MacOS Mojave 10.14.6. I’ve followed the directions in the documentation, and have installed bundler v 2.1.4 successfully. I am running:
ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
~/.bash_profile includes:
export PATH="/usr/local/opt/ruby/bin:$PATH"
export GEM_HOME=$HOME/gems
export GEM_PATH="$HOME/.gem/ruby/2.7.0/bin"
export PATH="$HOME/.gem/ruby/2.7.0/bin:$PATH"
The process I am following:
gem install --user-install jekyll
Building native extensions. This could take a while...
Successfully installed ffi-1.13.1
Building native extensions. This could take a while...
Successfully installed sassc-2.4.0
Successfully installed jekyll-sass-converter-2.1.0
Successfully installed rb-fsevent-0.10.4
Successfully installed rb-inotify-0.10.1
Successfully installed listen-3.2.1
Successfully installed jekyll-watch-2.2.1
Successfully installed kramdown-2.3.0
Successfully installed kramdown-parser-gfm-1.1.0
Successfully installed liquid-4.0.3
Successfully installed mercenary-0.4.0
Successfully installed forwardable-extended-2.6.0
Successfully installed pathutil-0.16.2
Successfully installed rouge-3.21.0
Successfully installed safe_yaml-1.0.5
Successfully installed unicode-display_width-1.7.0
Successfully installed terminal-table-1.8.0
Successfully installed jekyll-4.1.1
Parsing documentation for ffi-1.13.1
Parsing documentation for sassc-2.4.0
Parsing documentation for jekyll-sass-converter-2.1.0
Parsing documentation for rb-fsevent-0.10.4
Parsing documentation for rb-inotify-0.10.1
Parsing documentation for listen-3.2.1
Parsing documentation for jekyll-watch-2.2.1
Parsing documentation for kramdown-2.3.0
Parsing documentation for kramdown-parser-gfm-1.1.0
Parsing documentation for liquid-4.0.3
Parsing documentation for mercenary-0.4.0
Parsing documentation for forwardable-extended-2.6.0
Parsing documentation for pathutil-0.16.2
Parsing documentation for rouge-3.21.0
Parsing documentation for safe_yaml-1.0.5
Parsing documentation for unicode-display_width-1.7.0
Parsing documentation for terminal-table-1.8.0
Parsing documentation for jekyll-4.1.1
Done installing documentation for ffi, sassc, jekyll-sass-converter, rb-fsevent, rb-inotify, listen, jekyll-watch, kramdown, kramdown-parser-gfm, liquid, mercenary, forwardable-extended, pathutil, rouge, safe_yaml, unicode-display_width, terminal-table, jekyll after 15 seconds
18 gems installed
which jekyll
/Users/aleedom/.gem/ruby/2.7.0/bin/jekyll
My specific issue is that the system can’t find the gem file:
jekyll -v
Traceback (most recent call last):
2: from /Users/aleedom/.gem/ruby/2.7.0/bin/jekyll:23:in `<main>'
1: from /usr/local/lib/ruby/site_ruby/2.7.0/rubygems.rb:296:in `activate_bin_path'
/usr/local/lib/ruby/site_ruby/2.7.0/rubygems.rb:277:in `find_spec_for_exe': can't find gem jekyll (>= 0.a) with executable jekyll (Gem::GemNotFoundException)
my gem_env
gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.4
- RUBY VERSION: 2.7.1 (2020-03-31 patchlevel 83) [x86_64-darwin18]
- INSTALLATION DIRECTORY: /Users/aleedom/gems
- USER INSTALLATION DIRECTORY: /Users/aleedom/.gem/ruby/2.7.0
- RUBY EXECUTABLE: /usr/local/opt/ruby/bin/ruby
- GIT EXECUTABLE: /usr/local/bin/git
- EXECUTABLE DIRECTORY: /Users/aleedom/gems/bin
- SPEC CACHE DIRECTORY: /Users/aleedom/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /usr/local/Cellar/ruby/2.7.1_2/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-18
- GEM PATHS:
- /Users/aleedom/gems
- /Users/aleedom/.gem/ruby/2.7.0/bin
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/aleedom/.gem/ruby/2.7.0/bin
- /Users/aleedom/.gem/ruby/2.7.0/bin
- HOME/.gem/ruby/2.7.0/bin
- /usr/local/opt/ruby/bin
- /Users/aleedom/anaconda3/condabin
- /Library/Frameworks/Python.framework/Versions/3.7/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /opt/X11/bin
xcode-select and headers have both been installed. I’m new to Ruby, FWIW.