[Erp5-users] ERP5 installation on Debian

Jean-Paul Smets jp at nexedi.com
Sun Jun 5 09:55:43 CEST 2005


Congratulations. This looks good.

Thank you for this contribution. Would you mind publishing it on 
www.erp5.org ? If you need, I can set up an HTTP or FTP repository for 
your .deb package.

JPS.

Le dimanche 5 Juin 2005 02:28, Dieter Lucking a écrit :
> Installation of Zope and ERP5 on Debian Linux
> ---------------------------------------------
>
> I wrote this, after I installed ERP5 on my box. I may have documented
> some part wrong and excuse for it in advance. However, I think following
> this manual will result in a working ERP5-System in a Debian
> distribution.
> USE AT OWN RISK - NO WARRENTY OF ANY KIND - as usual!
>
>
> First:
> ------
>
> Become super user, or even better you know when root rights are
> required.
>
>
> Packages:
> ---------
>
> Zope:
> -----
>
> Create and change to a woring directory:
> Download and extract the source from nexedi.org:
> 	wget
> http://nexedi.org/static/Mandrake/10.2/SRPMS/zope-2.7.6b2-2nxd.src.rpm
> 	alien --to-tgz zope-2.7.6b2-2nxd.src.rpm
> 	tar -xzf zope-2.7.6b2.tgz
> 	bunzip2 Zope-2.7.2-rc1-aq_dynamic.patch.bz2
> Erase everything but the patch:
> 	rm *.bz2 zope-2.7.6*
> Download the source package of zope2.7:
> 	apt-get source zope2.7
> Change directory to the zope package, apply the patch and build the
> package:
> 	cd zope2.7-2.7.5/
> 	patch -p1 < ../Zope-2.7.2-rc1-aq_dynamic.patch
> 	debian/rules binary
> Change back to your woring directory and install the debian package.
> 	cd ..
> 	dpkg -i zope2.7_2.7.5-2_i386.deb
>
>
> Zope Products:
> --------------
>
> Download and install packages from Debian:
> 	apt-get install zope-btreefolder2 zope-cmf1.4 zope-cmfcalendar1.4
> zope-cmfcore1.4 zope-cmfdefault1.4 zope-cmftopic1.4 zope-dcworkflow
> zope-formulator zope-localizer
>
>
> Products from the ERP-CDROM and the ERP5-CVS:
> ---------------------------------------------
>
> Create the directory '/usr/local/packages/zope/' and change into it.
> Create the subdirectories 'erp5-cvs' and 'erp5-release'.
> Create the symbolic link 'erp5' pointing to 'erp5-cvs' or
> 'erp5-release' .
> I did:
> 	ln -s erp5-cvs erp5
>
> Get a ERP5 CDROM, and reboot.
> Mount the hard disk containing your '/usr' directory.
> Copy CMFMailIn, CMFPhoto, CMFReportTool, Photo, TranslationService and
> ZMySQLDA to '.../usr/local/packages/zope/'.
> Copy CMFActivity, CMFCategory, ERP5, ERPCatalog, ERP5Form, ERP5SyncML
> and ERP5Type to '.../usr/local/packages/zope/erp5-release'.
> Note: The CMFReportTool of the CDROM may cause problems, I am using
> version 1.2 but cannot tell where I got it.
> Reboot again.
>
> If you decide to use the release only - you linked
> '/usr/local/packages/zope/erp5' to
> '/usr/local/packages/zope/erp5-release' - you may skip following and
> proceed with "Installation".
>
> Change to the directory '/usr/local/packages/zope/erp5-cvs'.
> Create the shell script 'cvs-checkout':
> #!/bin/bash
>
> Modules=" \
> 	CMFActivity \
> 	CMFCategory \
> 	ERP5 \
> 	ERP5Catalog \
> 	ERP5Form \
> 	ERP5OOo \
> 	ERP5SyncML \
> 	ERP5Type \
> 	ZSQLCatalog \
> 	erp5_banking \
> 	erp5_bt5 \
> 	erp5diff \
> "
>
> cvs -d:pserver:anonymous at cvs.erp5.org:/cvsroot login
> for M in $Modules
> do
> 	cvs -z3 -d:pserver:anonymous at cvs.erp5.org:/cvsroot co -P $M
> done
> #EOF
>
> You may want to create 'cvs-update', too:
> #!/bin/bash
>
> cvs -z3 -d:pserver:anonymous at cvs.erp5.org:/cvsroot update -Pd
>
> #EOF
>
> Run the script 'cvs-checkout'.
>
>
> Setup:
> ------
>
> Create a zope instance 'erp5' with mkzope2.7instance.
> Change directory to /var/lib/zope2.7/instance/erp5/etc/ and edit
> 'zope.conf':
> 	Unkomment and change the order of the entries for Python's module
> search path.
> 		products $INSTANCE/Products
> 		products /usr/lib/zope2.7/lib/python/Products
> 		products /usr/lib/zope/lib/python/Products
> Change to the Products directory and link necessary Products.
> 	cd ../Products
> 	ln -s /usr/local/packages/zope/CMFMailIn/ .
> 	ln -s /usr/local/packages/zope/CMFPhoto/ .
> 	ln -s /usr/local/packages/zope/CMFReportTool/ .
> 	ln -s /usr/local/packages/zope/Photo/ .
> 	ln -s /usr/local/packages/zope/TranslationService/ .
> 	ln -s /usr/local/packages/zope/ZMySQLDA/ .
> 	ln -s /usr/local/packages/zope/erp5/CMFActivity/ .
> 	ln -s /usr/local/packages/zope/erp5/CMFCategory/ .
> 	ln -s /usr/local/packages/zope/erp5/ERP5/ .
> 	ln -s /usr/local/packages/zope/erp5/ERPCatalog/ .
> 	ln -s /usr/local/packages/zope/erp5/ERP5Form/ .
> 	ln -s /usr/local/packages/zope/erp5/ERP5SyncML/ .
> 	ln -s /usr/local/packages/zope/erp5/ERP5Type/ .
> Change to the Extensions directory and do some more links:
> 	cd ../Extensions
> 	ln -s /usr/local/packages/zope/erp5/ERP5/Extensions/InventoryBrain.py .
> 	ln -s /usr/local/packages/zope/erp5/ZSQLCatalog/zsqlbrain.py .
>
> Restart zope:
> 	/etc/init.d/zope2.7 restart
>
> Make sure MySQL is setup properly (you need a database for ERP5 and
> another for CMFActivity), open in your browser
> 'http://localhost:9673/manage' and add the 'ERP5 Site' into the root
> folder of Zope. Be patiend and wait for the welcome screen.
> Dieter

-- 
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
Nexedi: Consulting and Development of Libre / Open Source Software
http://www.nexedi.com
ERP5: Libre/ Open Source ERP Software for small and medium companies
http://www.erp5.org
Rentalinux: Desktop Linux Server
http://www.rentalinux.com




More information about the Erp5-users mailing list