如何在centOS 6.5上安装openERP 7.0.1

时间:2014-01-23 10:43:52

标签: openerp centos6

您能否告诉我如何在我的centOS 6.5版本中安装openERP 7.0.1版本。我正在寻找戒烟一段时间,但dint找不到任何东西。你能帮帮我吗?

2 个答案:

答案 0 :(得分:2)

#!/bin/sh
# Modified script from Carlos E. Fonseca Zorrilla 
# http://forum.openerp.com/forum/topic36094.html
yum -y install wget unzip
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm
yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz \
            python-matplotlib python-babel python-mako python-dateutil python-psycopg2 \
            pychart pydot python-reportlab python-devel python-imaging python-vobject \
            hippo-canvas-python mx python-gdata python-ldap python-openid \
            python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil \
            python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib \
            python python-devel python-psutil python-docutils make\
            automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav\
yum -y install postgresql92-libs postgresql92-server postgresql92
service postgresql-9.2 initdb
chkconfig postgresql-9.2 on
service postgresql-9.2 start
su - postgres -c "createuser  --superuser openerp"
cd /tmp
wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.zip
unzip gdata-2.0.17.zip
rm -rf gdata-2.0.17.zip
cd gdata*
python setup.py install
cd /tmp
adduser openerp
DIR="/var/run/openerp /var/log/openerp"
for NAME in $DIR
do
if [ ! -d $NAME ]; then
   mkdir $NAME
   chown openerp.openerp $NAME
fi
done
rm -rf openerp*
wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz
tar -zxvf openerp-7.0-latest.tar.gz  --transform 's!^[^/]\+\($\|/\)!openerp\1!'
cd openerp
python setup.py install
rm -rf /usr/local/bin/openerp-server
cp openerp-server /usr/local/bin
cp install/openerp-server.init /etc/init.d/openerp
cp install/openerp-server.conf /etc
chown openerp:openerp /etc/openerp-server.conf
chmod u+x /etc/init.d/openerp
chkconfig openerp on
service  openerp start

答案 1 :(得分:0)

它与Ubuntu几乎相同,您可以按照这些步骤进行操作

安装并配置数据库服务器PostgreSQL

sudo yum install postgresql

然后在postgres上配置OpenERP用户:

首先更改为postgres用户,以便我们拥有配置数据库所需的权限。

sudo su - postgres

现在创建一个新的数据库用户。这样OpenERP具有连接PostgreSQL以及创建和删除数据库的访问权限。记住你在这里选择的密码;你以后会需要它:

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp Enter password for new role: * Enter it again: *

最后退出postgres用户帐户:

exit

为服务器安装必要的Python库

sudo yum install python-dateutil python-docutils python-feedparser python-gdata \ python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid \ python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing \ python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject \ python-webdav python-werkzeug python-xlwt python-yaml python-zsi

你也可以使用pip和easy_install来安装python包

下载Openerp服务器

并提取文件而不是运行openerp-server