Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • 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

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 开发与实施交流
  4. Redhat上安装tiny erp

Redhat上安装tiny erp

Scheduled Pinned Locked Moved Odoo 开发与实施交流
3 Posts 2 Posters 6.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jeffgeng
    wrote on last edited by
    #1

    下载安装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/pgsql

    vi ~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就可以了。

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yuzifu
      wrote on last edited by
      #2

      楼主是在postgresql8.3下安装的?
      我在postgresql8.3下从未成功过。
      大家都推荐在postgresql8.2下安装。

      1 Reply Last reply
      0

      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Tags
      • Popular
      • Users
      • Groups