Instructions to build SOGo, SOPE, Openchange and Samba on various platforms.

Debian / Ubuntu

Install the build tools:

apt-get install git  devscripts debhelper build-essential

Samba + Openchange

prerequisite packages

apt-get install autoconf automake bison doxygen flex libboost-thread-dev python-paste python-pastedeploy python-pastescript python-mako libical-dev libmagic-dev libsqlite3-dev libacl1-dev swig

Building Samba

  1. First, clone the openchange git repository and checkout the sogo branch:
    git clone git://git.openchange.org/openchange.git
    git checkout sogo
  2. Fixup the environment for samba4 non standard paths:
    echo "/usr/local/samba/lib" > /etc/ld.so.conf.d/samba4.conf
    
    echo 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/samba/lib/pkgconfig' >> ~/.bashrc
    echo 'export PYTHONPATH=$PYTHONPATH:/usr/local/samba/lib/python2.7/site-packages' >> ~/.bashrc
    echo 'export PATH=$PATH:/usr/local/samba/bin:/usr/local/samba/sbin' >> ~/.bashrc
    . ~/.bashrc
  3. Build and install samba:
    cd openchange
    make samba
    sudo ldconfig
  4. Build openchange
    # (make clean)
    ./autogen.sh &&  \
      ./configure --prefix=/usr/local/samba && \
      make install && \
      ldconfig

SOPE + SOGo

Prerequisites

apt-get install gnustep-make gnustep-base-runtime libgnustep-base-dev libgnustep-base1.22-dbg gobjc libxml2-dev libldap2-dev libssl-dev zlib1g-dev libpq-dev libmysqlclient-dev libmemcached-dev python-m2crypto python-simplejson python-vobject python-dateutil mysql-client postgresql-client  tmpreaper libcurl4-openssl-dev

Build

  1. First, clone sogo and sope git repositories:
    git clone https://github.com/inverse-inc/sogo.git
    git clone https://github.com/inverse-inc/sope.git
  2. Build SOPE
    cd sope
    ./configure --with-gnustep --enable-debug --disable-strip
    make
    make install
  3. Build SOGo
    cd sogo
    ./configure --enable-debug --disable-strip
    make
    make install
  4. Build SOGo/Openchange
    cd sogo/OpenChange
    make install