35.4 Building the Binaries


To build the binaries, first run the program ./configure in the source directory. This should automatically configure Samba for your operating system. If you have unusual needs, then you may wish to run

 
 root# ./configure --help 

first to see what special options you can enable. Now execute ./configure with any arguments it might need:

 
 root# ./configure [... arguments ...] 

Executing

 
 root# make 

will create the binaries. Once it is successfully compiled you can use

 
 root# make install 

to install the binaries and manual pages. You can separately install the binaries and/or man pages using

 
 root# make installbin 

and

 
 root# make installman 

Note that if you are upgrading from a previous version of Samba you might like to know that the old versions of the binaries will be renamed with an " .old " extension. You can go back to the previous version with

 
 root# make revert 

if you find this version a disaster!

35.4.1 Compiling Samba with Active Directory Support

In order to compile Samba with ADS support, you need to have installed on your system:

  • The MIT or Heimdal kerberos development libraries (either install from the sources or use a package).

  • The OpenLDAP development libraries.

If your kerberos libraries are in a non-standard location, then remember to add the configure option --with-krb5= DIR .

After you run configure, make sure that include/config.h it generates contain lines like this:

 
 #define HAVE_KRB5 1 #define HAVE_LDAP 1 

If it does not, configure did not find your KRB5 libraries or your LDAP libraries. Look in config.log to figure out why and fix it.

35.4.1.1 Installing the Required Packages for Debian

On Debian, you need to install the following packages:

  • libkrb5-dev

  • krb5- user

35.4.1.2 Installing the Required Packages for Red Hat Linux

On Red Hat Linux, this means you should have at least:

  • krb5-workstation (for kinit)

  • krb5-libs (for linking with)

  • krb5- devel (because you are compiling from source)

in addition to the standard development environment.

If these files are not installed on your system, you should check the installation CDs to find which has them and install the files using your tool of choice. If in doubt about what tool to use, refer to the Red Hat Linux documentation.

35.4.1.3 SuSE Linux Package Requirements

SuSE Linux installs Heimdal packages that may be required to allow you to build binary packages. You should verify that the development libraries have been installed on your system.

SuSE Linux Samba RPMs support Kerberos. Please refer to the documentation for your SuSE Linux system for information regading SuSE Linux specific configuration. Additionally, SuSE are very active in the maintenance of Samba packages that provide the maximum capabilities that are available. You should consider using SuSE provided packages where they are available.



Official Samba-3 HOWTO and Reference Guide
The Official Samba-3 HOWTO and Reference Guide, 2nd Edition
ISBN: 0131882228
EAN: 2147483647
Year: 2005
Pages: 297

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net