OpenERP Installation Guide
--By Bista Solutions
Requisites for Python:
Install following modules:
- readline-devel
- libxml2
- libxml2-devel
- libxslt
- libxslt-devel
- zlib
- zlib-devel
Note: Above requisites were identified while installing python modules on a centos 64 bit server, these might change server to server.
- Postgresql Installation from Source
- Download source (tar.gz) of postgresql 8.4.6 from http://postgresql.org
- Extract using #tar –xvzf postgresql_file_name
- cd to postgresql folder and run following commands:
- #./configure
- #make
- #make install
- After successful installation create a user postgres and data directory:
- #adduser postgres
- #mkdir /usr/local/pgsql/data
- #chown postgres /usr/local/pgsql/data
- Now , initialize the cluster: #/usr/local/pgsql/bin/initd/ -D /usr/local/pgsql/data
- Run postgresql: #su postgres -c ‘/usr/local/pgsql/bin/postgres –D /usr/local/pgsql/data’ >/home/postgres/postgres_logfile 2>&1 &
- Create symbolic links :
- #ln /usr/local/pgsql/bin/psql /usr/bin/psql –s
- # ln /usr/local/pgsql/bin/pg_dump /usr/bin/ pg_dump –s
- # ln /usr/local/pgsql/bin/pg_dumpall /usr/bin/ pg_dumpall –s
- # ln /usr/local/pgsql/pg_restore /usr/bin/ pg_restore –s
- Create a user in postgresql with which openerp can communicate:
- #psql –d template1 –U postgres
- #create user openerp with password ‘solutions’ createdb;
- Above user and password will be used in config file of OpenERP server, so please make a note of it.
- Python Installation from Source:
- Download Python2.6.7 from http://python.org
- Extract using #tar –xvzf python_file_name
- cd to python folder and run following commands:
- #./configure
- #make
- #make install
- Check installed python details: #python2.6 -V
- After successful installation of python, go to http://python.org/pypi and download setuptools module(Copy link address of source and download using wget command)
Note: All python modules are available on ftp://ftp.bistasolutions.com/OpenERP_python_mods
- Extract using #tar –xvzf setuptools_file.tar.gz
- Cd to setuptools folder and run #python2.6 setup.py install
- Once installed, easy_install-2.6 command will be available.
- Following are the python modules required by OpenERP:
- lxml - #easy_install-2.6 lxml
Requisites for this are: libxml2, libxml-devel2, libxslt and libxslt-devel
- mako - #easy_install-2.6 mako
- pydot - #easy_install-2.6 pydot
- pytz - #easy_install-2.6 pytz
- reportlab - #easy_install-2.6 reportlab
- caldav - #easy_install-2.6 caldav
- python-dateutil - #easy_install-2.6 python-dateutil
- psycopg2 -
- Give LD_LIBRARY_PATH in /etc/profile as
- #nano /etc/profile
- At the end of file put : export LD_LIBRARY_PATH=/usr/local/pgsql/lib
- CTRL+O and CTRL+X
- #source /etc/profile
- #easy_install-2.6 psycopg2
- Run #python2.6
- #import psycopg2
- If no errors than psycopg2 installation successful, otherwise download psycopg2 as per point no. 5,6 7
- Yaml - #easy_install-2.6 PyYAML
- Cherrypy - #easy_install-2.6 cherrypy==3.1.2
- Babel - #easy_install-2.6 babel
- FormEncode - #easy_install-2.6 formencode==1.2.2
- Omelette- #easy_install-2.6 omelette
- Python Imaging Library -#easy_install-2.6 pil
- OpenERP Server and Web installation:
- Download Source files of OpenERP Server from http://openerp.com
- Extract using #tar –xvzf openerp-server.tar.gz
- Cd to openerp-server folder and run:#python2.6 setup.py install
- Create system user for :
- #adduser openerp
- Change db_user,db_password,admin_passwd in /usr/local/lib/python2.6/site-packages/openerp-server/tools/config.py
- Run #su openerp –c ‘openerp-server start’. If this runs successfully then to keep it running first do CTRL+C then execute: # su openerp –c ‘openerp-server start’ >/home/openerp/oerp_serv_logfile 2>&1 &
- Download Source files of OpenERP Web from http://openerp.com
- Extract using #tar –xvzf openerp-web.tar.gz
- Cd to openerp-web folder and run:#python2.6 setup.py install
- Run #su openerp –c ‘openerp-web start’. If this runs successfully then to keep it running first do CTRL+C then execute: # su openerp –c ‘openerp-web start’ > /home/openerp/oerp_web_logfile 2>&1 &
- To open port on linux use command: #iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
- Put the following three lines in /etc/rc.local so that OpenERP starts on Server Startup:
- #nano /etc/rc.local
- Put the following three line(obviously without #) at the last:
- #su postgres -c ‘/usr/local/pgsql/postgres –D /usr/local/pgsql/data’ >/home/postgres/postgres_logfile 2>&1 &
- #su openerp –c ‘openerp-server start’ >/home/openerp/oerp_serv_logfile 2>&1 &
- # su openerp –c ‘openerp-web start’ > /home/openerp/oerp_web_logfile 2>&1 &
- Redirection from 80 port (proxy setup):
- Add Virtual Host entry in apache configuration::
#<VirtualHost 173.192.201.242:80>
ServerName erp.myibsource.com
ServerAdmin ashaynimkar@gmail.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
RewriteEngine on
RewriteRule ^/(.*) http://127.0.0.1:8080/$1 [P]
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
- Uncomment #tools.proxy.on = TRUE from openerp-web.cfg
- Error messages and their solutions
- ImportError: No module named _thread
- Formencode python module issue
- Remove Formencode #easy_install-2.6 –m formencode
- Install #easy_install-2.6 formencode==1.2.2
- ImportError: No module named bz2
- Install readline-devel #yum install readline-devel
- Recompile python:
- Cd to Python source folder and run #./configure
- #make
- #make install
No comments:
Post a Comment