- Timestamp:
- Jun 16, 2009, 5:52:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/docs/htmldocs/Samba3-HOWTO/compiling.html
r231 r272 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 42. How to Compile Samba</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="Appendix.html" title="Part VI. Reference Section"><link rel="prev" href="Appendix.html" title="Part VI. Reference Section"><link rel="next" href="Portability.html" title="Chapter 43. Portability"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 42. How to Compile Samba</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="Appendix.html">Prev</a> </td><th width="60%" align="center">Part VI. Reference Section</th><td width="20%" align="right"> <a accesskey="n" href="Portability.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="compiling"></a>Chapter 42. How to Compile Samba</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="orgname">The Samba Team</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="orgname">Samba Team</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Andrew</span> <span class="orgname">Samba Team</span> <span class="surname">Tridgell</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:tridge@samba.org">tridge@samba.org</a>></code></p></div></div></div></div><div><p class="pubdate"> 22 May 2001 </p></div><div><p class="pubdate"> 18 March 2003 </p></div><div><p class="pubdate"> June 2005 </p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="compiling.html#id26875 32">Access Samba Source Code via Subversion</a></span></dt><dd><dl><dt><span class="sect2"><a href="compiling.html#id2687538">Introduction</a></span></dt><dt><span class="sect2"><a href="compiling.html#id2687580">Subversion Access to samba.org</a></span></dt></dl></dd><dt><span class="sect1"><a href="compiling.html#id2687771">Accessing the Samba Sources via rsync and ftp</a></span></dt><dt><span class="sect1"><a href="compiling.html#id2687846">Verifying Samba's PGP Signature</a></span></dt><dt><span class="sect1"><a href="compiling.html#id2687984">Building the Binaries</a></span></dt><dd><dl><dt><span class="sect2"><a href="compiling.html#id2688221">Compiling Samba with Active Directory Support</a></span></dt></dl></dd><dt><span class="sect1"><a href="compiling.html#startingSamba">Starting the smbd nmbd and winbindd</a></span></dt><dd><dl><dt><span class="sect2"><a href="compiling.html#id2688492">Starting from inetd.conf</a></span></dt><dt><span class="sect2"><a href="compiling.html#id2688712">Alternative: Starting smbd as a Daemon</a></span></dt></dl></dd></dl></div><p>1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 42. How to Compile Samba</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="Appendix.html" title="Part VI. Reference Section"><link rel="prev" href="Appendix.html" title="Part VI. Reference Section"><link rel="next" href="Portability.html" title="Chapter 43. Portability"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 42. How to Compile Samba</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="Appendix.html">Prev</a> </td><th width="60%" align="center">Part VI. Reference Section</th><td width="20%" align="right"> <a accesskey="n" href="Portability.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="compiling"></a>Chapter 42. How to Compile Samba</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="orgname">The Samba Team</span> <span class="surname">Vernooij</span></h3><div class="affiliation"><span class="orgname">The Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jelmer@samba.org">jelmer@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="orgname">Samba Team</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Andrew</span> <span class="orgname">Samba Team</span> <span class="surname">Tridgell</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email"><<a class="email" href="mailto:tridge@samba.org">tridge@samba.org</a>></code></p></div></div></div></div><div><p class="pubdate"> 22 May 2001 </p></div><div><p class="pubdate"> 18 March 2003 </p></div><div><p class="pubdate"> June 2005 </p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="compiling.html#id2687567">Access Samba Source Code via Subversion</a></span></dt><dd><dl><dt><span class="sect2"><a href="compiling.html#id2687573">Introduction</a></span></dt><dt><span class="sect2"><a href="compiling.html#id2687614">Subversion Access to samba.org</a></span></dt></dl></dd><dt><span class="sect1"><a href="compiling.html#id2687805">Accessing the Samba Sources via rsync and ftp</a></span></dt><dt><span class="sect1"><a href="compiling.html#id2687880">Verifying Samba's PGP Signature</a></span></dt><dt><span class="sect1"><a href="compiling.html#id2688018">Building the Binaries</a></span></dt><dd><dl><dt><span class="sect2"><a href="compiling.html#id2688255">Compiling Samba with Active Directory Support</a></span></dt></dl></dd><dt><span class="sect1"><a href="compiling.html#startingSamba">Starting the smbd nmbd and winbindd</a></span></dt><dd><dl><dt><span class="sect2"><a href="compiling.html#id2688526">Starting from inetd.conf</a></span></dt><dt><span class="sect2"><a href="compiling.html#id2688746">Alternative: Starting smbd as a Daemon</a></span></dt></dl></dd></dl></div><p> 2 2 You can obtain the Samba source file from the 3 3 <a class="ulink" href="http://samba.org/" target="_top">Samba Web site</a>. To obtain a development version, 4 4 you can download Samba from Subversion or using <code class="literal">rsync</code>. 5 </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id26875 32"></a>Access Samba Source Code via Subversion</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2687538"></a>Introduction</h3></div></div></div><p>6 <a class="indexterm" name="id26875 46"></a>5 </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2687567"></a>Access Samba Source Code via Subversion</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2687573"></a>Introduction</h3></div></div></div><p> 6 <a class="indexterm" name="id2687581"></a> 7 7 Samba is developed in an open environment. Developers use a 8 8 Subversion to “<span class="quote">checkin</span>” (also known as … … 13 13 This chapter is a modified version of the instructions found at the 14 14 <a class="ulink" href="http://samba.org/samba/subversion.html" target="_top">Samba</a> Web site. 15 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2687 580"></a>Subversion Access to samba.org</h3></div></div></div><p>15 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2687614"></a>Subversion Access to samba.org</h3></div></div></div><p> 16 16 The machine samba.org runs a publicly accessible Subversion 17 17 repository for access to the source code of several packages, 18 18 including Samba, rsync, distcc, ccache, and jitterbug. There are two main ways 19 19 of accessing the Subversion server on this host. 20 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2687 593"></a>Access via ViewCVS</h4></div></div></div><p>21 <a class="indexterm" name="id26876 01"></a>20 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2687627"></a>Access via ViewCVS</h4></div></div></div><p> 21 <a class="indexterm" name="id2687635"></a> 22 22 You can access the source code via your favorite WWW browser. This allows you to access 23 23 the contents of individual files in the repository and also to look at the revision … … 27 27 Use the URL 28 28 <a class="ulink" href="http://viewcvs.samba.org/" target="_top">http://viewcvs.samba.org/</a>. 29 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id26876 29"></a>Access via Subversion</h4></div></div></div><p>30 <a class="indexterm" name="id26876 37"></a>29 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2687663"></a>Access via Subversion</h4></div></div></div><p> 30 <a class="indexterm" name="id2687671"></a> 31 31 You can also access the source code via a normal Subversion client. This gives you much more control over what 32 32 you can do with the repository and allows you to check out whole source trees and keep them up to date via … … 38 38 </p><p> 39 39 To gain access via anonymous Subversion, use the following steps. 40 </p><div class="procedure"><a name="id2687 670"></a><p class="title"><b>Procedure 42.1. Retrieving Samba using Subversion</b></p><ol type="1"><li><p>40 </p><div class="procedure"><a name="id2687704"></a><p class="title"><b>Procedure 42.1. Retrieving Samba using Subversion</b></p><ol type="1"><li><p> 41 41 Install a recent copy of Subversion. All you really need is a 42 42 copy of the Subversion client binary. … … 63 63 <strong class="userinput"><code>svn update</code></strong> 64 64 </pre><p> 65 </p></li></ol></div></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2687 771"></a>Accessing the Samba Sources via rsync and ftp</h2></div></div></div><p>66 <a class="indexterm" name="id2687 779"></a>67 <a class="indexterm" name="id2687 786"></a>65 </p></li></ol></div></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2687805"></a>Accessing the Samba Sources via rsync and ftp</h2></div></div></div><p> 66 <a class="indexterm" name="id2687814"></a> 67 <a class="indexterm" name="id2687820"></a> 68 68 <em class="parameter"><code>pserver.samba.org</code></em> also exports unpacked copies of most parts of the Subversion tree 69 69 at the Samba <a class="ulink" href="ftp://pserver.samba.org/pub/unpacked" target="_top">pserver</a> location and also … … 75 75 merging of local changes as Subversion does. <code class="literal">rsync</code> access is most convenient 76 76 for an initial install. 77 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id26878 46"></a>Verifying Samba's PGP Signature</h2></div></div></div><p>78 <a class="indexterm" name="id26878 54"></a>79 <a class="indexterm" name="id26878 60"></a>77 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2687880"></a>Verifying Samba's PGP Signature</h2></div></div></div><p> 78 <a class="indexterm" name="id2687888"></a> 79 <a class="indexterm" name="id2687894"></a> 80 80 It is strongly recommended that you verify the PGP signature for any source file before 81 81 installing it. Even if you're not downloading from a mirror site, verifying PGP signatures … … 88 88 <code class="prompt">$ </code><strong class="userinput"><code>wget http://us1.samba.org/samba/ftp/samba-pubkey.asc</code></strong> 89 89 </pre><p> 90 <a class="indexterm" name="id26879 08"></a>90 <a class="indexterm" name="id2687943"></a> 91 91 The first file is the PGP signature for the Samba source file; the other is the Samba public 92 92 PGP key itself. Import the public PGP key with: … … 106 106 gpg: BAD signature from “<span class="quote">Samba Distribution Verification Key</span>” 107 107 </pre><p> 108 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id268 7984"></a>Building the Binaries</h2></div></div></div><p>109 <a class="indexterm" name="id268 7992"></a>110 <a class="indexterm" name="id268 7998"></a>108 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2688018"></a>Building the Binaries</h2></div></div></div><p> 109 <a class="indexterm" name="id2688026"></a> 110 <a class="indexterm" name="id2688033"></a> 111 111 After the source tarball has been unpacked, the next step involves 112 112 configuration to match Samba to your operating system platform. … … 121 121 </pre><p> 122 122 </p><p> 123 <a class="indexterm" name="id26880 40"></a>123 <a class="indexterm" name="id2688075"></a> 124 124 To build the binaries, run the program <strong class="userinput"><code>./configure 125 125 </code></strong> in the source directory. This should automatically … … 136 136 </pre><p> 137 137 </p><p> 138 <a class="indexterm" name="id26881 06"></a>138 <a class="indexterm" name="id2688140"></a> 139 139 Execute the following create the binaries: 140 140 </p><pre class="screen"> … … 165 165 As you can see from this, building and installing Samba does not need to 166 166 result in disaster! 167 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id26882 21"></a>Compiling Samba with Active Directory Support</h3></div></div></div><p>167 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2688255"></a>Compiling Samba with Active Directory Support</h3></div></div></div><p> 168 168 In order to compile Samba with ADS support, you need to have installed 169 169 on your system: … … 188 188 your LDAP libraries. Look in <code class="filename">config.log</code> to figure 189 189 out why and fix it. 190 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2688 287"></a>Installing the Required Packages for Debian</h4></div></div></div><p>On Debian, you need to install the following packages:</p><p>190 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2688321"></a>Installing the Required Packages for Debian</h4></div></div></div><p>On Debian, you need to install the following packages:</p><p> 191 191 </p><div class="itemizedlist"><ul type="disc"><li><p>libkrb5-dev</p></li><li><p>krb5-user</p></li></ul></div><p> 192 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id26883 14"></a>Installing the Required Packages for Red Hat Linux</h4></div></div></div><p>On Red Hat Linux, this means you should have at least: </p><p>192 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2688348"></a>Installing the Required Packages for Red Hat Linux</h4></div></div></div><p>On Red Hat Linux, this means you should have at least: </p><p> 193 193 </p><div class="itemizedlist"><ul type="disc"><li><p>krb5-workstation (for kinit)</p></li><li><p>krb5-libs (for linking with)</p></li><li><p>krb5-devel (because you are compiling from source)</p></li></ul></div><p> 194 194 </p><p>in addition to the standard development environment.</p><p>If these files are not installed on your system, you should check the installation 195 195 CDs to find which has them and install the files using your tool of choice. If in doubt 196 about what tool to use, refer to the Red Hat Linux documentation.</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id26883 58"></a>SuSE Linux Package Requirements</h4></div></div></div><p>196 about what tool to use, refer to the Red Hat Linux documentation.</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2688393"></a>SuSE Linux Package Requirements</h4></div></div></div><p> 197 197 SuSE Linux installs Heimdal packages that may be required to allow you to build 198 198 binary packages. You should verify that the development libraries have been installed on … … 205 205 packages where they are available. 206 206 </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="startingSamba"></a>Starting the <span class="application">smbd</span> <span class="application">nmbd</span> and <span class="application">winbindd</span></h2></div></div></div><p> 207 <a class="indexterm" name="id26884 12"></a>207 <a class="indexterm" name="id2688446"></a> 208 208 You must choose to start <span class="application">smbd</span>, <span class="application">winbindd</span> and <span class="application">nmbd</span> either as daemons or from 209 209 <span class="application">inetd</span>. Don't try to do both! Either you can put … … 217 217 The main advantage of starting <span class="application">smbd</span> and <span class="application">nmbd</span> using the recommended daemon method 218 218 is that they will respond slightly more quickly to an initial connection request. 219 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2688 492"></a>Starting from inetd.conf</h3></div></div></div><a class="indexterm" name="id2688498"></a><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The following will be different if219 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2688526"></a>Starting from inetd.conf</h3></div></div></div><a class="indexterm" name="id2688532"></a><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The following will be different if 220 220 you use NIS, NIS+, or LDAP to distribute services maps.</p></div><p>Look at your <code class="filename">/etc/services</code>. 221 221 What is defined at port 139/tcp? If nothing is defined, … … 226 226 netbios-ns dgram udp wait root /usr/local/samba/sbin/nmbd nmbd 227 227 </pre><p> 228 </p><a class="indexterm" name="id26885 60"></a><p>228 </p><a class="indexterm" name="id2688595"></a><p> 229 229 The exact syntax of <code class="filename">/etc/inetd.conf</code> 230 230 varies between UNIXes. Look at the other entries in inetd.conf 231 231 for a guide. 232 232 </p><p> 233 <a class="indexterm" name="id2688 580"></a>233 <a class="indexterm" name="id2688615"></a> 234 234 Some distributions use xinetd instead of inetd. Consult the 235 235 xinetd manual for configuration information. … … 239 239 <code class="filename">/etc/inetd.conf</code> to make them consistent. 240 240 </p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> 241 <a class="indexterm" name="id26886 18"></a>241 <a class="indexterm" name="id2688652"></a> 242 242 On many systems you may need to use the 243 243 <a class="link" href="smb.conf.5.html#INTERFACES" target="_top">interfaces</a> option in <code class="filename">smb.conf</code> to specify … … 254 254 Restart <span class="application">inetd</span>, perhaps just send it a HUP, 255 255 like this: 256 <a class="indexterm" name="id2688 687"></a>256 <a class="indexterm" name="id2688721"></a> 257 257 </p><pre class="screen"> 258 258 <code class="prompt">root# </code><strong class="userinput"><code>killall -HUP inetd</code></strong> 259 259 </pre><p> 260 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id26887 12"></a>Alternative: Starting <span class="application">smbd</span> as a Daemon</h3></div></div></div><p>261 <a class="indexterm" name="id26887 26"></a>262 <a class="indexterm" name="id26887 33"></a>260 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2688746"></a>Alternative: Starting <span class="application">smbd</span> as a Daemon</h3></div></div></div><p> 261 <a class="indexterm" name="id2688760"></a> 262 <a class="indexterm" name="id2688767"></a> 263 263 To start the server as a daemon, you should create a script something 264 264 like this one, perhaps calling it <code class="filename">startsmb</code>. … … 279 279 <code class="filename">examples/svr4-startup</code> script to make Samba fit 280 280 into that system. 281 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id26888 11"></a>Starting Samba for Red Hat Linux</h4></div></div></div><p>281 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2688845"></a>Starting Samba for Red Hat Linux</h4></div></div></div><p> 282 282 Red Hat Linux has not always included all Samba components in the standard installation. 283 283 So versions of Red Hat Linux do not install the winbind utility, even though it is present … … 312 312 </pre><p> 313 313 Samba will be started automatically at every system reboot. 314 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id26889 33"></a>Starting Samba for Novell SUSE Linux</h4></div></div></div><p>314 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2688968"></a>Starting Samba for Novell SUSE Linux</h4></div></div></div><p> 315 315 Novell SUSE Linux products automatically install all essential Samba components in a default installation. 316 316 Configure your <code class="filename">smb.conf</code> file, then execute the following to start Samba:
Note:
See TracChangeset
for help on using the changeset viewer.