how to install erp5/zope/mysql using buildout (working) in zope

hai this is glad to inform that this process is working but it will take one day to install and it depends on the internet speed because you need to download some files and install



step1:install software
$sudo apt-get install build-essential libxslt-dev libxml2-dev libglib2.0-dev python-dev libmysqlclient-dev libldap2-dev libsasl2-dev libssl-dev libsvn-dev zlib1g-dev zlibc subversion

step2: create one directory and download erp5 pkg's
$mkdir erp5
$cd erp5
$svn co https://svn.erp5.org/repos/public/erp5/trunk/buildout
$python -S bootstrap/bootstrap.py  -v 1.7.0

step3:download and extract mariadb & pkgconfig .tar files

step4:buildout pkg's
$bin/buildout -vvv

step5: now edit  configuration file
$vi eggs/z3c.recipe.openoffice-0.3.1dev7-py2.7.egg/z3c/recipe/openoffice/recipe.py
go to line no:41 and edit
LIBO_BASE_URL =('http://downloadarchive.documentfoundation.org/libreoffice/old/3.3.2.2/rpm/%s/'
           'Libo_3.3.2_Linux_%s_install-rpm_en_us.tar.gz')
save & quit
step6:copy Xauth.h file to libXent directory
download libXext-1.2.0 file extract and copy to parts directory
$tar -xvf /home/sushma/Downloads/libXext-1.2.0.tar.bz2  /home/sushma/Downloads
$vi  software-profiles/xorg.cfg
go to lineno:93 and add this line
path = /home/sushma/Downloads/libXext-1.2.0
save & quit
$cp  parts/libXau/include/X11/Xauth.h   parts/libXext-1.2.0/include/X11

step7:create erp5 instances
$mkdir  /home/sushma/erp5instance
$cd  /home/sushma/erp5instance
$ln -s ../erp5/instance-profiles
$ln -s ../erp5/profiles
$ln -s ../erp5/software-profiles
$cat  > buildout.cfg
[buildout]
extends-cache = instance-profiles/extends-cache
extends =
 profiles/development.cfg
 instance-profiles/software-home.inc

parts =
  mysql-instance
  supervisor-instance
  runUnitTest
  development-site
ctl+d to save file
$mkdir  instance-profiles/extends-cache
$cat > instance-profiles/software-home.inc
ctl+d to save file
$vi profiles/deployment.cfg
go to line no:79 and edit
software_home = /home/sushma/erp5
save and quit
$/home/sushma/erp5/bin/bootstrap2.4
$bin/buildout -vvv
$bin/supervisord
$bin/supervisorctl
$var/bin/mysql  -h 127.0.0.1 -u root
mysql>create database erp5;
mysql>grant all privileges on erp5.* to  'root'@'localhost' identified by 'root';
mysql>grant all privileges on erp5.* to 'root'@'127.0.0.1' identified by 'root';
mysql>grant all privileges on test.* to 'test'@'localhost';
mysql>grant all privileges on test.* to 'test'@'127.0.0.1';
mysql>exit
$bin/supervisorctl
>restart  development-site
>restart  mysql-instance
>quit
step8: open firefox access zope site
   http://localhost:18080/manage
    username:zope
    password:zope
step9: create erp5 site
   go to add on option and select 'erp5 site'
    IN ERP5/MYSQL CONNECTIVITY
  erp5 Database[erp5@127.0.0.1:10002 root root]
  CMF Activity Database[erp5@127.0.0.1:10002 root root]
    select 'create a new erp5 site'




to Start the process 

in the terminal:
erp5instance/bin/supervisord






















No comments:

Post a Comment