Redhat上安装tiny erp
-
下载安装postgresql
wget ftp://ftp.cn.postgresql.org/pub/postgresql/v8.3.1/postgresql-8.3.1.tar.gz
tar xvfz postgresql-8.3.1.tar.gz
cd postgresql-8.3.1
./configure --prefix=/usr/local/pgsql
make
make install
chown -R tusan /usr/local/pgsqlvi ~tusan/.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以 tusan 用户登录:
su tusan
建立数据库目录:
$ mkdir data初始化Postgresql
/usr/local/pgsql/bin/initdb -D /home/tusan/data
nohup /usr/local/pgsql/bin/postgres -D /home/tusan/data &安装psycopg-1.1.21
先安装mxDateTime 因为python-libxml2需要mxDateTime和libxslt1
wget downloads.egenix.com/python/egenix-mx-base-3.0.0.linux-i686-py2.5_ucs4.prebuilt.zip
unzip egenix-mx-base-3.0.0.linux-i686-py2.5_ucs4.prebuilt.zip
cd egenix-mx-base-3.0.0.linux-i686-py2.5_ucs4.prebuilt
python setup.py build --skip install安装libxslt,一定要先安装libxsltl再安装python-libxml2,python-libxslt包含在python-libxml2中。
安装python-libxml2
CPPFLAGS="-I$/usr/local/lib/python2.5/site-packages/mx/DateTime/mxDateTime"
./configure --with-postgres-libraries=/usr/local/pgsql/lib --with-postgres-includes=/usr/local/pgsql/include
make;make install安装python-reportlab,为了输出pdf报表。
最后安装server端就可以了。启动客户端,一般可以连上,但创建数据库时报utf和本地locale不一致,这时,改动力locale,重新新initdb就可以了。
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login