在Ubuntu中安装和使用 OpenERP V6.1 注意事项
一、安装所需的依赖
在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模块死活启动不了。
二、源码运行命令为在源码目录下执行: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