OpenERP服务器安装

安装所需要的包

You need to have Python 2 (2.5 or later for OpenERP v6.0, 2.6 or 2.7 for v6.1) in your Ubuntu system, built-in in Ubuntu version 10.04 and above.

You also need to install the following Python libraries, because OpenERP Server uses these packages.

To install the required libraries on your Ubuntu system, you can do the following in your favourite shell:

  • lxml : lxml 是个具有丰富特性且易用的库, 用于 Python 语言处理 XML 和 HTML.

    1. sudo apt-get install python-lxml
  • mako : Hyperfast and lightweight templating for the Python platform.

    1. sudo apt-get install python-mako
  • python-dateutil : The dateutil module provides powerful extensions to the standard datetime module, available in Python 2.3+.

    1. sudo apt-get install python-dateutil
  • psycopg2 : Psycopg is the most popular PostgreSQL adapter for the Python programming language.

    1. sudo apt-get install python-psycopg2
  • pychart : PyChart is a Python library for creating high quality Encapsulated Postscript, PDF, PNG, or SVG charts.

    1. sudo apt-get install python-pychart
  • pydot : This module provides a full interface to create, handle, modify and process graphs in Graphviz’s dot language.

    1. sudo apt-get install python-pydot
  • pytz : World Timezone Definitions for Python.

    1. sudo apt-get install python-tz
  • reportlab : ReportLab 工具是个经时间证明,超强,开源的引擎,以 RML 为基础,用于 编程创建 PDF 文档和 and 表格L. 也包括了一个创建平台无关的向量图像的库.是用 python 写成的一个快速、灵活、可伸缩、交叉平台解决方案。

    1. sudo apt-get install python-reportlab
  • pyyaml : PyYAML is a YAML parser and emitter for Python.

    1. sudo apt-get install python-yaml
  • vobject : VObject简化了解析和创建iCalendar和vCard对象的过程。

    1. sudo apt-get install python-vobject

下载 OpenERP 服务器

OpenERP 服务器可从这里下 载 OpenERP 网站的下载页面

测试 OpenERP 服务器

如果你只想测试服务器, 你不需要安装它.仅仅解包并 启动 openerp-server 执行文件即可:

  1. tar -xzf openerp-server-6.0.2.tar.gz
  2. cd openerp-server-6.0.2/bin
  3. python openerp-server.py

可用的下面的命令行参数列表能通过 命令行开关 -h 获得:

  1. python openerp-server.py -h

安装 OpenERP 服务器

OpenERP 服务器能非常容易地使用 setup.py 文件安装:

  1. tar -xzf openerp-server-6.0.2.tar.gz
  2. cd openerp-server-6.0.2
  3. sudo python setup.py install

如果 PostgreSQL 服务器已经启动并正在运行,你能用下列命令运行OpenERP 服务器:

  1. openerp-server

如果你还没有启动 PostgreSQL 服务器并运行,请参阅 PostgreSQL 数据库安装与配置.

You can find the OpenERP server configuration file at ~/openerp-server-6.0.2/doc/openerp-server.conf.