走自己的路让别人说去吧!
分类: LINUX
2011-08-28 05:23:40
ftp://213.130.28.62/Linux/Gentoo/distfiles/flex-2.5.4a.tar.gz
2.Bisonf的安装
#tar zxvf bison-2.5.tar.gz
#cd bison-2.5
#./configure
#make
#make install
3.Flex的安装
#tar zxvf flex-2.5.4a.tar.gz
#cd flex-2.5.4
#./configure
#make
#make install
4.PostgreSQL的安装
# useradd postgre (自动建立 postgre 组)
# tar xvfz postgresql-8.1.4.tar.gz
# cd postgresql-8.1.4
# ./configure --prefix=/usr/local/pgsql
# make
# make install
# chown -R postgre.postgre /usr/local/pgsql
5.配置部分:
# vi ~postgre/.bash_profile
在文件最后添加:
PGLIB=/usr/local/pgsql/lib
PGDATA=$HOME/data
PATH=$PATH:/usr/local/pgsql/bin
MANPATH=$MANPATH:/usr/local/pgsql/man
export PGLIB PGDATA PATH MANPATH
6.以 postgres 用户登录