[58P01] ERROR: could not open extension control file "/opt/homebrew/share/postgresql@14/extension/postgis.control": No such file or directory
Mac 환경에서 Postgresql 데이터베이스에 GIS 확장라이브러인 postgis를 설치하려고 할 때, 만날 수 있는 에러이다.
로컬 환경에 PostGIS가 설치되어 있지 않기 때문에 발생한다.
homebrew로 postgis를 설치해보자.
brew install postgis
https://postgis.net/documentation/getting_started/install_macos/
Installing on MacOS
A popular distribution particularly for newbies is Postgres.app. It includes generally latest version of PostgreSQL and PostGIS. Great for development and testing. Do not mix with other installations. Video details how to install postgres.app and how to ge
postgis.net

다시 postgis 라이브러리를 추가하고
CREATE EXTENSION postgis;
현재 사용 가능한 extension을 조회해보면 정상적으로 설치된 postgis 익스텐션을 확인할 수 있다.
Select * from pg_available_extensions;
