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.
Create new system user with this command
Now install and configure the PostgreSQL.
Now, install repository
And execute following commands:
psql postgres postgres
postgres=# alter user postgres with password ’postgres’;
ALTER ROLE
service postgresql-9.1 restart
listen_addresses
——————
*
(1 row)
postgres=# show port;
port
——
5432
(1 row)
You can download openerp source and install using setup.py install from : http://nightly.openerp.com/
Courtesy : http://intellectseed.wordpress.com
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
adduser openerp
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.
wget http://yum.pgrpms.org/9.1/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm
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:
cd /etc/yum.repos.d
vi CentOS-Base.repo
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’;
ALTER ROLE
postgres=#
By default postgresql access is limited to local
computer. For making it active, change into following files. You can
also change default port.
/var/lib/pgsql/9.1/data/postgresql.conf
After making changes, you have to restart postgresql service by following command.
service postgresql-9.1 restart
postgres=# show listen_addresses;
listen_addresses
——————
*
(1 row)
postgres=# show port;
port
——
5432
(1 row)
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.
easy_install python-openid
You can download openerp source and install using setup.py install from : http://nightly.openerp.com/
Courtesy : http://intellectseed.wordpress.com
No comments:
Post a Comment