# = command line argument<br><br>Get latest copy from Git if you like clone tag<br><br># git clone git://<a href="http://git.linbit.com/csync2.git">git.linbit.com/csync2.git</a> csync2<br><br>Make sure you have the following dependencies flex, librsync, librsync-devel, byacc, postgresql91-devel, postgresql91-libs (PostgreSQL installation and configuration not in scope)<br>
<br># yum install  flex librsync librsync-devel byacc postgresql91-devel postgresql91-libs<br><br>Change directory to location where you cloned csync to<br><br clear="all"># cd csync2<br># ./autogen.sh<br><br>The above will generate configure file e.t.c.<br>
<br>When you install postgres 9.1 from EPEL(<a href="http://fedoraproject.org/wiki/EPEL">http://fedoraproject.org/wiki/EPEL</a>) repository the default location for include and libs is in /usr/pgsql-9.1/(lib/includes) respectively, this caused problems when I tried to configure csync2 enabling postgres as backend. When I read through configure file I noticed that csync was looking for libpd* in postgresql/libpq*. Not sure if an environmental variable can be configured to change this behavior, I didn&#39;t notice such. So what I did was to amend the line  for &quot;ac_header in postgresql/libpq-fe.h&quot; to &quot;for ac_header in /usr/pgsql-9.1/include/libpq-fe.h&quot; also make will fail indicating that path postgresql/libpq-fe.h can&#39;t be found for that I just created a symbolic link in csync2 source folder as follows:<br>
<br># ln -s  /usr/pgsql-9.1/include/ postgresql<br><br>After all the above changes, (the probably is an easier way) I executed the following commands<br><br># ./configure --enable-postgres<br># make<br># make install<br><br>
csync2 is installed now, refer to documentation for configuration.<br>-- <br><img src="http://4things.co.za/assets/logo.gif"><br><font style="color:rgb(153,153,153)" size="1">Multimedia and Communication | Property | Entertainment</font><br>
<span style="color:rgb(102,102,102)">Kwasi Owusu Gyasi - Agyei</span><br>
<br><b style="color:rgb(0,0,0)">cell</b>        <span style="color:rgb(102,102,102)">(+27) (0) 76 466 4488</span><br><b style="color:rgb(0,0,0)">website </b><span style="color:rgb(51,51,51)"><a href="http://www.4things.co.za" target="_blank">www.4things.co.za</a></span><br>
<b style="color:rgb(0,0,0)">email     </b><span style="color:rgb(102,102,102)"><a href="mailto:kwasi.gyasiagyei@4things.co.za" target="_blank">kwasi.gyasiagyei@4things.co.za</a></span><br><b style="color:rgb(0,0,0)">skype    </b><span style="color:rgb(102,102,102)">kwasi.gyasiagyei</span><br>
<b style="color:rgb(0,0,0)">role</b>        <span style="color:rgb(102,102,102)">Developer.Designer.Software Architect</span><br>