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 openerpI出现了类似createuser:command not found的错误,我输入psql时也出现了错误。
2 个解决方案
#1
6
Note: OpenERP is now called Odoo.
注意:OpenERP现在被称为Odoo。
- Make sure you have brew installed.
- 确保你已经安装了brew。
brew install postgresql
- 酿造安装postgresql
-
postgres -D /usr/local/var/postgres
orlaunchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- postgres -D /usr/ local/var/postgrel load或launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
-
createdb odootest
(not really needed if you use sample data) - createdb odootest(如果您使用示例数据,则不需要)
-
git clone https://github.com/odoo/odoo.git
, the repo is 500MB big so this takes a while - git复制https://github.com/odoo/odoo.git, repo是500MB大,所以这需要一段时间。
cd odoo
- cd odoo
-
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分支(这应该是更好的命令,因为它将我留在分离的head中,请编辑)
-
sudo python setup.py install
, this will also install many dependencies witheasy_install
, ignore all the warnings - sudo python设置。py安装,这也将安装easy_install的许多依赖项,忽略所有的警告
-
python openerp-server -s
to start with sample data generated by odoo. If you - python openerp-server -s从odoo生成的示例数据开始。如果你
I also had to sudo easy_install pyPdf
but I'm not sure if that's because I first tried the master branch. If you experience errors for missing libraries simply easy_install
them.
我还不得不sudo easy_install pyPdf,但我不确定这是不是因为我第一次尝试了master分支。如果您遇到丢失库的错误,只需安装它们。
#2
1
- Install PostgreSQL
- 安装PostgreSQL
- Create a user for OpenERP
- 为OpenERP创建一个用户
- Install all dependencies for Python, using
brew
or MacPorts - 使用brew或MacPorts为Python安装所有依赖项
- Download OpenERP and extract it
- 下载OpenERP并提取它
- Run the following command:
cd openerp; python openerp-server
- 运行以下命令:cd openerp;python openerp-server
#1
6
Note: OpenERP is now called Odoo.
注意:OpenERP现在被称为Odoo。
- Make sure you have brew installed.
- 确保你已经安装了brew。
brew install postgresql
- 酿造安装postgresql
-
postgres -D /usr/local/var/postgres
orlaunchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- postgres -D /usr/ local/var/postgrel load或launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
-
createdb odootest
(not really needed if you use sample data) - createdb odootest(如果您使用示例数据,则不需要)
-
git clone https://github.com/odoo/odoo.git
, the repo is 500MB big so this takes a while - git复制https://github.com/odoo/odoo.git, repo是500MB大,所以这需要一段时间。
cd odoo
- cd odoo
-
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分支(这应该是更好的命令,因为它将我留在分离的head中,请编辑)
-
sudo python setup.py install
, this will also install many dependencies witheasy_install
, ignore all the warnings - sudo python设置。py安装,这也将安装easy_install的许多依赖项,忽略所有的警告
-
python openerp-server -s
to start with sample data generated by odoo. If you - python openerp-server -s从odoo生成的示例数据开始。如果你
I also had to sudo easy_install pyPdf
but I'm not sure if that's because I first tried the master branch. If you experience errors for missing libraries simply easy_install
them.
我还不得不sudo easy_install pyPdf,但我不确定这是不是因为我第一次尝试了master分支。如果您遇到丢失库的错误,只需安装它们。
#2
1
- Install PostgreSQL
- 安装PostgreSQL
- Create a user for OpenERP
- 为OpenERP创建一个用户
- Install all dependencies for Python, using
brew
or MacPorts - 使用brew或MacPorts为Python安装所有依赖项
- Download OpenERP and extract it
- 下载OpenERP并提取它
- Run the following command:
cd openerp; python openerp-server
- 运行以下命令:cd openerp;python openerp-server