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 ...]
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
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:
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.
126.96.36.199 Installing the Required Packages for Debian
On Debian, you need to install the following packages:
188.8.131.52 Installing the Required Packages for Red Hat Linux
On Red Hat Linux, this means you should have at least:
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.
184.108.40.206 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.