I recently had to install and evaluate OpenERP. The current version available at www.openerp.com is 5.0.15. My test server is running on CentOS 5.5 – I installed it with Server-GUI and have a Gnome interface.
Here are a few observations I made:
1. OpenERP 5.0.15 requires Python 2.6
2. A fully updated CentOS 5.5 using standard and EPEL repositories only has version 2.4 (bummer!)
Clearly we don’t meet the minimum requirements. Upon further investigation, it turns out that simply forcing an update of Python to version 2.6 could break some functions within CentOS 5.5 that specifically require Python 2.4 (bummer, yet again!). So basically, if I wanted to keep CentOS running fine, it’s not a great idea to update Python.
One other option which I was toying around with was to install Python 2.6 to run side-by-side with 2.4. While this is totally possible to achieve, I wasn’t comfortable with it. Knowing my luck, I was probably setting myself up for a royal screw up in the future.
My final decision was to simply use a slightly older version of OpenERP that would work with Python 2.4 so, working backwards from 5.0.15, I finally found that 5.0.10 was best suited – it started up and shutdown correctly (version 5.0.11 and 5.0.12, if I remember correctly, started up without any issue but wouldn’t shut down cleanly).
Here’s what I had to do to successfully get OpenERP 5.0.10 (server and web) up and running on my CentOS 5.5 box. (Note: This was a test environment so security measures aren’t a priority – Getting the darn thing working as quickly and painlessly as possible was. Also, I’m logged in as root – gasp!).
1. Make sure to have the EPEL repo set up. If you don’t, run this:
#rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
2. Install PostgreSQL if it’s not already installed:
#yum install postgresql-server
This will add the client and other dependencies for Postgres automatically (phew!). Once complete, start up PostgreSQL.
#service postgresql start
Create a user in Postgres. It’s important to note that the user should be the person starting up OpenERP (which in my case was root – gasp again!). Of course you need to su into the postgres user first. Caution: This creates a DB superuser!
#su – postgres -c “createuser -s root”
3. Install all other Python dependencies:
#yum -y install postgresql-python python-imaging python-psycopg2 pydot pychart python-setuptools python-lxml pytz python-devel
Note: reportlab had to be installed using easy_install (from setuptools).
4. Create an openerp directory in /root (yeah, yeah, I know, not exactly the best place to be doing this blah, blah, blah…) and cd into it.
5. Download and install the OpenERP server and web packages:
#tar xfz openerp-server-5.0.10.tar.gz
#tar xfz openerp-web-5.0.10.tar.gz
#python setup.py install
6. If all went well and you didn’t come across any errors, you can now start OpenERP and OpenERP-web by issuing the following commands in 2 different terminals (or just send them to the background – I use 2 terms so that I can see the server messages):
That’s it! To sample the fruits of your labour, fire up a browser and point it to http://<your-server-name-or-IP>:8080/. Of course you can change the port number to whatever you want. To do this, look for the file openerp-web.cfg and change the port number there (HINT: Look for “8080” in the file).
If you want to install the Linux desktop client for OpenERP do this:
#yum -y install python-matplotlib
#tar xfz openerp-client-5.0.10.tar.gz
#python setup.py install
That will download the package and unpack it in /root/openerp/ and then install it. To run the client software:
Hope this was helpful. Good luck!
If you’re feeling a bit lazy and trust my work, then use this script I wrote which pretty much automates all the steps mentioned above right up to installing the client software. Feel free to read through it. I’ve added as many comments as possible along the way. Download it here.
P.S. I’m really looking forward to CentOS 6 being released. 5.5 is sooooooo dated.