跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 安装指南
  4. 从源代码安装TinyERP 4.2.2 Server

从源代码安装TinyERP 4.2.2 Server

已定时 已固定 已锁定 已移动 Odoo 安装指南
8 帖子 3 发布者 11.8k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • Y 离线
    Y 离线
    yjwen
    写于 最后由 编辑
    #1

    折腾了两天,终于把TinyERP Server搭建起来。下面把安装过程记个流水帐,希望对他人有所帮助。

    1. 安装环境
      RHEL AS4。对于Debian类的发行版,可以方便地通过apt-get获得所需的软件包。Fedora也很容易找到RPM包。不知道Fedora的RPM能不能在RHEL上安装。这次还是自己最习惯的源码安装方式吧。

    2. 必须的软件包,
      TinyERP Server 4.2.2
      ( tinyerp.com/download/stable/source/tinyerp-server-4.2.2.tar.gz )
      Python 2.5.2
      ( www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2 )
      注:虽然TinyERP里的INSTALL只说要求Python是2.3及以上,但是实际上其代码中用到了些在2.4版才支持的函数,所以Python的版本必须是2.4及以上。
      PostgreSQL 8.2.7
      ( www.postgresql.org/ftp/source/v8.2.7/ )
      psycopg 1.1.21
      ( www.initd.org/pub/software/psycopg/psycopg-1.1.21.tar.gz )
      ReportLab 2.1
      ( www.reportlab.org/ftp/ReportLab_2_1.tgz )
      libxml2 2.6.27
      ( ftp://xmlsoft.org/libxml2/libxml2-2.6.27.tar.gz )
      libxslt 1.1.23
      ( ftp://xmlsoft.org/libxml2/libxslt-1.1.23.tar.gz )

    3. 安装Python
      现在系统已经装有2.4以上的Python的可以跳过。解压后,在源代码目录下:

    ./configure
    make
    sudo make install

    安装完成后可以用/usr/local/bin/python2.5启动。

    1. 安装libxml2及libxslt
      在各个的源代码目录下运行

    ./configure --with-python==/usr/local
    make
    sudo make install

    --with-python保证将libxml2及libxslt的python bindings安装到python的site-package中。

    1. 安装及配置PostgreSQL
      按照其源代码目录中的INSTALL的说明

    ./configure
    make
    sudo make install

    然后创建一个PostgreSQL的用户,专门用于访问PostgreSQL的数据库
    su
    adduser postgres
    mkdir /usr/local/pgsql/data
    chown postgres /usr/local/pgsql/data
    su postgres
    /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
    之后tinyERP将利用postgres这个用户名去访问/usr/local/pgsql/data中的数据库。

    1. 安装psycopg
      psycopg是一个python调用PostgreSQL数据操作的接口包。安装命令也是:
      ./configure
      make
      sudo make install

    2. 安装reportLab
      进入reportLab的代码目录,运行:
      /usr/local/bin/python2.5 setup.py build
      sudo /usr/local/bin/python2.5 setup.py install
      将reportLab装入python的site-package中。

    3. 安装TinyERP
      上述安装完成后,就已经可以直接运行TinyERP了。为了设定Server方便,也可以将TinyERP安装到Python的site-package中。在其代码根目录中运行命令:
      /usr/local/bin/python2.5 setup.py build
      sudo /usr/local/bin/python2.5 setup.py install

    4. 启动TinyERP Server
      命令为:
      /usr/local/bin/tinyerp-server -r postgres -w oopoopoop --db_host 127.0.0.1
      其中的-w oopoopoop指定的是postgres的登录密码,请自行修改。

    最后一步,就是启动TinyERP Client,连接到Server,开始工作啦。

    1 条回复 最后回复
    0
    • L 离线
      L 离线
      lingengxin
      写于 最后由 编辑
      #2

      [root@localhost psycopg-1.1.21]# ./configure --with-postgres-libraries=/usr/local/pgsql/lib --with-postgres-includes=/usr/local/pgsql/include --with-mxdatetime-includes=/usr/local/lib/python2.5/site-packages/mx/DateTime/mxDateTime
      checking for python... /usr/local/bin/python
      checking python version... 2.5
      checking python installation prefix... /usr/local
      checking python installation exec_prefix... /usr/local
      checking definitions in Python library makefile... done
      checking location of python library... $(prefix)/lib/python2.5/site-packages
      checking location of python shared modules... $(exec_prefix)/lib/python2.5/site-packages
      checking for gcc... gcc -pthread
      checking for C compiler default output file name... a.out
      checking whether the C compiler works... yes
      checking whether we are cross compiling... no
      checking for suffix of executables...
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether gcc -pthread accepts -g... yes
      checking for gcc -pthread option to accept ANSI C... none needed
      checking how to run the C preprocessor... gcc -pthread -E
      checking whether make sets $(MAKE)... yes
      checking for inline... inline
      checking PostgreSQL version... 8.2
      checking PostgreSQL type catalog... /usr/local/pgsql/include/server/catalog/pg_type.h
      checking for mxDateTime.h... configure: error: can't build without mx headers

      1 条回复 最后回复
      0
      • L 离线
        L 离线
        liuyuan_jq
        写于 最后由 编辑
        #3

        install the mx distribution and the pass the location of mxDateTime.h to the configure script with the --with-mxdatetime-includes switch.

        1 条回复 最后回复
        0
        • L 离线
          L 离线
          lingengxin
          写于 最后由 编辑
          #4

          似乎没有效果呀:命令如下:

          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

          1 条回复 最后回复
          0
          • L 离线
            L 离线
            lingengxin
            写于 最后由 编辑
            #5

            [root@localhost egenix-mx-base-3.0.0.linux-i686-py2.5_ucs4.prebuilt]# python setup.py build --skip install
            running build
            skipping the build process and reusing the existing build files and data
            restoring build data from a previous build run
            running install
            running install_lib
            running build_ext
            writing byte-compilation script '/tmp/tmpKVjGwu.py'
            /usr/local/bin/python -O /tmp/tmpKVjGwu.py
            removing /tmp/tmpKVjGwu.py
            running install_data
            running install_egg_info
            Removing /usr/local/lib/python2.5/site-packages/egenix_mx_base-3.0.0-py2.5.egg-info
            Writing /usr/local/lib/python2.5/site-packages/egenix_mx_base-3.0.0-py2.5.egg-info

            1 条回复 最后回复
            0
            • L 离线
              L 离线
              lingengxin
              写于 最后由 编辑
              #6

              大家在redhat下安装都没有碰到问题吗?

              1 条回复 最后回复
              0
              • L 离线
                L 离线
                liuyuan_jq
                写于 最后由 编辑
                #7

                yjwen可不可以把详细的安装方法再补充一下,大家安装你的安装方法,都不能成功。

                1 条回复 最后回复
                0

                • 登录

                • 没有帐号? 注册

                • 登录或注册以进行搜索。
                • 第一个帖子
                  最后一个帖子
                0
                • 版块
                • 标签
                • 热门
                • 用户
                • 群组