zoukankan      html  css  js  c++  java
  • centos6.5 尝试下用 yum 安装 oddo

    我们要安装PostgreSQL,因为OpenERP使用PostgreSQL作为它的数据库。要安装它,我们需要运行下面的命令。

    yum install postgresql postgresql-server postgresql-libs

    安装完成后,我们需要用下面的命令初始化数据库。

    service postgresql-setup initdb

    开启postgresql服务

    service postgresql start

    设置开机启动

    chkconfig postgresql on

    执行下面进入 bash

    su - postgres

    输入:psql
    然后在输入 password postgres 设置密码
    postgres=# password postgres
    输入 q 退出 psql

    在输入exit 退出bash

    在初始化数据库初始化完成后,我们要添加 EPEL(企业版Linux的额外包)到我们的CentOS中。Odoo(或者OpenERP)依赖的Python运行时环境以及其他包没有包含在标准仓库中。这样我们要为企业版Linux添加额外的包仓库支持来解决Odoo所需要的依赖。要安装完成,我们需要运行下面的命令。

    yum install epel-release

    现在,安装EPEL后,我们现在使用yum-config-manager添加Odoo(OpenERP)的仓库

    yum install yum-utils

    yum-config-manager --add-repo=https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo

    安装Odoo 8 (OpenERP)

    yum install -y odoo

    此时会发现一个错误,odoo需要python 2.7,而yum中带的是2.6,更新yum后还是2,6.

    升级到2.7 参见:http://www.linuxidc.com/Linux/2014-07/104555.htm

    继续安装odoo ...发现错误:
    正在安装 : odoo-8.0_20151028-1.noarch 40/40
    Non-fatal POSTIN scriptlet failure in rpm package odoo-8.0_20151028-1.noarch
    touch: 无法创建"/lib/systemd/system/odoo.service": 没有那个文件或目录
    warning: %post(odoo-8.0_20151028-1.noarch) scriptlet failed, exit status 1


    看来必须升级到centos7才行了。

  • 相关阅读:
    A Survey of Deep Clustering Algorithms
    随机傅里叶特征(Random Fourier Features)
    MATLAB实例:二元高斯分布图
    MATLAB实例:PCA(主成成分分析)详解
    MATLAB用“fitgmdist”函数拟合高斯混合模型(一维数据)
    Extreme Learning Machine
    在MATLAB R2018b中配置VLFeat
    Deep Clustering Algorithms
    机器学习优化算法
    sql注入总结
  • 原文地址:https://www.cnblogs.com/ikodota/p/4919243.html
Copyright © 2011-2022 走看看