I am having trouble with the Jekyll installation. Everything is up to date with Ruby, Homebrew and Gems:
Quocs-MacBook-Air:~ quochoantrinh$ brew -v
Homebrew 2.1.6
Homebrew/homebrew-core (git revision 2796; last commit 2019-07-01)
Quocs-MacBook-Air:~ quochoantrinh$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin16]
Quocs-MacBook-Air:~ quochoantrinh$ gem -v
3.0.3
Then I ran the following from the Jekyll on macOS setup from the official website (https://jekyllrb.com/docs/installation/macos/)
export PATH=/usr/local/opt/ruby/bin:$PATH
Afterwards I did the next commands:
gem install --user-install bundler jekyll
export PATH=$HOME/.gem/ruby/2.6.3/bin:$PATH
However when I run jekyll in my terminal it gives me the "command not found".
This is my gem env
Quocs-MacBook-Air:~ quochoantrinh$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.0.3
- RUBY VERSION: 2.6.3 (2019-04-16 patchlevel 62) [x86_64-darwin16]
- INSTALLATION DIRECTORY: /Users/quochoantrinh/.rvm/gems/ruby-2.6.3
- USER INSTALLATION DIRECTORY: /Users/quochoantrinh/.gem/ruby/2.6.0
- RUBY EXECUTABLE: /usr/local/opt/ruby/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /Users/quochoantrinh/.rvm/gems/ruby-2.6.3/bin
- SPEC CACHE DIRECTORY: /Users/quochoantrinh/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /usr/local/Cellar/ruby/2.6.3/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-16
- GEM PATHS:
- /Users/quochoantrinh/.rvm/gems/ruby-2.6.3
- /Users/quochoantrinh/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.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
- /Users/quochoantrinh/.yarn/bin
- /Users/quochoantrinh/.config/yarn/global/node_modules/.bin
- /Users/quochoantrinh/anaconda3/bin
- /Users/quochoantrinh/anaconda3/bin
- /Users/quochoantrinh/anaconda/bin
- /Users/quochoantrinh/.gem/ruby/2.6.3/bin
- /Users/quochoantrinh/.rvm/gems/ruby-2.6.3/bin
- /Users/quochoantrinh/.rvm/gems/ruby-2.6.3@global/bin
- /Users/quochoantrinh/.rvm/rubies/ruby-2.6.3/bin
- /Users/quochoantrinh/.yarn/bin
- /Users/quochoantrinh/.config/yarn/global/node_modules/.bin
- /Users/quochoantrinh/anaconda3/bin
- /Users/quochoantrinh/anaconda3/bin
- /Users/quochoantrinh/anaconda/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Library/Frameworks/Mono.framework/Versions/Current/Commands
- /Users/quochoantrinh/.rvm/bin