简单说说Ubuntu利用bzr源码安装OpenERP7.0的操作步骤
1、修改Ubuntu国内更新源,具体方法自己baidu、google。
修改更新源后,更新系统 sudo apt-get update
sudo apt-get upgrade 复制代码
2、安装PostGreSQL sudo apt-get install postgresql 复制代码
安装完成后,PostgreSQL默认的超级用户为“postgres” 3、在PostgreSQL数据库中创建一个名为OpenERP密码为postgres的新用户
切换postgres用户 sudo su postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
Enter password for new role: postgres
Enter it again: postgres 复制代码
这里creatuser命令行各选项的意思: --createdb : the new user will be able to create new databases
--username postgres : createuser will use the postgres user (superuser)
--no-createrole : the new user will not be able to create new users
--pwprompt : createuser will ask you the new user’s password openerp : the new user’s name 复制代码
4、安装Python相关依赖包,提示:每次按方向键“上”重复上一条命令,只需要修改后面少部分命令。 sudo apt-get install python-docutils
sudo apt-get install python-gdata
sudo apt-get install python-mako
sudo apt-get install python-dateutil
sudo apt-get install python-feedparser
sudo apt-get install python-lxml
sudo apt-get install python-libxslt1 注意:这里是libxslt1 后面那个是数字1
sudo apt-get install python-ldap
sudo apt-get install python-reportlab
sudo apt-get install python-pybabel
sudo apt-get install python-pychart
sudo apt-get install python-openid
sudo apt-get install python-simplejson
sudo apt-get install python-psycopg2
sudo apt-get install python-vobject
sudo apt-get install python-tz
sudo apt-get install python-vatnumber
sudo apt-get install python-webdav
sudo apt-get install python-xlwt
sudo apt-get install python-werkzeug
sudo apt-get install python-yaml
sudo apt-get install python-zsi
sudo apt-get install python-jinja2
sudo apt-get install python-setuptools
sudo easy_install PIL
sudo easy_install unittest2
sudo easy_install mock 复制代码
5、创建一个新用户用来专门对OpenERP的相关操作。 sudo adduser --system --home=/opt/openerp --group openerp
adding system user `openerp' (UID 116) ...
adding new group `openerp' (GID 125) ...
adding new user `openerp' (UID 116) with group `openerp' ...
creating home directory `/opt/openerp' ... 复制代码
6、安装bzr并获取最新源码
安装bzr sudo apt-get install bzr 复制代码
获取最新源码,在主目录下执行(注意不要在中文目录下,否则源码运行会出错):
切换到openerp用户 sudo su openerp -s /bin/bash
cd ~
mkdir addons
cd addons
bzr branch lp:openobject-addons/7.0 这个过程会比较久
cd ..
mkdir server
cd server
bzr branch lp:openobject-server/7.0
cd ..
mkdir web
cd web
bzr branch lp:openerp-web/7.0 复制代码
进入/opt/openerp/server/7.0目录,运行: python openerp-server --addons-path=../../addons/7.0/,../../web/7.0/addons 复制代码
7、源码更新,分别进入addons、server、web下的70目录,运行bzr pull
8、添加oecn_base_fonts模块,修正pdf打印中文方块问题
到http://v6apps.openerp.com/ 搜索oecn_base_fonts 下载最新版本
cd 到oecn_base_fonts下载目录 cp oecn_base_fonts.zip /opt/openerp/addons/7.0
cd /opt/openerp/addons/7.0
unzip oecn_base_fonts.zip 复制代码
运行openerp python openerp-server --addons-path=../../addons/7.0/,../../web/7.0/addons 复制代码
以超级管理员admin登录后,进入用户设置勾选技术特性选项
设置 - 用户 - admin - 访问权限 - 勾选【技术特性】选项
保存重新以admin登录OpenERP 选择【更新模块列表】
在【可安装的模块中】搜索oecn_base_fonts 安装
进入【常规设置】
设置【RML Report Font】的中文字体路径,如:
/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc
并勾选【CJK Wrap】
简单说说Ubuntu利用bzr源码安装OpenERP7.0的操作步骤的更多相关文章
- 在 Ubuntu 上使用源码安装 OpenResty
镜像下载.域名解析.时间同步请点击 阿里云开源镜像站 本文将介绍如何在 Ubuntu 上使用源码安装 OpenResty. 目标 Ubuntu 18.04 OpenResty 1.19.3.2 安装依 ...
- CentOS7源码安装Redis5.0.4非关系型数据库
源码安装redis-5.0.4 一. 下载redis 1. 需要连接网络 二. 案例(另一种安装方法) [root@localhost ~]# wget http://download.redis.i ...
- 源码安装 qemu-2.0.0 及其依赖 glib-2.12.12
源码安装qemu-2.0.0 下载源代码并解压 http://wiki.qemu-project.org/download/qemu-2.0.0.tar.bz2 .tar.gz 编译及安装: cd q ...
- 【转】Win 7 下源码运行OpenERP7.0
原文地址:Win 7 下源码运行OpenERP7.0 安装Python2.7 下载地址:http://www.python.org/getit/注:OpenERP7.0支持的Python版本最高为2. ...
- 在Ubuntu Server上源码安装OpenERP 8.0,并配置wsgi和nginx运行环境
原文: How to install OpenERP 8.0 Alpha on a fresh Debian / Ubuntu server. OpenERP的安装,可以有多种方式,通过添加源,到 h ...
- [笔记] Ubuntu 18.04源码安装caffe流程
虽然Ubuntu 18.04可以通过apt安装caffe,但是为了使用最新的代码,还是值得从源码安装一遍的. 安装环境 OS: Ubuntu 18.04 64 bit 显卡: NVidia GTX 1 ...
- ubuntu php5.6源码安装
本系列的lnmp的大框架基本上是按照http://www.linuxzen.com/lnmphuan-jing-da-jian-wan-quan-shou-ce-si-lnmpda-jian-yuan ...
- ubuntu mysql5.7源码安装
本系列的lnmp的大框架基本上是按照http://www.linuxzen.com/lnmphuan-jing-da-jian-wan-quan-shou-ce-si-lnmpda-jian-yuan ...
- ubuntu16.04下源码安装onos1.0.2
由于工作需要,下载安装onos1.0.2的版本,大家看需求可以下载安装更高级的版本 参考链接:http://www.sdnlab.com/14650.html 1.系统环境 Ubuntu16.04 L ...
随机推荐
- The YubiKey NEO -- Smartcard features
Smartcard features on the YubiKey NEO YubiKeys are a line of small and low-cost hardware security to ...
- JTAG Pinouts
http://www.jtagtest.com/pinouts/ Pinouts ARM-20 (used with almost all ARM-based microcontrollers) AR ...
- VS2010发布网站
- 使用CSS3的@media来实现网页自适应
如今,电脑显示器的屏幕分辨率向越来越大发展,而手机等移动设备终端的分辨率却不可能大到哪里去.越来越多的网站,开始让自己的页面自适合各种分辨率,在小分辨率下显示基本的内容,在大分辨率下显示全部功能,甚至 ...
- 人类即将进入互联网梦境时代(IDA)
在电影<盗梦空间>中,男主角科布和妻子在梦境中生活了50年,从楼宇.商铺.到河流浅滩.一草一木.这两位造梦师用意念建造了属于自己的梦境空间.你或许并不会想到,在不久未来,这看似科幻的情节将 ...
- 【springMVC 后台跳转前台】1.使用ajax访问的后台,后台正常执行,返回数据,但是不能进入前台的ajax回调函数中 ----2.前后台都没有报错,不能进入ajax回调函数
问题1: 使用ajax访问的后台,后台正常执行,并且正常返回数据,但是不能进入前台的ajax回调函数中 问题展示: 问题解决: 最后发现是因为后台的方法并未加注解:@ResponseBody,导致方 ...
- 解决hue报错:timed out (code THRIFTSOCKET): None
报错栈: [/Jun/ :: +] decorators ERROR error running <function execute at 0x7fba2804ecf8> Tracebac ...
- OTL翻译(9) --常量的SQL语句
常量的SQL语句 一个没有绑定变量的SQL语句.SQL语句块或是存储过程就被称为常量的SQL语句.OTL通过一个静态的函数来执行这样的SQL语句. 例如: // static otl_cursor:: ...
- Javascript模块化工具require.js教程
转自:http://www.w3cschool.cc/w3cnote/requirejs-tutorial-1.html, http://www.w3cschool.cc/w3cnote/requir ...
- 【手势识别】简介 GestureDetector ScaleGestureDetector
2017-3-6 单点触摸手势识别器GestureDetector 当用户触摸屏幕的时候,会产生许多手势,例如down,up,scroll,filing等.一般情况下,我们可以通过View或Activ ...