django-crash-course
django-crash-course copied to clipboard
Install PostgreSQL on Mac, sudo command should not have `\`
Location within the Book
- Book build date (Is the date on page 1): 2020-07-29
- Book format (PDF, Epub or Mobi): PDF
- Chapter or Appendix: The Ultimate Django Setup
- Section: Step 4: Installing PostgreSQL
- Subsection: 1.6.2 Installing PostgreSQL on Mac
- What operating system are you using:
- [ x ] MacOS High Sierra
Hint: Page numbers change all the time. The best way to report an issue is by chapter, section, and subsection numbers.
Description
sudo mkdir -p /etc/paths.d && \ echo /Applications/Postgres.app/Contents/Versions/latest/bin | \ sudo tee /etc/paths.d/postgresapp
Give me this error: -bash: sudo: command not found
Possible Solutions
Remove the \
, it works better all in a single line
sudo mkdir -p /etc/paths.d && echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
OR make sure that you have a new line after each line (must work with copy/paste), like this:
sudo mkdir -p /etc/paths.d && \
echo /Applications/Postgres.app/Contents/Versions/latest/bin | \
sudo tee /etc/paths.d/postgresapp
Your full name so we can provide accurate credit within the book
Paolo Brocco