Skip to content

SourceFromSVN

Lance Haig edited this page Dec 23, 2013 · 1 revision

Table of Contents

Prerequisites

Hula has a few dependencies that should be available with any recent Linux distribution. To build from source, you'll need the development packages as well.

  • Automake >= 1.9
  • Apache
  • Bison 1.875
  • gettext
  • OpenLDAP
  • OpenSSL
  • Popt
  • Python >=2.4

Distribution-specific commands

Debian and Ubuntu

sudo apt-get install bison apache2 build-essential slapd ssh subversion libtool automake1.9 libssl-dev \
python2.4-dev libpopt-dev flex pkg-config libldap2-dev gettext

Mac OS X

For Mac OS X with Darwinports, install these ports:

  • pkgconfig
  • popt
  • bison
  • automake
  • libtool
  • mod_python

Gentoo Linux

  • pkgconfig
  • automake
  • subversion
  • popt
  • mod_python
  • apache
  • autoconf
  • openssl
  • openldap

NetBSD

For NetBSD's pkgsrc

  • devel/subversion (to checkout the source, of course)
  • www/apache2
  • devel/automake
  • devel/bison
  • devel/gettext
  • databases/openldap
  • devel/popt
  • lang/python24
  • devel/check
  • security/openssl

Get the Code

Run:

    svn checkout https://forgesvn1.novell.com/svn/hula/branches/hula-store/hula

This will check out the current development branch of Hula.

Create a User

Hula can be run as root, but for security reasons it is best to run it as its own unprivileged user. You can create a 'hula' user using your distribution's administration tools.

Build the Code

This command line assumes you created a user named 'hula'. If you want to run as root, leave out the "--with-user=" argument to autogen.sh.

    cd hula
    ./autogen.sh --prefix=/opt/hula --with-user=hula
    make
    make install

(Developers may be interested in other Autogen Options.)

People trying with gcc > 4.0 may want to build with CFLAGS=-O0. For some reason, Hula doesn't compile correctly in a number of places with gcc as it comes with various Debian-derived distributions. There may be other distros with this issue.

Set up Hula

Getting Started will tell you where to go from here.