Monday, December 29, 2008

steps to Install bizgres on ubuntu 8.04

1.Get the bizgres and make it executable as below

chmod 700 bizgres-0_9_GA-RHEL3.bin

2. Before execute follow the below steps to create symbolic links and other settings
And make sure JAVA_HOME env is set .

[export JAVA_HOME=/opt/jdk1.6.0_01
export PATH=$JAVA_HOME/bin:$PATH
]

sed -i "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" "bizgres- 0_9_GA-RHEL3.bin"

and to system changes to take effect run $ sudo ldconfig

[error when system changes does not take effect -
exec: 2473: /tmp/install.dir.14720/Linux/resource/jre/bin/java: not found
]
ln -s /usr/lib/libreadline.so /usr/lib/libreadline.so.4

3.since libtermcap is obsolete install libncurses and make the symbolic
link
aptitide install libncurses5-dev

4.Create user bgadim , And then create the data folder as below and change the owner ship to bgadmin

mkdir /opt/BIZDATA


chown -R bgadmin:bgadmin /opt/BIZDATA

5. On bgamin .bashrc add add the following line

source /usr/local/bizgres-0_9_GA/bizgres_path.sh

6.Then install following lib files and make the sym links

libreadline5-dev
sudo ln -s /usr/lib/libreadline.so /usr/lib/libreadline.so.4

sudo ln -s /usr/lib/libncurses.so.5 /usr/lib/libtermcap.so.2


your done...
before start the server edit
/opt/BIZDATA/postgresql.conf
/opt/BIZDATA/pg_hba.conf to set access permissions as necessary.


start the server
pg_ctl -D /opt/BIZDATA -l logfile start

No comments: