<div class="__aliyun_email_body_block"><div  style="clear:both;">Hi, Andre, Thanks so much for your answer.</div><div  style="clear:both;"><br ></div><div  style="clear:both;">For my next step, What's the recommendation way to install the latest 9.0 release? My server system is&nbsp;Ubuntu&nbsp;/&nbsp;14.04.1&nbsp;LTS&nbsp;amd64.</div><div  style="clear:both;">I fllow the instructions here and got severl C <span  style="color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:.0px;text-transform:none;widows:2;background-color:#ffffff;float:none;display:inline;">compilation</span> errors when I run bin/develop.</div><div  style="clear:both;">https://github.com/apple/ccs-calendarserver/blob/master/doc/Admin/Guide.rst</div><div  style="clear:both;">Such as:</div><div  style="clear:both;"><p  class="p1" style="margin:.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:16.0px;line-height:normal;font-family:Courier;color:#fff0a5;background-color:#13773d;"><span  class="s1" style="font-variant-ligatures:no-common-ligatures;">digestmd5.c:1019:7: error: 'DES_DECRYPT' undeclared (first use in this function)</span></p><p  class="p1" style="margin:.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:16.0px;line-height:normal;font-family:Courier;color:#fff0a5;background-color:#13773d;"><span  class="s1" style="font-variant-ligatures:no-common-ligatures;">&nbsp;&nbsp; &nbsp; &nbsp; DES_DECRYPT);</span></p></div><div  style="clear:both;"><p  class="p1" style="margin:.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:16.0px;line-height:normal;font-family:Courier;color:#fff0a5;background-color:#13773d;"><span  class="s1" style="font-variant-ligatures:no-common-ligatures;">digestmd5.c:1070:21: error: 'DES_ENCRYPT' undeclared (first use in this function)</span></p><p  class="p1" style="margin:.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:16.0px;line-height:normal;font-family:Courier;color:#fff0a5;background-color:#13773d;"><span  class="s1" style="font-variant-ligatures:no-common-ligatures;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DES_ENCRYPT);</span></p><p  class="p1" style="margin:.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:16.0px;line-height:normal;font-family:Courier;color:#fff0a5;background-color:#13773d;"><span  class="s1" style="font-variant-ligatures:no-common-ligatures;"></span></p><p  class="p1" style="margin:.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:16.0px;line-height:normal;font-family:Courier;color:#fff0a5;background-color:#13773d;"><span  class="s1" style="font-variant-ligatures:no-common-ligatures;">digestmd5.c:1094:20: error: 'des_cblock' undeclared (first use in this function)</span></p><p  class="p1" style="margin:.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:16.0px;line-height:normal;font-family:Courier;color:#fff0a5;background-color:#13773d;">...</p></div><div  style="clear:both;"><br ></div><div  style="clear:both;">And I can see that all the parts of the Guide after the requirements is all gray, so how should I proceed the install, any suggestions?</div><div  style="clear:both;"><br ></div><blockquote  style="margin-right:.0px;margin-top:.0px;margin-bottom:.0px;"><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">------------------------------------------------------------------</span></div><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">发件人:Andre LaBranche &lt;dre@apple.com&gt;</span></div><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">发送时间:2016年12月3日(星期六) 03:44</span></div><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">收件人:陈锋 &lt;chenfeng@fintechina.com.cn&gt;</span></div><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">抄 送:calendarserver-users &lt;calendarserver-users@lists.macosforge.org&gt;</span></div><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">主 题:Re: [CalendarServer-users] A few questions about the functions of the server</span></div><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><br ></span></div><br ><div ><div >On Dec 1, 2016, at 10:46 PM, 陈锋 &lt;<a  href="mailto:chenfeng@fintechina.com.cn">chenfeng@fintechina.com.cn</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div ><div ><ol  style="list-style-type:decimal;"><li ><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;">The server does not has any user interface like Google Calendar web version, right? But it can be accessed through an existing client like iCal or ThunderBird?</span></div></li></ol></div></div><div >Correct</div><div ><ol  start="2" style="list-style-type:decimal;"><li ><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;">By default the cal data are stored using files,</span></div></li></ol></div><div >That was true in very old versions, but for quite a while CalendarServer has only supported a (postgres or oracle) database backend.</div><div ><ol  start="2" style="list-style-type:decimal;"><li ><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;">but what if I want to save all of them using an external DB, seems like you support PostgreSQL by default? But what if I want to use mysql? Can the server support mysql?</span></div></li></ol></div><div >We don't support mysql, however we do have a pretty fancy database abstraction layer in the&nbsp;<a  href="https://github.com/apple/ccs-twistedextensions">twisted-extensions</a>&nbsp;(aka 'twext') project that sits atop the two supported backends (postgres and oracle), so adding a third is probably within the realm of possibility, although we have no plans to do so ourselves. Postgres is good.</div><div ><ol  start="3" style="list-style-type:decimal;"><li ><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;">If I use an external DB to store the calendar data, what about the attachment of an event?</span></div></li></ol></div><div >Attachments are not stored in the database. Instead they are stored in local files on the CalDAV server. For a multi-server deployment, use something like NFS to host the attachments directory for all servers to share.</div><div ><ol  start="3" style="list-style-type:decimal;"><li ><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;">What is the recommended way to sync them in multiple server instances?</span></div></li></ol></div><div >Any scheme where you have to explicitly 'sync' is not going to be good enough, because that implies the possibility of being out of sync, which opens the window to race conditions, etc. The attachments store needs to be a single source of truth. NFS works well for this.</div><div ><ol  start="4" style="list-style-type:decimal;"><li ><div  style="clear:both;"><span  style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;">If I use an external DB, the server will be stateless, right? So I can deploy as many instances of it as I want to?</span></div></li></ol></div><div >Yes. Of course there is runtime state, but the transactional nature of the database allows the data to stay consistent even if e.g. a CalDAV server disappears.</div><div ><br ></div><div >See also:&nbsp;<a  href="https://github.com/apple/ccs-calendarserver/blob/master/doc/Admin/MultiServerDeployment.rst">https://github.com/apple/ccs-calendarserver/blob/master/doc/Admin/MultiServerDeployment.rst</a></div><div ><br ></div><div >Hope this helps,</div><div >-dre</div></div></blockquote><div ><br ></div></div>