2013-10-25 14 views
10

PostgreSQLをバージョン9.2.4から9.3.1(OS Xのhomebrew経由)にアップグレードする過程で、私は奇妙な問題に遭遇しました。これらは、私は、PostgreSQL、PostGISのと必要なライブラリがインストールされ(エラーなし) homebrewを使用してPostGIS 2.1とPostgreSQL 9.3.1にアップグレードするときにライブラリが見つからない

  • が新しいデータベースで実行initdb
  • pg_upgrade
  • を実行している両方のサーバー
  • を停止し、これまで

    • を取った手順です

      pg_upgradeは必要なチェックを行い、古いクラスタのダンプを作成しますが、新しいクラスタにインポートするときに次のエラーが発生します。

      > ./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 
      

      のPostgreSQL 9.3.1は互換性がないのPostGIS 2.0を使用しようとするものの

      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 
      

      は誰もが同じ問題に遭遇したようにそれが表示されますか?

  • +0

    postgresqlとpostgisの新規インストールで同じ問題が発生しています。あなたはそれを並べ替えることができましたか? –

    +0

    残念ながら、私はPostGIS 2.0とPostgreSQL 9.2.3に戻っていました – poezn

    答えて

    1

    私は最近この問題に遭遇し、postgisを再インストールしてくれました。それはあなたがソースファイル(あなたがソースからのPostGISをインストールした場合)、再実行をtar'edしたフォルダに移動し、次のとおりです。

    ./configure 
    make 
    sudo make install 
    

    あなたは、PostgreSQLの最新バージョンをインストールしている場合、PostGISではインストールする必要があります新しいPostgreSQLの拡張フォルダに:

    /usr/share/postgresql/x.x/extension/

    、チェックを実行するには、次の

    sudo su -l postgres 
    
    psql template1 -p 5433 
    
    SELECT name, default_version,installed_version 
    FROM pg_available_extensions WHERE name LIKE 'postgis%' ; 
    

    たPostGISが正常にインストールされている場合は、「インストール」の共同で示されたバージョン番号が表示されるはずです列。 pg_upgradeコマンドを実行しようとすると、すべて正常に動作するはずです。

    これが役に立ちます。

    関連する問題