[pgsql-jp: 32016] Postgresの再インストールとinitdbでのエラー

webmaster webmaster @ hiyoko3.com
2004年 1月 14日 (水) 13:05:41 JST


お世話になります。山添といいます。

早速ですが、Postgresのインストールについての質問です。

OS:Vine Linux 2.6r1
Postgres-7.2.3(RPM版) =>Postgresql-7.4.1
新規インストール先:/usr/local/pgsql/

もともとVineをインストールするときPostgresもインストール
された物なのですが、Wiz(グループウェア)をインストール
する為に、下記アドレスの方法に従って、既存のPostgresを
削除しました。
http://wiz.syscon.co.jp/Guide.htm

$ rpm -qa | grep -i postgresql で削除が出来たのを確認

新規のPostgresは最新版のpostgresql-7.4.1.tar.gzをDLし
http://www.postgresql.jp/document/pg74doc/html/install-procedure.html
(1)
そのドキュメントから「configureのマルチバイトオプション」が
以前と違うようなので、Wizのマニュアルと両方にらめっこ
しながら、インストールを実行しました。
http://wiz.syscon.co.jp/Lnxpostgres.html  ((2)Wizのマニュアル)

$ ./configure
$ make clear
$ make all
$ su (postgresのままでもやってみた=>変わらず)
# make install
までは何のエラーもなく進んでいきましたが、initdbでエラーがでて
先へ進まなくなりました。理由がはっきりしないのですが、元の
RPM版のファイルが何か邪魔しているのでしょうか?
解決方法のヒントをお願いします。

1)  $ initdb -E EUC_JP ($ initdb とだけしても同じ)
=>画面が残ってないので定かでないですが・・
pg_encoding .... /usr/local/pgsql/lib .... Shared object "libpq.so.2" not
found

2) libpq.so.2 はインストールされてないのでシンボリックリンクでlibpq.so.3を
  指してみる
=>initdb does not find the file '/usr/share/pgsql/postgres.bki'
そんなディレクトリはないが/usr/local/pgsql/share があり、その中に
postgres.bkiがあったので上記ディレクトリを作りシンボリックリンクを
置いてみた。

=>You must identify where the the data for this database system
 will reside. Do this with either a -D invocation option or PGDATA
environment variable.
う〜ん?ちゃんと環境変数はセットしているのに・・・

3) $ -D /var/lib/pgsql/data とかしてみる
(Dirはあらかじめ作成、chown -R postgres.postgres /var/lib/pgsql )
=>initdb does not find the file '/usr/share/pgsql/postgres.description
・・・とかいわれる。さっきの所にあったやつか〜。

4) ということでshareディレクトリの全てをシンボリックリンクしてみる。
=>The input file '/usr/share/pgsql/postgres.bki' needed by initdb
does not belong to PostgreSQL 7.2.3. Check your installation or specify
the correct path using the -L option.

何で7.2.3?やっぱり昔のがじゃましてる?良くわかりません。
何度やってもココで行き詰まりです。宜しくお願いします。

----------------------------------------
Script Tips Laboratoy  Author Hiyoko
HP-URL : http://www.hiyoko3.com
E-mail : webmaster @ hiyoko3.com
----------------------------------------




pgsql-jp メーリングリストの案内