歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 在Ubuntu中安裝和使用 OpenERP V6.1 注意事項

在Ubuntu中安裝和使用 OpenERP V6.1 注意事項

日期:2017/2/28 15:56:25   编辑:Linux教程

一、安裝所需的依賴

在OpenERP v6.1RC1 安裝中一些依賴要安裝,不然會出現錯誤。這裡是期望的依賴:
ZSI 2.1-a1
Werkzeug 0.8.1
vobject 0.8.1c
vatnumber 1.0
simplejson 2.1.6
reportlab 2.5
PyYAML 3.09
PyWebDAV 0.9.4.1
pytz 2011d
python-openid 2.2.5
python-ldap 2.4.4
python-dateutil 1.5
pydot 1.0.23
psycopg2 2.4.2
Mako 0.5.0
lxml 2.3
gdata 2.0.10
feedparser 5.0.1
Babel 0.9.6
setuptools 0.6c11
MarkupSafe 0.15

A simple command to force most of them in Ubuntu 11.10 environment:在Unbutu 下安裝這些依賴的命令:
sudo apt-get install python-lxml python-mako python-egenix-mxdatetime python-dateutil python-psycopg2 python-pychart python-pydot python-tz python-reportlab python-yaml python-ldap libldap2-dev libsasl2-dev python-vobject python-dev -y

安裝完後最好檢查一下安裝的上述依賴的版本,我安裝時就是因為Werkzeug 0.5.1,結果web模塊死活啟動不了。

Ubuntu 10.04中源代碼安裝OpenERP-web 6.0.3及常見Bug解決 http://www.linuxidc.com/Linux/2012-02/54543.htm

OpenERP實戰手冊:界面中文化 http://www.linuxidc.com/Linux/2012-02/54541.htm

二、源碼運行命令為在源碼目錄下執行:openerp-server --addons-path=openerp/addons --load=web

三、OpenERP V6.1服務在Ubuntu下默認的web服務端口為8069。
即OpenERP的web客戶端登錄地址為:http://127.0.0.1:8069/
四、 如果postgres服務不能啟動,那你就嘗試下面方法:

1、第一種方法 you only need to add a user to postgres ( super user ) that is the same as the account running the executable ..你需要為postgres數據庫添加一個超級管理賬戶,這個賬戶與運行OpenEopenerp-seve可執行文件的賬戶相同。

So if the user running openerp-server is 'dumbo' you need a user 'dumbo' in postgres with superuser 如果你運行openerp-sever的賬戶為dumbo,你就需要在postgres中有一個dumbo超級管理員賬戶。

sudo su - postgres
createuser dumbo
Shall the new role be a superuser? (y/n) y
psql -d template1
#psql (8.4.7)
#Type "help" for help.
template1=# ALTER USER {same user as above} WITH PASSWORD 'test1234'; {your password here}
template1=# \q
exit

上面是用命令行實現的,你也可以用PgAdmin 圖形界面實現上述功能。

2、先執行命令

su - openerp

and after that run the serve 然後再運行服務啟動命令。

三、登錄後不能設置公司圖形標志,保存標志時出錯信息如下:

Your version of OpenERP is unsupported. Support & maintenance services are available here: OpenERP Entreprise.
OpenERP Server Error

--------------------------------------------------------------------------------

Client Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/openerp-6.1dev_20120116_020001-py2.6.egg/openerp/addons/web/common/http.py", line 176, in dispatch response["result"] = method(controller, self, **self.params) File "/usr/local/lib/python2.6/dist-packages/openerp-6.1dev_20120116_020001-py2.6.egg/openerp/addons/web/controllers/main.py", line 826, in save r = m.write([id], data, req.session.eval_context(req.context)) File "/usr/local/lib/python2.6/dist-packages/openerp-6.1dev_20120116_020001-py2.6.egg/openerp/addons/web/common/openerplib/main.py", line 250, in proxy args, kw) File "/usr/local/lib/python2.6/dist-packages/openerp-6.1dev_20120116_020001-py2.6.egg/openerp/addons/web/common/openerplib/main.py", line 117, in proxy result = self.connector.send(self.service_name, method, *args) File "/usr/local/lib/python2.6/dist-packages/openerp-6.1dev_20120116_020001-py2.6.egg/openerp/addons/web/common/http.py", line 579, in send

Copyright © Linux教程網 All Rights Reserved