Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install PostgreSQL on Mac, sudo command should not have \ #333

Open
firepol opened this issue Aug 4, 2020 · 0 comments
Open

Install PostgreSQL on Mac, sudo command should not have \ #333

firepol opened this issue Aug 4, 2020 · 0 comments

Comments

@firepol
Copy link

firepol commented Aug 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant