<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - ERROR: could not access file "$libdir/postgis-2.2":]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=10228&amp;type=atom"/>
	<updated>2016-02-15T09:02:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=10228</id>
		<entry>
			<title type="html"><![CDATA[Odp: ERROR: could not access file "$libdir/postgis-2.2":]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=14100#p14100"/>
			<content type="html"><![CDATA[Wczoraj wieczorem przełamałem problem. Sprawa była banalna i u mnie pomogło - odinstalowałem z kontenera wersję 9.1 postgresql wraz z zależnościami ( znalazlem taką podpowiedź – [[url]http://wiki.openstreetmap.org/wiki/JA:PostGIS/Installation[/url]]Troubleshooting -Problem: could not access file "$libdir/postgis-1.5": No such file or directory
This error shows up when both postgresql-9.0 and postgresql-8.4 are installed (Debian/testing). Uninstalling 9.0 helps, it should be also possible to switch the active toolset version.)
Zrobiłem więc: apt-get –purge remove postgresql-9.1 postgresql-doc-9.1. Usunąłem starszą wersję, zniknęła przy tym pusta baza danych template_postgis (którą sobie wcześniej zainstalowalem),musiałem więc powtórzyć te czynność i funkcje przestrzenne dla postgisa poszły (m.in. spatial_ref_sys.sql, topology.sql :-)]]></content>
			<author>
				<name><![CDATA[Bless]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=3439</uri>
			</author>
			<updated>2016-02-15T09:02:17Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=14100#p14100</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ERROR: could not access file "$libdir/postgis-2.2":]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=13575#p13575"/>
			<content type="html"><![CDATA[problem z PostgreSQL/postgis na Debian Wheezy

Witam.
Proszę o podpowiedź jak rozwiązać mój problem z instalacją funkcji przestrzennych w postgis 2.2. Może coś robię źle ?

Zainstalowałem PostgreSQL 9.5 na Debian Wheezy następnie postgis 2.2.
kolejne kroki:
su – postgres- Logowanie na serwerze jako użytkownik postgres.

createdb template_postgis - Stworzenie pustej bazy danych template_postgis.

createlang plpgsql template_postgis - Dodanie do bazy obsługi języka plpgsql.

no i na deser chciałem zrobić tak:
psql -d template_postgis -f /usr/share/postgresql/9.5/contrib/postgis-2.2/postgis.sql

a w odpowiedzi było jak poniżej:

SET
BEGIN
DO
CREATE FUNCTION
psql:/usr/share/postgresql/9.5/contrib/postgis-2.2/postgis.sql:83: ERROR: could not access file "$libdir/postgis-2.2": No such file or directory

i dziesiątki taki Errorów jak ten poniżej

psql:/usr/share/postgresql/9.5/contrib/postgis-2.2/postgis.sql:88: ERROR: current transaction is aborted, commands ignored until end of transaction block]]></content>
			<author>
				<name><![CDATA[Bless]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=3439</uri>
			</author>
			<updated>2016-02-12T20:24:57Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=13575#p13575</id>
		</entry>
</feed>
