Jump to: navigation, search

Obsolete:DS Installation

Obsolete Documentation

Please note that this content was marked as obsolete. We left the content here for study and archaeological purposes.

Please check our Documentation for a recent list of topics.

Installing Binaries

Install prerequisites:

% yum install perl-Mozilla-LDAP

To install officially released version:

% yum install 389-ds-base

To install unreleased version:

% yum --enablerepo=updates-testing install 389-ds-base

Building from Source Code

Install prerequisites:

% yum install git gcc-c++ cyrus-sasl-devel db4-devel krb5-devel libicu-devel \
mozldap-devel net-snmp-devel nspr-devel nss-devel openssl-devel pam-devel \
pcre-devel zlib-devel

Get the source code from git repository:

% git clone git://git.fedorahosted.org/389/ds.git
% cd ds

Run the following command:

% rpm --eval '%{configure}'

  CFLAGS="${CFLAGS:--O2 -g}" ; export CFLAGS ;
  CXXFLAGS="${CXXFLAGS:--O2 -g}" ; export CXXFLAGS ;
  FFLAGS="${FFLAGS:--O2 -g}" ; export FFLAGS ;
  ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu \
        --target=x86_64-redhat-linux \
        --program-prefix= \
        --prefix=/usr \
        --exec-prefix=/usr \
        --bindir=/usr/bin \
        --sbindir=/usr/sbin \
        --sysconfdir=/etc \
        --datadir=/usr/share \
        --includedir=/usr/include \
        --libdir=/usr/lib64 \
        --libexecdir=/usr/libexec \
        --localstatedir=/var \
        --sharedstatedir=/var/lib \
        --mandir=/usr/share/man \

Use the output to run the configuration program.

Execute the following command to build & install:

% make
% make install

Building RPM

Install prerequisites:

% yum install cvs icu bzip2-devel rpm-build redhat-rpm-config

Prepare build directory:

% mkdir ~/rpmbuild
% cd ~/rpmbuild

Create source tarball:

% cd DS_SRC
% git archive --prefix=389-ds-base-1.2.3/ master | bzip2 > ~/rpmbuild/SOURCES/389-ds-base-1.2.3.tar.bz2

Download the RPM spec:

% cvs -d :pserver:anonymous@cvs.fedoraproject.org:/cvs/extras \
co -r three89-ds-base-1_2_3-1_fc10 389-ds-base

Copy files:

% cd 389-ds-base/F-10
% cp 389-ds-base-devel.README ~/rpmbuild/SOURCES
% cp 389-ds-base-git.sh ~/rpmbuild/SOURCES
% cp 389-ds-base.spec ~/rpmbuild/SPECS
% rpmbuild -ba 389-ds-base.spec