简体   繁体   English

如何在Mac OS X Mavericks上安装OpenERP?

[英]How to install OpenERP on Mac OS X Mavericks?

I want to install OpenERP v7 on Mac OS X. How can I install it? 我想在Mac OS X上安装OpenERP v7。如何安装它?

I tried to install it brew install postgresql I succeed to install postgresql but when I create the user with following command createuser openerp I got the error like createuser:command not found I also got an error when I type psql . 我试图安装它brew install postgresql我成功安装postgresql但是当我用以下命令创建用户createuser openerp我得到了错误,如createuser:command not found我在输入psql时也遇到了错误。

Note: OpenERP is now called Odoo. 注意:OpenERP现在称为Odoo。

  1. Make sure you have brew installed. 确保已安装brew
  2. brew install postgresql
  3. postgres -D /usr/local/var/postgres or launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist postgres -D /usr/local/var/postgreslaunchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
  4. createdb odootest (not really needed if you use sample data) createdb odootest (如果使用样本数据则不需要)
  5. git clone https://github.com/odoo/odoo.git , the repo is 500MB big so this takes a while git clone https://github.com/odoo/odoo.git是500MB大,所以这需要一段时间
  6. cd odoo
  7. git checkout origin/7.0 switch to 7.0 branch (this should be a better command because it leaves me in detached head, please edit) git checkout origin/7.0切换到7.0分支(这应该是一个更好的命令,因为它让我处于分离头,请编辑)
  8. sudo python setup.py install , this will also install many dependencies with easy_install , ignore all the warnings sudo python setup.py install ,这还将使用easy_install安装许多依赖项,忽略所有警告
  9. python openerp-server -s to start with sample data generated by odoo. python openerp-server -s以odoo生成的样本数据开始。 If you 如果你

I also had to sudo easy_install pyPdf but I'm not sure if that's because I first tried the master branch. 我还必须sudo easy_install pyPdf但是我不确定这是否是因为我首先尝试了master分支。 If you experience errors for missing libraries simply easy_install them. 如果您遇到缺少库的错误,只需easy_install即可。

  1. Install PostgreSQL 安装PostgreSQL
  2. Create a user for OpenERP 为OpenERP创建用户
  3. Install all dependencies for Python, using brew or MacPorts 使用brew或MacPorts安装Python的所有依赖项
  4. Download OpenERP and extract it 下载OpenERP并解压缩
  5. Run the following command: cd openerp; python openerp-server 运行以下命令: cd openerp; python openerp-server cd openerp; python openerp-server

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM