Open ERP server
Open ERP is based on Python and uses a PostgreSQL database.
Mac OS X 10.5 Leopard comes with Python 2.5 but not with all packages needed by Open ERP.
The PostgreSQL database needs to be installed too.
Here are the following packages needed to be installed.
Install using easy_install script provided with Python
/usr/bin/easy_install PyXML
Note
To make the system use the newly installe PyXML, you need to define an environement variable
export PY_USE_XMLPLUS=""
/usr/bin/easy_install pydot
/usr/bin/easy_install vobject
Install package PIL
PIL
Install the following packages, usually with a
/usr/bin/python setup.py
mx
reportlab
pychart
pytz
graphviz
Install the Ghostscript package
gplgs
Install xml stuff
libxml, libxslt, lxml
Install the PostgreSQL package
PostgreSQL
Install Psycopg2
Psycopg2
Install Open ERP server from linux sources
sources
Patch the server to make it work with Mac OS X
patch
Create an Open ERP user to make him run the server
Pick a unique ID in the list given by
dscl . -list /Users UniqueID
Put the id in the environment variable
$GUID
export GUID=your_id
Create an unprivileged user
dscl . -create /Users/openerp
dscl . -create /Users/openerp UniqueID $GUID
dscl . -create /Users/openerp NFSHomeDirectory /var/empty
dscl . -create /Users/openerp UserShell /bin/sh
dscl . -create /Users/openerp PrimaryGroupID 1000
dscl . -create /Users/openerp RealName "openerp server"
dscl . -create /Users/openerp Password "*"
dseditgroup -o create -i 1000 -r "openerp group" openerp
dscl . -create /Groups/openerp Password "*"
Create an openerp role in PostgreSQL database
sudo -u postgres /usr/local/pgsql/bin/createuser openerp
Change files owner
chown -R openerp /usr/local/openerp
Put a launchd plist in
/Library/LaunchDaemons to make the server start when the machine boots.
org.openerp.openerpserver.plist
Web client
The web client is based on TurboGears so we need to install it
TurboGears
python tgsetup.py
/usr/bin/easy_install pyparsing
Install Open ERP web client from linux sources
sources
Put a launchd plist in
/Library/LaunchDaemons to make the web client start when the machine boots.
org.openerp.openerpweb.plist