Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-10-2010, 09:32 AM
Junior Member
 
Posts: 7
Default problem in buliding / compiling zimbra for development in clean DEBIAN , lenny

Hi,

I am willing to work on certain parts of ZimbraServer and need to
have a development environment setup. My OS is Debian Linux Lenny.
Firstly i have already gone through the following resources

1. GNR on Debian Lenny - Zimbra :: Wiki
2. "ZimbraWebClient/WebRoot/help/en_US/admin/txt/readme_source.txt"
and searched through the wiki & forum.

the problem is (2) does not seems to be uptodate. I have followed
the instructions in it but facing problem.

I downloaded zcs-6.0.4_GA_2040-src.tgz from sourceforge and extracted.
then i wen to ZimbraBuild and did

$ make dev-install

it loudly complaints the below:

*** Installing mysql

(cd /opt/zimbra; tar xzf /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ThirdPartyBuilds/DEBIAN5/mysql/mysql-standard-5.0.87-pc-linux-gnu-i686-glibc23.tar.gz; )
tar: /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ThirdPartyBuilds/DEBIAN5/mysql/mysql-standard-5.0.87-pc-linux-gnu-i686-glibc23.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [/opt/zimbra/mysql-standard-5.0.87-pc-linux-gnu-i686-glibc23] Error 2


Ok! it complaining of ThirdPartyBuilds , but even after doing that(takes
> 2hrs on my slow cpu ) . It gives another error relating to absence of
zimbra schema file.


My question is does a working document exists ? I am even ready to update
the seemingly outdated docs if anyone can help me out with getting
the initial setup done.

regds
Rajesh Kumar Mallah.


*** UPDATE ******
make dev-install gives the below error:

$ make dev-install
*** Installing mysql
(cd /opt/zimbra; tar xzf /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ThirdPartyBuilds/DEBIAN5/mysql/mysql-standard-5.0.87-pc-linux-gnu-i686-glibc23.tar.gz; )
*** Installing openldap
(cd /opt/zimbra; tar xzf /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ThirdPartyBuilds/DEBIAN5/openldap/openldap-2.4.20.4z.tgz; )
cp -f /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ZimbraServer/conf/ldap/DB_CONFIG /opt/zimbra/openldap-2.4.20.4z/var/openldap-data
cp -f /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ZimbraServer/conf/ldap/DB_CONFIG.accesslog /opt/zimbra/openldap-2.4.20.4z/var/openldap-data
cp -f /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ZimbraServer/conf/ldap/slapd.conf.production /opt/zimbra/openldap-2.4.20.4z/etc/openldap/slapd.conf
cp -f /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ZimbraServer/conf/ldap/master-accesslog.conf /opt/zimbra/openldap-2.4.20.4z/etc/openldap
cp -f /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ZimbraServer/conf/ldap/master-accesslog-overlay.conf /opt/zimbra/openldap-2.4.20.4z/etc/openldap
cp -f /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ZimbraServer/conf/ldap/amavisd.schema /opt/zimbra/openldap-2.4.20.4z/etc/openldap/schema
cp -f /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ZimbraServer/conf/ldap/zimbra.schema /opt/zimbra/openldap-2.4.20.4z/etc/openldap/schema
cp: cannot stat `/mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ZimbraServer/conf/ldap/zimbra.schema': No such file or directory
make: *** [/opt/zimbra/openldap-2.4.20.4z] Error 1



**** UPDATE 2 *******
After managing to put zimbra.schema and zimbra_schema.ldif ,
the build process runs for couple of minutes but failes again at below

*** Installing tomcat
(cd /opt/zimbra; tar xzf /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ThirdParty/jakarta-tomcat/apache-tomcat-5.5.15.tar.gz; )
tar: /mnt/disk2/opt/public/zcs-src/zcs-6.0.4_GA_2040-src/GNR-604/ZimbraBuild/../ThirdParty/jakarta-tomcat/apache-tomcat-5.5.15.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [/opt/zimbra/apache-tomcat-5.5.15] Error 2

*************END OF UPDATE 2 *********************


*** UPDATE 3 *********
In subsequent run of make dev-install the permission of below
/opt/zimbra/openldap-2.4.20.4z/etc/openldap/zimbra_mimehandlers.ldif
had to be changed to 644 from 444 , in order to reach the error mentioned
in UPDATE 2
*********** END OF UPDATE 3 *******************


**** update 4 *************

looks like devtargets.def insists on tomcat with no signs of jetty but
ThirdParty/* is inclined towards jetty with nosign of tomcat.

****** end of update 4 **********

Am i totally in a wrong direction

Last edited by mallah_rajesh; 06-10-2010 at 08:26 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.