This document describes how to install an ERP5 Server on Mac OSX 10.2.
If you are using Mac OSX 10.1, it is also possible to run ERP5 server but there are a few differences in the installation process.
To run an ERP5 Server, you need the following parts installed on your Macintosh :
- Install Mac OS X 10.2 and the OS X 10.2 Developer Tools
To do this you need the MacOSX Installation CD.
- Install Fink 0.4.1
If you're running Mac OSX 10.2
If you're running Mac OSX 10.1
refer to http://fink.sourceforge.net/download/index.php`
- Install Zope 2.5.1 for Fink
To do this open a terminal window an log in as root using the command line : su. Enter the root password.
First we need to install xfree86 : type fink install xfree86-base
Then to install Zope, type the following command : fink install zope. This will install a zope environnement from source. It can take a while.
- Install Mysql 3.23.52 for Fink
Type the following command : fink install mysql.
- Get PyXML 0.8.1
Download PyXML-0.8.1.tar.gz (platform independant).
Replace the default python/xml folder (/sw/lib/python2.1/xml) with the xml folder included in PyXML (PyXML-0.8.1/xml).
- Get ZMySQLDA : the Mysql Database Adaptor for Zope
Download ZMySQLDA for Zope 2.5.x and Fink Mysql
Don't follow the readme instructions but decompress the file. After decompressing, you become a folder named "lib". Move the ZMySQLDA folder (/lib/python/Products) into /sw/var/lib/zope/Products. Move the content of site-packages (/lib/python2.1/site-packages) into /sw/lib/python2.1/site-packages.
- Get the others Zope Products
Create a "Products" directory in /sw/var/lib/zope.
Connect to Nexedi's download page and download all the products listed except the Localizer patch (not necessary). Move all these Products folders into /sw/var/lib/zope/Products and rename them. Your directory should look like this :
Base18
BTreeFolder2
CMFCalendar
CMFCollector
CMFCore
CMFDefault
CMFStaging
CMFTopic
CMFTracker
CMFWiki
CMFWorkspaces
DCWorkflow
ERP5
Formulator
Localizer
ZMySQLDA
ZSQLCatalog
Note : If you want to install some of these Products directly via CVS use the following command lines :
- cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/erp5 login
- cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/erp5 co "ProductName"
Create a "import" directory in /sw/var/lib/zope.
Create a "Extensions" directory in /sw/var/lib/zope. Copy the /sw/var/lib/zope/Products/ZSQLCatalog/zsqlbrain.py in /sw/var/lib/zope/Extensions
- Start ERP5 Server (start Zope and MySQL)
In a new terminal window (logged as root) type : fink info zope and then fink info mysql to learn about how to start and stop Zope and Mysql.
- Import ERP5 Demo
Once you have done all the step listed before, you can import the demo.zexp.