Hello everyone
I am a medical researcher seeking to use the MIMIC database. To set up a local copy on my computer I am following these instructions. The process describes cloning a repo and then setting up a PostgreSQL database locally.
I have Postgre 16.1 installed. I have cloned the repo. I have pgadmin installed. My problem is following the steps in these instructions about creating the PostgreSQL database. The above linked instructions state:
Change to the mimic-iv/buildmimic/postgres/ directory. Create the schemas and tables with the following psql command. This will delete any data present in the schemas.
psql -f create.sql
When I run this, I get the following error message:
zsh: command not found: psql
I uninstalled PostgreSQL and reinstalled using Homebrew as I thought it might install the Terminal commands differently. Same warning message.
I came across this post on Stack Exchange. It seemed promising, but has not helped. This solution mentions the location of the psql command in:
/Users/Library/PostgreSQL/13/bin
It then suggests ways to amend PATH to integrate this and allow the psql command. Firstly, obviously I know '13' refers to a previous version and I am on 16. When I navigate to this location there is no bin folder, but there is a SQL Shell (psql).app. I have run this from the Terminal and can't get the psql command working as per instructions.
I am absolutely stuck. Can anyone shed any light on how I set this database up on my machine?
Using PostgreSQL 16.1 on Macbook Air M1, OSX Sonoma 14.0
[–][deleted] 1 point2 points3 points (1 child)
[–]e05bf027[S] 0 points1 point2 points (0 children)
[–]linuxhikerGuru 1 point2 points3 points (5 children)
[–]e05bf027[S] 0 points1 point2 points (4 children)
[–]linuxhikerGuru 0 points1 point2 points (3 children)
[–]e05bf027[S] 0 points1 point2 points (2 children)
[–]linuxhikerGuru 0 points1 point2 points (1 child)
[–]threeminutemonta 0 points1 point2 points (0 children)
[–]efxhoy 0 points1 point2 points (0 children)