I want to install PostgreSQL on my Macbook Pro ( M1 Silicon Chip ) but I could not make it done.
What I have done:
- Downloaded postgresql and installed.
- Downloaded postgres command line for brew.
- Tried to start by
pg_ctl -D /usr/local/var/postgres startand getting error:pg_ctl: directory "/usr/local/var/postgres" is not a database cluster directory. - Tried to define a directory for the db by
initdb /usr/local/var/postgresand getting error:zsh: killed initdb /usr/local/var/postgres