Install openERP7.0 using the source code in CentOS6

Source: Internet
Author: User
Installation Background: CPU32bit, CentOS6.4, openERP7.0, linuxshell bash, PostgreSQL9.21.CentOS installation options include minimal installation, basic server installation, and virtual host installation. here, basic server installation is used. 2. install PostgreSQL. if you have other PostgreSQL versions, run the following command to uninstall PostgreSQL # yu

Installation Background: CPU32 bit, CentOS 6.4, openERP7.0, linux shell, bash, and PostgreSQL9.2

1.CentOS installation options include minimal installation, basic server installation, and virtual host installation..

2,Install postgresql9.2

If other PostgreSQL versions are available, run the command # yum remove postgres.

# Su root is installed with the root user. the user will be switched in the middle!

# Mkdir/tmp

# Cd/tmp: this is a temporary directory of the system, and the files in it are not important, even if accidental deletion is not harmful, it is recommended to perform temporary operations under the tmp directory.

# Rpm-Uvh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm

Use the following rpm for 64-bit cpu
# Rpm-Uvh http://yum.pgrpms.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm

# Yum-y install postgresql92 postgresql92-server postgresql92-libs postgresql92-contrib postgresql92-devel // use yum to install related dependency packages
# Service postgresql-9.2 initdb // initialize the pg database
# Service postgresql-9.2 start // start pg service
# Chkconfig postgresql-9.2 on // add the pg startup service to the CentOS startup list, which is equivalent to the startup item in windows

# Su-postgres // switch to postgres user. This user is automatically created for the installation package of pg. it is the default super user of pg and has some management commands in this user environment.
-Bash-4.1 (postgres) $ createuser-superuser openerp // Create a superuser called openerp (at this time, the created user is only a database user, and openerp does not exist in the operating system, note the differences)

3. install openerp

# Rpm-ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm // install the epel package from the network, 32bit to install this

# Rpm-ivh restart

Install the following

# Su root // switch back to root

# Yum-y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz python-matplotlib python-babel python-mako python-dateutil python-psycopg2 pychart pydot python-reportlab python-devel python- imaging python-vobject hippo-canvas-python mx python-gdata python-ldap python-openid python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib python-devel python-psutil python-docutils makeautomake gcc-c ++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav // install the OE dependent Library, most of them are python libraries, and some other dependent libraries
Wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.zip

# Unzip gdata-2.0.17.zip
# Cd gdata-2.0.17
# Python setup. py install

# Cd/tmp
# Rm-rf openerp * // clear all unnecessary files starting with the old openerp (use with caution)
# Wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz // download OE Source Code package, ready to install
# Tar xvzf openerp-7.0-latest.tar.gz // extract the OE Source Code package
# Mkdir/opt/oe7
# Cp-R openerp */{openerp, install/{openerp-server.init, openerp-server.conf}, openerp-server, setup. py}/opt/oe7 // copy the files we need to the installation directory
# Adduser openerp // Create an openerp user, which is associated with the openerp created by S
# Chown openerp: openerp/opt/oe7-R // Set all file owners in the OE installation directory as openerp users

# Cd/opt/oe7
# Chmod u + x openerp-server.init // The. init file is a startup script for oe and you need to set executable permissions for it
# Mv openerp-server.init/etc/init. d/oe7server
# Chkconfig oe7server on // add oe to the CentOS startup list
# Cp openerp-server.conf/etc // Copy the OE configuration file to the/etc directory, if you want to customize the configuration file path can be achieved by setting options for openerp-server or modifying the path in the openerp-server.init file, the method used here does not need to be modified, relatively simple
// Here the OE is basically installed, but an error will be reported during startup, mainly because some dependent packages are still missing

# Cd/opt/oe7
# Python setup. py install // This installer automatically downloads the required dependency packages from the Internet and creates some directories. we only need to keep openerp. egg-info Directory. if this directory is deleted, the OE startup will receive a warning.

# Adduser openerp
# Chown openerp: openerp/opt/oe7-R // recursively grant the owner of the OE installation directory to openerp

# Service oe7server start // start OE,

An error is reported because the pid file cannot be found when/etc/init. d/oe7server is executed. open/etc/init. d/oe7server in a text editor.

View, found that PIDFILE =/var/run/openerp/openerp-server.pid this line caused,

Create an empty file with a text editor and name it a openerp-server.pid,

Put it under the specified directory/var/run/openerp/. if there is no corresponding directory, you can manually create it.

# Chmod 755 openerp-server.pid // modify read/write permissions

# Service oe7server restart

Enter 127.0.0.1: 8069 in the browser to see if you can see the openerp login screen.

 

Note: The installed module directory is/usr/lib/python2.6/site-packages/openerp-7.0_20140616_231123-py2.6.egg/openerp/addons

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.