Skip to content

Commit

Permalink
Added additional steps for building on M1 Macs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmarkbrown committed Aug 13, 2021
1 parent a9ae891 commit 14f88ad
Show file tree
Hide file tree
Showing 3 changed files with 11,034 additions and 2,596 deletions.
20 changes: 20 additions & 0 deletions content/_prerequisites/02-environment-setup/01-osx.md
@@ -1,6 +1,13 @@
---
title: OSX
---
# Xcode

Install Xcode command line tools
```sh
$ xcode-select --install
```


# NPM

Expand All @@ -19,4 +26,17 @@ $ brew install ruby
# Bundler
```sh
$ gem install bundler
```

# M1 Mac IMPORTANT ADDITIONAL STEPS

If you are using a Mac (2020 or newer) with the M1 chipset, Ruby will need to be version 2.7.3 (recommend using RVM to install this). Also, there may be errors encountered while building the ffi library. The following commands can be run to rebuild it manually for the M1 architecture:
```sh
git clone https://github.com/libffi/libffi
cd libffi/
./autogen.sh
./configure
make
make install
Delete libffi directory if you dont need it
```

0 comments on commit 14f88ad

Please sign in to comment.