As we all know that we can install OpenERP on most of the operating system. Today we have done installation on CentOS. Steps are very easy to perform this operation.
Persons who have experience on Ubuntu, they can do this job very easily. We have a command in Ubuntu ‘apt-get install‘ to install required packages. Whereas in CentOS, you can do this with the help of ‘yum install‘ command.
Create new system user with this command
Now install and configure the PostgreSQL.
yum install postgresql postgresql-server
Sometimes it may happen that by default system is installing older version of postgresql (version from 8 series). Here, I am going to setup version 9.X on my machine. I have installed CentOS 6.3 x64. I have to take postgresql from repository using wget command.
Now, install repository
rpm -i pgdg-centos91-9.1-4.noarch.rpm
For excluding posgresql, we have to change into repository file of CentOS and add ‘exclude=postgresql*’ under the [base] and [updates] sections:
Let’s check that postgresql packages are available.
yum list postgres*
After above configuration, we can install PostgreSQL 9.
yum install postgresql91 postgresql91-server
And execute following commands:
service postgresql-9.1 initdb
service postgresql-9.1 start
To set postgres user, password switch to postgres user.
su - postgres
psql postgres postgres
postgres=# alter user postgres with password ‘postgres’;
By default postgresql access is limited to local computer. For making it active, change into following files. You can also change default port.
After making changes, you have to restart postgresql service by following command.
service postgresql-9.1 restart
postgres=# show listen_addresses;
postgres=# show port;
Now we have to setup and install required packages for OpenERP.
yum install python-dateutil python-feedparser python-gdata python-ldap
python-libxslt1 python-lxml python-mako python-openid python-psycopg2
python-pybabel python-pychart python-pydot python-pyparsing python-reportlab
python-simplejson python-tz python-vatnumber python-vobject python-webdav
python-werkzeug python-xlwt python-yaml python-zsi
For missing packages, you can execute it following way.
And its done.