1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sambaのビルド手順

Posted at

概要

Sambaをソースからビルドする手順メモ。

詳細は公式wikiに記載がある。

Build Samba from source - SambaWiki
https://wiki.samba.org/index.php/Build_Samba_from_source

環境

debian8 (jessie)

ビルド手順

依存パッケージインストール

Operating system requirements/Dependencies - Libraries and programs - SambaWiki
https://wiki.samba.org/index.php/Operating_system_requirements/Dependencies_-_Libraries_and_programs#Debian_.2F_Ubuntu

install_package.sh
#!/bin/sh

apt-get install acl attr autoconf bison build-essential \
  debhelper dnsutils docbook-xml docbook-xsl flex gdb krb5-user \
  libacl1-dev libaio-dev libattr1-dev libblkid-dev libbsd-dev \
  libcap-dev libcups2-dev libgnutls28-dev libjson-perl \
  libldap2-dev libncurses5-dev libpam0g-dev libparse-yapp-perl \
  libpopt-dev libreadline-dev perl perl-modules pkg-config \
  python-all-dev python-dev python-dnspython python-crypto \
  xsltproc zlib1g-dev

Note: libgnutls-dev has been replace by libgnutls28-dev on Debian 8 Jessie and Ubuntu >=14.04

上記に当てはまるため、書き換えている。

 ./install_package.sh

configure

AD/DC機能は不要なので無効にしてconfigure

$ cd <path to samba source>
$ ./configure --without-ad-dc
Checking for program gcc or cc           : /usr/bin/gcc
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
...
Checking configure summary                                                                      : ok
Checking compiler for PIE support                                                               : yes
'configure' finished successfully (54.800s)

make

$ make -j2
WAF_MAKE=1 python ./buildtools/bin/waf build
Waf: Entering directory `/home/tmp/samba-samba-4.1.0/bin'
        Selected embedded Heimdal build
...
[3538/3538] Generating manpages/winbind_krb5_locator.7
Note: Writing pam_winbind.conf.5
Note: Writing winbind_krb5_locator.7
Waf: Leaving directory `/home/tmp/samba-samba-4.1.0/bin'
'build' finished successfully (4m53.623s)
1
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?