<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.zarafa.com/wiki/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.zarafa.com/wiki/index.php?title=ZCP_6.40_from_source_on_Ubuntu_10.04&amp;feed=atom&amp;action=history</id>
		<title>ZCP 6.40 from source on Ubuntu 10.04 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.zarafa.com/wiki/index.php?title=ZCP_6.40_from_source_on_Ubuntu_10.04&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.zarafa.com/wiki/index.php?title=ZCP_6.40_from_source_on_Ubuntu_10.04&amp;action=history"/>
		<updated>2013-05-26T05:05:56Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://www.zarafa.com/wiki/index.php?title=ZCP_6.40_from_source_on_Ubuntu_10.04&amp;diff=818&amp;oldid=prev</id>
		<title>Gertvdijk: aptitude update, consistent use of sudo and only when needed</title>
		<link rel="alternate" type="text/html" href="http://www.zarafa.com/wiki/index.php?title=ZCP_6.40_from_source_on_Ubuntu_10.04&amp;diff=818&amp;oldid=prev"/>
				<updated>2010-07-19T11:51:11Z</updated>
		
		<summary type="html">&lt;p&gt;aptitude update, consistent use of sudo and only when needed&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;For this document I start with a vanilla Ubuntu 10.04 server installation, which I use it to build the Zarafa Collaboration Platform (ZCP) 6.40.0 rc6 Community Edition from source.&lt;br /&gt;
&lt;br /&gt;
Make sure to get Ubuntu up-to-date with:&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude update&lt;br /&gt;
 sudo aptitude safe-upgrade&lt;br /&gt;
&lt;br /&gt;
First the following requirements have to be installed:&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install apache2 postfix libapache2-mod-php5 mysql-client slapd \&lt;br /&gt;
   mysql-server tinyca ca-certificates libcurl3 libssh2-1 build-essential \&lt;br /&gt;
   php5-dev libtool pkg-config uuid-dev libmysqlclient-dev gettext libz-dev \&lt;br /&gt;
   libldap2-dev automake debhelper flex bison libcurl4-gnutls-dev libssl-dev \&lt;br /&gt;
   libxml2-dev libncurses5-dev libclucene-dev&lt;br /&gt;
&lt;br /&gt;
When you are presented with a dialog to setup the MTA, choose &amp;quot;Internet Site&amp;quot; and pick an appropriate name.&lt;br /&gt;
&lt;br /&gt;
Now [http://www.zarafa.com/download-community Download the ZCP Community source package].&lt;br /&gt;
Move this tarball to &amp;lt;tt&amp;gt;/usr/local/src/zarafa-6.40-chosen.tar.gz&amp;lt;/tt&amp;gt;. Then do the following:&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/src&lt;br /&gt;
 # libical 0.44&lt;br /&gt;
 wget http://download.zarafa.com/mirror/libical-0.44.tar.gz&lt;br /&gt;
 tar xvzf libical-0.44.tar.gz&lt;br /&gt;
 cd libical-0.44&lt;br /&gt;
 ./configure &lt;br /&gt;
 make; sudo make install&lt;br /&gt;
 cd ..&lt;br /&gt;
 &lt;br /&gt;
 # libvmime 0.7.1 + patches&lt;br /&gt;
 wget http://downloads.sourceforge.net/project/vmime/vmime/0.7/libvmime-0.7.1.tar.bz2&lt;br /&gt;
 tar xvjf libvmime-0.7.1.tar.bz2&lt;br /&gt;
 wget http://developer.zarafa.com/download/zarafa-vmime-patches.tar.gz&lt;br /&gt;
 mkdir zarafa-vmime-patches&lt;br /&gt;
 tar xvzf zarafa-vmime-patches.tar.gz -C zarafa-vmime-patches&lt;br /&gt;
 cd libvmime-0.7.1&lt;br /&gt;
 for i in ../zarafa-vmime-patches/*.diff; do patch -p1 &amp;lt; $i; done&lt;br /&gt;
 ./configure&lt;br /&gt;
 make; sudo make install&lt;br /&gt;
 cd ..&lt;br /&gt;
 &lt;br /&gt;
 # zarafa 6.40.0&lt;br /&gt;
 tar xvzf zarafa-6.40-chosen.tar.gz&lt;br /&gt;
 cd zarafa-6.40.*&lt;br /&gt;
 ./configure --disable-static --disable-testtools \&lt;br /&gt;
   --with-userscript-prefix=/etc/zarafa/userscripts \&lt;br /&gt;
   --with-quotatemplate-prefix=/etc/zarafa/quotamails \&lt;br /&gt;
   --prefix=/usr --sysconfdir=/etc&lt;br /&gt;
 make; sudo make install&lt;br /&gt;
 ls /usr/bin/zarafa-*  # shows that it worked&lt;br /&gt;
&lt;br /&gt;
Voila! ZCP from source.&lt;br /&gt;
&lt;br /&gt;
For other distribution it should be largely the same procedure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A know issue exists for build 19949, the make process will fail with the following message:&lt;br /&gt;
&lt;br /&gt;
 [...]&lt;br /&gt;
 make  install-am&lt;br /&gt;
 make[4]: Entering directory `/usr/local/src/zarafa-6.40.0/installer/linux'&lt;br /&gt;
 make[4]: *** No rule to make target `zarafa-licensed.logrotate', needed by `all-am'.  Stop.&lt;br /&gt;
 make[4]: Leaving directory `/usr/local/src/zarafa-6.40.0/installer/linux'&lt;br /&gt;
 make[3]: *** [install] Error 2&lt;br /&gt;
 make[3]: Leaving directory `/usr/local/src/zarafa-6.40.0/installer/linux'&lt;br /&gt;
 make[2]: *** [install-recursive] Error 1&lt;br /&gt;
 make[2]: Leaving directory `/usr/local/src/zarafa-6.40.0/installer'&lt;br /&gt;
 make[1]: *** [install-recursive] Error 1&lt;br /&gt;
 make[1]: Leaving directory `/usr/local/src/zarafa-6.40.0'&lt;br /&gt;
 make: *** [install] Error 2&lt;br /&gt;
&lt;br /&gt;
This is fixed in later builds. As the effects are minimal you could simply use &amp;lt;tt&amp;gt;make -k&amp;lt;/tt&amp;gt;, with the &amp;lt;tt&amp;gt;-k&amp;lt;/tt&amp;gt; flag it will continue after errors. This issue is also mentioned [http://forums.zarafa.com/viewtopic.php?f=9&amp;amp;t=4424#p20873 on the forum].&lt;/div&gt;</summary>
		<author><name>Gertvdijk</name></author>	</entry>

	</feed>