Skip to content

Commit

Permalink
Merge pull request #3283 from CatFish47/update-install
Browse files Browse the repository at this point in the history
Updated INSTALL.md with apple silicon messages
  • Loading branch information
charles-cowart committed May 8, 2023
2 parents f8cf31f + 377dec7 commit 17ae9ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ sudo service postgresql start
```
### PostgreSQL installation on Mac OS X

For Mac OS X, you can either install postgres through the [Postgres.app](https://postgresapp.com/downloads.html). These instructions were tested with the Postgres.app v9.5, v13.
For Mac OS X, it is strongly encourage to install Postgres through the [Postgres.app](https://postgresapp.com/downloads.html). We recommend using Postgres.app versions 9.5 or 13, as instructions were tested most extensively with these versions.

You'll then need to ensure that the postgres binaries (for example, ``psql``) are in your executable search path (``$PATH`` environment variable). If you are using Postgres.app on OS X, you can do this by running the following, though you may have to replace`~/.bash_profile`with `~/.zshrc` if you're using zshell rather than the built-in bash, and you may have to change the version number `Versions/9.3/` to the exact one that you are installing:

Expand Down Expand Up @@ -334,7 +334,11 @@ sudo apt-get install postgresql-contrib
# or: sudo apt-get install postgresql-contrib-9.3 depending on your OS and apt repository versions
```

### Apple Silicon Mac (M1/M2)

#### `no such file or directory` or `fatal error: file not found`

M1 and M2 macs have a new feature where homebrew is not installed to the path `usr/local/bin` like Intel Macs are, but to `opt/homebrew/bin`. This is because of reasons including security concerns with the old path, potential conflicts with installing to `/usr/local/bin`, and the fact that other package managers have been using `/opt/<manager_name>` for a while now. To fix this, ensure that homebrew libraries are being searched for in the `opt/homebrew/lib` path.

## General Troubleshooting

Expand Down

0 comments on commit 17ae9ca

Please sign in to comment.