アットウィキロゴ

ダウンロードしたファイルをサーバへ移動して、解凍を行う。

cd /usr/local/src/
tar jxvf slony1-1.2.15.tar.bz2


解凍したディレクトリの所有者をpostgresの管理者ユーザーに変更する

chown postgres:postgres -R /usr/local/src/slony1-1.2.15


インストールパスの用意

mkdir /usr/local/slony1
chown postgres:postgres /usr/local/slony1


postgres管理者ユーザーに変更してインストールを行う。

su - postgres

cd /usr/local/src/slony1-1.2.15
./configure \
    --prefix=/usr/local/slony1                  \
    --with-perlsharedir=/usr/local/slony1/share \
    --with-pgconfigdir=/usr/local/pgsql/bin     \
    --with-perltools

make
make install

logout


postgres管理者ユーザーで環境変数の設定を行う。

su - postgres

vi ~/.bash_profile 
############################################
export PATH="$PATH":/usr/local/slony1/bin
############################################

logout
最終更新:2009年06月03日 12:43