Building Fedora DS

Building Fedora DS on CentOS 5.1 (Don’t bother trying to get the console running. Life is too short to get the necessary version of java running on CentOS)

sudo yum -y upgrade
sudo yum -y install glibc
sudo yum -y install gcc
sudo yum -y install gcc-c++
sudo yum -y install mozldap-devel
sudo yum -y install libicu-devel
sudo yum -y install icu
sudo yum -y install httpd-devel apr-devel
sudo yum -y install pam-devel
sudo yum -y install zlib-devel
sudo yum -y install openssl-devel
sudo yum -y install lm_sensors-devel
sudo yum -y install nss-devel
sudo yum -y install ant
sudo yum -y install ldapjdk
sudo yum -y install xml-commons-apis
sudo yum -y install mod_nss
sudo yum -y install net-snmp
sudo yum -y install net-snmp-devel
sudo yum -y install perl-Mozilla-LDAP
sudo yum -y install cyrus-sasl
sudo yum -y install cyrus-sasl-devel
sudo yum -y install rpm-devel

mkdir build
cd build
wget http://directory.fedoraproject.org/sources/adminutil-1.1.7.tar.bz2
wget http://directory.fedoraproject.org/sources/fedora-ds-base-1.1.2.tar.bz2
wget http://directory.fedoraproject.org/sources/fedora-ds-admin-1.1.6.tar.bz2
wget http://directory.fedoraproject.org/sources/fedora-ds-dsgw-1.1.1.tar.bz2

tar -xjf adminutil-1.1.7.tar.bz2
tar -xjf fedora-ds-base-1.1.2.tar.bz2
tar -xjf fedora-ds-dsgw-1.1.1.tar.bz2
tar -xjf fedora-ds-admin-1.1.6.tar.bz2

# Build each tar ball
cd adminutil-1.1.7
./configure --prefix=/opt/fedora-ds \
  --with-nss=/usr --with-nss-inc=/usr/include/nss3 \
  --with-ldapsdk=/usr --with-ldapsdk-inc=/usr/include/mozldap
make USE_64=1
sudo make install

cd ../fedora-ds-admin-1.1.6
./configure --prefix=/opt/fedora-ds --with-adminutil=/opt/fedora-ds/ \
  --with-nss=/usr --with-nss-inc=/usr/include/nss3 \
  --with-ldapsdk=/usr --with-ldapsdk-inc=/usr/include/mozldap
make USE_64=1
sudo make install

cd ../fedora-ds-base-1.1.2
./configure --prefix=/opt/fedora-ds --with-adminutil=/opt/fedora-ds/ \
  --with-nss=/usr --with-nss-inc=/usr/include/nss3 \
  --with-ldapsdk=/usr --with-ldapsdk-inc=/usr/include/mozldap
make USE_64=1
sudo make install

cd ../fedora-ds-dsgw-1.1.1
./configure --prefix=/opt/fedora-ds --with-adminutil=/opt/fedora-ds/ \
  --with-nss=/usr --with-nss-inc=/usr/include/nss3 \
  --with-ldapsdk=/usr --with-ldapsdk-inc=/usr/include/mozldap
make USE_64=1
sudo make install
#Configure the directory

/opt/fedora-ds/sbin/setup-ds-admin.pl

#Got the following errors that will need to be fixed...
Your system has been scanned for potential problems, missing patches,
etc.  The following output is a report of the items found that need to
be addressed before running this software in a production
environment.

Fedora Directory Server system tuning analysis version 10-AUGUST-2007.

NOTICE : System is x86_64-unknown-linux2.6.18-92.1.10.el5 (4 processors).

NOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds
(120 minutes).  This may cause temporary server congestion from lost
client connections.

WARNING: There are only 1024 file descriptors (hard limit) available, which
limit the number of simultaneous connections.

WARNING: There are only 1024 file descriptors (soft limit) available, which
limit the number of simultaneous connections.

output: ERROR: ld.so: object '/usr/lib/libssl3.so' from LD_PRELOAD cannot be preloaded: ignored.
output: ERROR: ld.so: object '/usr/lib/libldap60.so' from LD_PRELOAD cannot be preloaded: ignored.
output: ERROR: ld.so: object '/usr/lib/libssl3.so' from LD_PRELOAD cannot be preloaded: ignored.
output: ERROR: ld.so: object '/usr/lib/libldap60.so' from LD_PRELOAD cannot be preloaded: ignored.
output: httpd.worker: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

edited /opt/fedora-ds/sbin/start-ds-admin so that it refers to /usr/lib64 for the two libraries
edited /opt/fedora-ds/etc/dirsrv/admin-serv/httpd.conf to set the server name
edit /etc/ld.so.conf to add /opt/fedora-ds/lib
 

0 Responses to “Building Fedora DS”


  • No Comments

Leave a Reply