# Update to installation documentation for M1 Macs

**URL:** <https://talk.jekyllrb.com/t/update-to-installation-documentation-for-m1-macs/6683>\
**Category:** Site Feedback\
**Created:** [November 15, 2021, 3:43pm UTC](https://talk.jekyllrb.com/t/update-to-installation-documentation-for-m1-macs/6683 "2021-11-15T15:43:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrueGeek](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/truegeek/32/4092_2.png) [@TrueGeek](https://talk.jekyllrb.com/u/TrueGeek)\
**Post date:** [November 15, 2021, 3:43pm UTC](https://talk.jekyllrb.com/t/update-to-installation-documentation-for-m1-macs/6683/1 "2021-11-15T15:43:52Z")

</div>

An update to the documentation here:

> **[Jekyll on macOS](https://jekyllrb.com/docs/installation/macos/)**
>
> Install Command Line Tools To install the command line tools to compile native extensions, open a terminal and run:

At the step where you update your path:

```auto
# If you're using Zsh
echo 'export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/.zshrc

```

On Apple M1 the path should be:

```auto
echo 'export PATH="/opt/homebrew/opt/ruby/bin:gem environment gemdir`/bin:$PATH"' >> ~/.zshrc

```

I found the paths [here](https://learn-rails.com/install-rails-mac/20.html).

---

<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:** [November 15, 2021, 8:30pm UTC](https://talk.jekyllrb.com/t/update-to-installation-documentation-for-m1-macs/6683/2 "2021-11-15T20:30:13Z")

</div>

> [@TrueGeek](#):
>
> `bin:gem environment gemdir`/bin:$`

Are you missing a backtick there?

If you want to run shell command, backticks are outdated and this is the modern more flexible and clear syntax.

```auto
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$(gem environment gemdir)/bin:$PATH"' >> ~/.zshrc

```

Also I would do it in two lines

```auto
GEM_PATH=$(gem environment gemdir)
export PATH="/opt/homebrew/opt/ruby/bin:$GEM_PATH/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:** [November 15, 2021, 8:32pm UTC](https://talk.jekyllrb.com/t/update-to-installation-documentation-for-m1-macs/6683/3 "2021-11-15T20:32:13Z")

</div>

Also you may be interested in this method that uses Ruby code to find the directory and should achieve the same effect

```auto
GEM_PATH="$(ruby -r rubygems -e 'puts Gem.dir')/bin"
export PATH="$GEM_PATH:$PATH"

```

If you install gems like this

```auto
gem install GEM --user-install 

```

Then use `Gem.user_dir`
