Difference between revisions of "Build Samba from Source"

(Moved the "obtaining Samba" section out of this page to a new, separate page.)
(Remove Samba 3.x specific build instructions, which is no longer maintained)
Line 27: Line 27:
 
= Compile Samba =
 
= Compile Samba =
  
To build Samba, run the following commands out of the root of your Samba source directory (Only for compiling a Samba 3.x version, run the commands in the subdirectory [...]/source3/):
+
To build Samba, run the following commands out of the root of your Samba source directory:
  
 
   $ ./configure
 
   $ ./configure
Line 52: Line 52:
 
= Install Samba =
 
= Install Samba =
  
To install Samba, run the following command in your Samba source directory as user „root“ (Only for installing a Samba 3.x version, run the command in the subdirectory [...]/source3/):
+
To install Samba, run the following command in your Samba source directory as user „root“:
  
 
  # make install
 
  # make install

Revision as of 18:08, 28 October 2014

Introduction

This document describes how to build Samba from source.

It can be used for any kind of Samba installation (Samba AD DC, Member Server, Samba PDC, etc.).



Samba Operating System Requirements

See OS Requirements.



Obtaining Samba

See Obtaining Samba.



Compile Samba

To build Samba, run the following commands out of the root of your Samba source directory:

 $ ./configure
 $ make

The above command will setup Samba to install in /usr/local/samba/.

It's recommended to run

$ ./configure --help

to check out the possible configure options, to adapt your installation.

If you are using a development version of Samba or require a build with extra debug information, that may help to diagnose in case of failure, add the following option to „configure“:

--enable-debug 

To include the Samba selftest („make test“) in the build, add the following option to „configure“:

--enable-selftest



Install Samba

To install Samba, run the following command in your Samba source directory as user „root“:

# make install


Upgrading a source version

See Updating Samba.