# After installation, the common 'jekyll' is not found

**URL:** <https://talk.jekyllrb.com/t/after-installation-the-common-jekyll-is-not-found/5842>\
**Category:** Help\
**Created:** [April 4, 2021, 2:13am UTC](https://talk.jekyllrb.com/t/after-installation-the-common-jekyll-is-not-found/5842 "2021-04-04T02:13:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![82906775](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/82906775/32/3387_2.png) [@82906775](https://talk.jekyllrb.com/u/82906775)\
**Post date:** [April 4, 2021, 2:13am UTC](https://talk.jekyllrb.com/t/after-installation-the-common-jekyll-is-not-found/5842/1 "2021-04-04T02:13:32Z")

</div>

my machine is Mac with M1,  
the following may be useful.

 ![截屏2021-04-04 上午9.51.48](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/f/faba8b14dbf4a3dc67429651b606117eb4f792d0.jpeg) ;  
the .zshrc:  
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"  
export PATH="/opt/homebrew/bin:$PATH"  
export HOMEBREW\_NO\_AUTO\_UPDATE=true  
export HOMEBREW\_BOTTLE\_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles  
export PATH="$HOME/.gem/ruby/2.6.0/bin:$PATH"

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [April 4, 2021, 6:28am UTC](https://talk.jekyllrb.com/t/after-installation-the-common-jekyll-is-not-found/5842/2 "2021-04-04T06:28:10Z")

</div>

Can you show the steps you did to get here? How did you install Jekyll?

I’m guessing:

```auto
gem install jekyll --user-install 

```

As that will add it to `.gem/...`.

* * *

Your Ruby is 3.

Your comment about path to bin for Ruby 2.6.0 won’t help but looking at the screenshot you **do** still have bin for 3.0.0 in your path.

You also have some values appearing in shell path 2 or even 3 times around Homebrew so see if you can clean that up.

Check where Jekyll was installed to. Does it exist here?

```auto
ls ~/.gem/ruby/2.6.0/bin
ls ~/.gem/ruby/3.0.0/bin

```

* * *

Here are the instructions I arrived at for mac and Homebrew. Try these out.

I use `/usr/local/...` as my path to Homebrew though. Also these are for installing Bundler at the global level, so replace `bundle` with `jekyll` in commands.

> <https://gist.github.com/MichaelCurrin/61053a564bdb3098bae11f949bab3578>

I actually don’t have Jekyll setup globally anymore. I use Bundler globally. Then each Jekyll project has Jekyl 3 or 4 in a Gemfile. So Bundler will install it to project scoped gems, as per Jekyll setup in my gist.

---

<div class="post-metadata">

**Author:** ![82906775](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/82906775/32/3387_2.png) [@82906775](https://talk.jekyllrb.com/u/82906775)\
**Post date:** [April 4, 2021, 12:04pm UTC](https://talk.jekyllrb.com/t/after-installation-the-common-jekyll-is-not-found/5842/3 "2021-04-04T12:04:57Z")

</div>

Thank you very much for your help. With your help, I use the command’jekyll’ successfully！  
at the first time, i installed ‘jekyll’ without the key ‘–user-install’;I found there was just ‘2.6.0’ in the path ‘～/.gem/ruby/’; after the addition, I have a folder called ‘3.0.0’ ;after I install the jekyll again and add the path to the .zshrc, the command ‘jekyll’ is useful.

I put the environment variables applied by the user in front of the system，so that I can use the ruby I installed with Homebrew.  
under the path ‘~/.gem/ruby/2.6.0/’ ,only one folder ’ cache’ exists, I can’t find the jekyll which I installed at the first time .I’ve got all the paths to the files on my computer mixed up since Homebrew is in the folder ’ opt '.

thanks for your help again, And thank you for reading my broken English

---

<div class="post-metadata">

**Author:** ![82906775](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/82906775/32/3387_2.png) [@82906775](https://talk.jekyllrb.com/u/82906775)\
**Post date:** [April 4, 2021, 12:05pm UTC](https://talk.jekyllrb.com/t/after-installation-the-common-jekyll-is-not-found/5842/4 "2021-04-04T12:05:54Z")

</div>

![截屏2021-04-04 下午7.55.11](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/f/f55403671bf1fcdd461138a7ab99e7bc9f4ceb35.jpeg)
