Brakujące biblioteki podczas aktualizacji do PostGIS 2.1 i PostgreSQL 9.3.1 przy użyciu homebrew
W procesie aktualizacji mojego PostgreSQL z wersji 9.2.4 do 9.3.1 (poprzez homebrew na OS X) natknąłem się na dziwny problem. Oto kroki, które podjąłem do tej pory
Zainstalowane PostgreSQL, PostGIS i wymagane biblioteki (bez błędów)biegaćinitdb
w nowej bazie danychzatrzymał oba serwerybieganiepg_upgrade
pg_upgrade
wykonuje niezbędne kontrole, tworzy zrzuty starego klastra, ale podczas importowania do nowego klastra pojawia się następujący błąd:
> ./pg_upgrade -b /usr/local/Cellar/postgresql/9.2.4/bin/ -B /usr/local/Cellar/postgresql/9.3.1/bin -d /usr/local/var/postgres/ -D /usr/local/var/postgres9.3.1 -u postgres
Performing Consistency Checks
-----------------------------
Checking cluster versions ok
Checking database user is a superuser ok
Checking for prepared transactions ok
Checking for reg* system OID user data types ok
Checking for contrib/isn with bigint-passing mismatch ok
Creating dump of global objects ok
Creating dump of database schemas
ok
Checking for presence of required libraries fatal
Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt
Failure, exiting
Wydaje się, że PostgreSQL 9.3.1 próbuje użyć PostGIS 2.0, który nie jest kompatybilny
Could not load library "$libdir/postgis-2.0"
ERROR: could not access file "$libdir/postgis-2.0": No such file or directory
Could not load library "$libdir/rtpostgis-2.0"
ERROR: could not access file "$libdir/rtpostgis-2.0": No such file or directory
Czy ktoś napotkał ten sam problem?