2014-04-05 9 views
7

मैं PostgreSQL 9.1 चल रहा था और मैं PostgreSQL 9.3 करने के लिए उन्नत करने के लिए कोशिश कर रहा हूँ:पोस्टगिस के साथ PostgreSQL को अपग्रेड कैसे करें?

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

loadable_libraries.txt शामिल हैं::

Could not load library "$libdir/postgis-1.5" ERROR: could not access file "$libdir/postgis-1.5": No such file or directory

यह करने के लिए इसी तरह की है

$ /usr/lib/postgresql/9.3/bin/pg_upgrade -b /usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.3/bin -d /var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.3/main/ -O "-c config_file=/etc/postgresql/9.3/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.1/main/postgresql.conf"

हालांकि इसके साथ विफल रहता है Missing libraries when upgrading to PostGIS 2.1 and PostgreSQL 9.3.1 using homebrew

मैं Ubuntu चल रहा हूँ और मैं apt-get का उपयोग कर PostGIS साथ PostgreSQL स्थापित की है।

किसी को भी है कि कामयाब रहे?

+0

मैं कोशिश करता हूँ और किसी भी निर्देशिका '' 'PostGIS-1.5''' नामित पाते हैं और उसके स्थान के अनुसार, अनुमान है, जहां यह नए संस्करण में कॉपी किया जाना चाहिए। यदि यह काम नहीं करता है, तो शायद आपको postgis1.5 को अनइंस्टॉल करना चाहिए, अपग्रेड करना चाहिए और फिर ''CREATE EXTENSION''' का उपयोग करके पोस्टगिस 2.1 जोड़ें। – amenadiel

+0

क्या मैं डेटाबेस रखने के दौरान पोस्टगिस को अनइंस्टॉल कर सकता हूं जिसमें ज्यामिति डेटा है? –

उत्तर

4

PostGIS 1.5 is not supported with PostgreSQL 9.3 के बाद से, आप भी PostGIS संस्करणों उन्नयन कर रहे हैं। चूंकि pg_upgrade इस के लिए इस्तेमाल नहीं किया जा सकता है, तो आप जो एक postgis_restore.pl स्क्रिप्ट PostGIS के साथ आता है में तर्क का इस्तेमाल करता hard upgrade procedure पालन करने के लिए, की आवश्यकता होगी। यदि प्रक्रिया के साथ आपके कोई और प्रश्न हैं, तो उन्हें इस प्रश्न में संशोधित करें।

+0

+1 ठीक है, ऐसा करने की कोशिश कर रहा है। –

संबंधित मुद्दे