Reputation: 777
I installed postgres with EDB installer. I wanted to use pgrouting in my database. So I downloaded it through homebrew brew install pgrouting
Next, I wanted to initalize it in my database: psql mydatabase -c "create extension pgrouting;"
But I got this error ERROR: could not open extension control file "/Library/PostgreSQL/9.6/share/postgresql/extension/pgrouting.control": No such file or directory
I found pgrouting.control
in /usr/local/Cellar/pgrouting/2.4.1/share/postgresql/extension/pgrouting.control
Should I just copy those files from /usr... to /Library/Postgres... ??
Upvotes: 0
Views: 2100
Reputation: 35
Personally, doing the following worked for me just fine:
.sql
scripts related to pgrouting in the following location: /opt/homebrew/Cellar/pgrouting/HEAD-441037f/share/postgresql@14/extension
/Applications/Postgres.app/Contents/Versions/14/share/postgresql/extension
.so
file /opt/homebrew/Cellar/pgrouting/HEAD-441037f/lib/postgresql@14/libpgrouting-3.4.so
into the respective location within the Postgres contents -> /Applications/Postgres.app/Contents/Versions/14/lib/postgresql
Upvotes: 1