Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

    开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

    如果您登录系统碰到问题,请在微信公众号留言:

    CentOS 5.4 下源码安装 openerp 6.1

    Odoo 安装指南
    5
    6
    8516
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      whitecrow_ last edited by

      写在前面:
      一  openerp 依赖python > 2.6  数据库 postgresql > 8.3 版本。
      二  openerp安装中python依赖库比较多,如果每一个库都编译安装那么依赖问题解决起来比较麻烦,为了安装方便,本文在基础软件安装中使用了 yum 和python默认安装安装方式,在参考本文安装教程之前请确认您的CentOS 能够连上互联网并且正常使用yum资源。

      三 安装文档
      1 安装Pyhton 2.7.3:
      [color=blue]
      [[email protected] install]#wget -t0 -c http://python.org/ftp/python/2.7.3/Python-2.7.3.tgz br />[[email protected] install]# tar -zxf Python-2.7.3.tgz && cd  Python-2.7.3
      [[email protected] Python-2.7.3]# ./configure && make && make install
      [/color]
      **注:重新登陆一次让环境变量重新加载一下
      2 安装 python setup 工具:
      [color=blue]
      [[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz br />[[email protected] install]# tar -zxf setuptools-0.6c11.tar.gz && cd setuptools-0.6c11
      [[email protected] setuptools-0.6c11]# python setup.py install
      [/color]
      3 安装并且初始化 postgresql 数据库
      [color=blue]
      [[email protected] install]#wget -t0 -c http://ftp.postgresql.org/pub/source/v9.1.0/postgresql-9.1.0.tar.gz br />[[email protected] install]# tar -zxf postgresql-9.1.0.tar.gz && cd postgresql-9.1.0
      [[email protected] install]# ./configure --prefix=/usr/local/postgresql-9.1  && make && make install
      [[email protected] postgresql-9.1.0]# groupadd postgres
      [[email protected] postgresql-9.1.0]# useradd  postgres  -g  postgres
      [[email protected] ~]# mkdir /data/postgresqldata
      [[email protected] ~]# chown postgres.postgres /data/postgresqldata/ -R
      [[email protected] ~]# chmod g+w /data/postgresqldata/ -R
      [[email protected] ~]# su postgres
      bash-3.2$ cd /data/postgresqldata/
      bash-3.2$  export LC_ALL=zh_CN.UTF_8
      bash-3.2$ cd /usr/local/postgresql-9.1/bin/
      bash-3.2$ ./initdb  -D /data/postgresqldata/ -E utf8

      bash-3.2$ cd /data/postgresqldata/
      bash-3.2$ vim postgresql.conf
      ----取消如下两行注释
      listen_addresses = '127.0.0.1'
      port = 5432
      ----访问ip权限设置 由于我的是本机因此设置 127.0.0.1
      bash-3.2$ vim pg_hba.conf 
      host    all        all        127.0.0.1/32          trust
      -----启动数据库
      bash-3.2$ cd -
      bash-3.2$  ./pg_ctl -D /data/postgresqldata -l /data/postgresqldata/postgresql.log start
      ---- 检查数据库
      bash-3.2$./psql -l
              数据库列表
        名字    |  所有者  | 编码
      -----------+----------+------
      postgres  | postgres | UTF8
      template0 | postgres | UTF8
      template1 | postgres | UTF8

      -------建立数据库用户并且授权
      bash-3.2$ ./createuser openerp
      Shall the new role be a superuser? (y/n) y
      CREATE ROLE

      bash-3.2$ ./psql template1
      template1=# alter role openerp with password '9654321';
      ALTER ROLE


      [/color]



      4 安装openerp python 依赖包
      [color=blue]
      [[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/l/lxml/lxml-3.0.1.tar.gz br />[[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.1.tar.gz 
      [[email protected] install]#wget -t0 -c [检测到链接无效,已移除] br />[[email protected] feedparser-5.1.3]# yum install python-ldap -y
      [[email protected] install]# yum install libxslt-python.x86_64 -y
      [[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/l/lxml/lxml-3.0.1.tar.gz br />[[email protected] install]# http://pypi.python.org/packages/source/M/Mako/Mako-0.7.3.tar.gz br />[[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/p/python-openid/python-openid-2.2.5.tar.gz br />[[email protected] install]#http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.4.tar.gz
      [[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/B/Babel/Babel-0.9.6.tar.gz br />[[email protected] install]#wget -t0 -c [检测到链接无效,已移除] br />[[email protected] install]#http://pydot.googlecode.com/files/pydot-1.0.28.tar.gz
      [[email protected] install]#http://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.6.tar.gz#md5=1e41cb219dae9fc353bd4cd47636b283
      [[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/r/reportlab/reportlab-2.5.tar.gz br />[[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/s/simplejson/simplejson-2.6.2.tar.gz br />[[email protected] install]#wget -t0 -c http://pypi.python.org/packages/source/v/vatnumber/vatnumber-1.0.tar.gz br />[[email protected] install]#http://pypi.python.org/packages/source/v/vobject/vobject-0.8.1c.tar.gz
      [[email protected] install]#http://pypi.python.org/packages/source/p/python-datetime-tz/python-datetime-tz-0.2.tar.gz
      [[email protected] install]#wget -t0 -c http://downloads.sourceforge.net/project/python-webdav/python-webdav_0.5.tar.gz br />[[email protected] install]#wget -t0 -c  http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-0.8.3.tar.gz br />[[email protected] install]#wget -t0 -c http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gz br />[[email protected] install]#http://pypi.python.org/packages/source/x/xlwt/xlwt-0.7.4.tar.gz
      [[email protected] install]#wget -t0 -c http://downloads.sourceforge.net/project/pywebsvcs/ZSI/ZSI-2.0/ZSI-2.0.tar.gz br />[/color]
      ----所有包的安装方式都是python默认安装方式 解压缩安装包 然后 python setup.py install

      5 安装openerp server
      下载openerp 6.1 安装包:
      [color=blue]
      [[email protected] install]# wget -t0 -c [检测到链接无效,已移除] br />[[email protected] install]#cp openerp-6.1-1.tar.gz  /data/
      [[email protected] install]#tar -zxf openerp-6.1-1.tar.gz
      [/color]
      建立用户
      [color=blue]
      [[email protected] install]# groupadd  openerp
      [[email protected] install]# useradd openerp -g openerp
      [[email protected] install]# su openerp
      [[email protected] install]$ psql -d postgres
      postgres=# CREATE DATABASE openerp;
      [/color]
      建立初始化配置文件
      [color=blue]
      [[email protected] install]$  /data/openerp-6.1-1/openerp-server -s
      [/color]
      control + c 停止执行 然后运行以下命令在后台启动openerp 服务
      [color=blue]
      /data/openerp-6.1-1/openerp-server -c /home/openerp/.openerp_serverrc &
      [/color]
      如果没报错那么你可以直接用浏览器访问你的openerp服务了 默认端口是8069
      http://xxx.xx.xx.xx:8069

      1 Reply Last reply Reply Quote 0
      • C
        ccdos last edited by

        果然是  牛人

        1 Reply Last reply Reply Quote 0
        • L
          loloto last edited by

          很详细的过程,对菜鸟帮助很大

          1 Reply Last reply Reply Quote 0
          • mrshelly
            mrshelly last edited by

            要是再附上 rpm deb 的安装方式就更棒了...

            1 Reply Last reply Reply Quote 0
            • P
              padola last edited by

              不错的教程,但是linux的变数太多,新手 照猫画虎也未必能一次成功
              需要安装的库
              yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers sqlite-devel libaio libaio-devel

              yum install zlib

              yum install zlib-devel

              yum install readline readline-devel
              yum install ncurses-devel ncurses

              1 Reply Last reply Reply Quote 0
              • First post
                Last post