依存関係で削除されるパッケージ: apr-util httpd |
まぁ結局、別の理由でソースからコンパイルすることにします。(^ω^;)
□手順
10年ぐらい前から一切変わってませんねぇ。簡単簡単。(・ω・)
(1) | 必要なパッケージは以下です。 ・readline ・readline-devel ・zlib ・zlib-devel |
|
(2) | ./configure make make install※rootで cd contrib make make install※rootで |
|
(3) | postgresという名前のユーザとグループを作る ホームディレクトリを/usr/local/pgsqlにする |
|
(4) | /usr/local/pgsql以下の所有者をpostgresにする chown -R postgres:postgres /usr/local/pgsql ※rootで |
|
(5) | postgresユーザでデータベース初期化 su - postgres initdb --pgdata=/usr/local/pgsql/data --encoding=UNICODE --no-locale |
|
(6) | ソースディレクトリ contrib/start-scripts/linux を /etc/rc.d/init.d/postgresql としてコピーして chkconfig --add postgresql でサービス登録する |