perl5(通常需建立符號連結)postgres 系統帳號:useradd -c "PostgreSQL Administrator" -d /opt/postgresql -g users postgrespostgres 身分執行tar -xvzf postgresql-6.5.2.tar.gz
cd postgresql-6.5.2
# root 執行
mkdir /opt/pgsql
chown postgres.users /opt/pgsql
# postgres 執行
./configure --prefix=/opt/pgsql --with-perl
cd ../doc
make install
cd ../src
make all
make install
/opt/pgsql/lib 加入 /etc/ld.so.conf 並執行 ldconfiginitdb -D /opt/pgsql/datapostmaster -D /opt/pgsql/data &createdb testpsql testscripts/mysql_install_db、啟動 safe_mysqld &),原始碼編譯亦支援 configure --prefix三者安裝門檻皆低,PostgreSQL 步驟最多(符合功能最完整),MySQL 二進位部署最便利,mSQL 最精簡。下集將進入資料庫設計與 SQL 相容性實測。