{"id":768,"date":"2019-11-03T22:50:49","date_gmt":"2019-11-03T13:50:49","guid":{"rendered":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/?p=768"},"modified":"2022-05-21T23:57:47","modified_gmt":"2022-05-21T14:57:47","slug":"samba%e3%82%b5%e3%83%bc%e3%83%90%e3%82%92%e3%82%bd%e3%83%bc%e3%82%b9%e3%81%8b%e3%82%89%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/768","title":{"rendered":"Samba\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"\n<p>OS: Ubuntu Server 18.04<br>\nSamba 4.11.2<\/p>\n\n\n\n<p>Samba\u30b5\u30fc\u30d0\u306e\u5c0e\u5165\u6642\u306b\u3044\u3064\u3082\u591a\u6570\u306e\u30a8\u30e9\u30fc\u306b\u898b\u821e\u308f\u308c\u3066\u8e93\u304f\u304b\u3089\u3001\u6b64\u308c\u3092\u50c5\u304b\u3067\u3082\u697d\u3061\u3093\u306b\u3059\u308b\u624b\u52a9\u3051\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u6210\u529f\u307e\u3067\u3092\u8a18\u9332\u3059\u308b\u3082\u306e\u3067\u3042\u308b\u3002\u307e\u305a\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u6e96\u5099\u3057\u3066\u89e3\u51cd\u30fb\u5c55\u958b\u3057\u3001configure\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ wget -c https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.11.2.tar.gz\n$ wget -c https:\/\/download.samba.org\/pub\/samba\/stable\/samba-4.11.2.tar.asc\n$ gunzip samba-4.11.2.tar.gz\n\n$ gpg --recv-keys 52FBC0B86D954B0843324CDC6F33915B6568B7EA\n$ gpg --verify samba-4.11.2.tar.asc\n(snip)\ngpg: Good signature from \"Samba Distribution Verification Key \" [unknown]\n\n$ tar xvf samba-4.11.2.tar\n$ cd samba-4.11.2\/\n$ .\/configure<\/pre>\n\n\n\n<p>\u305d\u3046\u3059\u308b\u3068\u3044\u304f\u3089\u3082\u3057\u306a\u3044\u3046\u3061\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u73fe\u308c\u308b\u3002\u4e00\u3064\u89e3\u6c7a\u3057\u3066\u3082\u53c8\u51fa\u308b\u3002\u6b21\u3005\u51fa\u308b\u3002\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u5bb9\u6613\u306b\u89e3\u6c7a\u7b56\u304c\u898b\u3064\u304b\u308b\u3082\u306e\u3082\u3042\u308b\u3051\u308c\u3069\u3082\u3001\u3069\u3046\u3057\u3066\u3082\u5224\u7136\u3068\u3057\u306a\u3044\u3082\u306e\u3082\u3042\u308b\u3002\u3053\u308c\u3089\u306e\u77e5\u898b\u3092\u3072\u3068\u3068\u3053\u308d\u306b\u7e8f\u3081\u3066\u304a\u304f\u306e\u304c\u809d\u8981\u3067\u3042\u308d\u3046\u3068\u304a\u3082\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/th><th>\u5bfe\u5fdc\u7b56<\/th><\/tr><tr><td>The distutils module is unusable: install &#8220;python-devel&#8221;?<\/td><td>\u4e00\u898b\u3059\u308b\u3068 <code>libpython3-dev<\/code> \u306e\u5c0e\u5165\u3067\u89e3\u6c7a\u3057\u305d\u3046\u306a\u98a8\u60c5\u3067\u3042\u308b\u3051\u308c\u3069\u3082\u3001\u3061\u3063\u3068\u3082\u6539\u5584\u3055\u308c\u308b\u6c17\u914d\u304c\u306a\u304b\u3063\u305f\u3002 <code>bin\/config.log<\/code> \u3092\u8abf\u3079\u3066\u307f\u308b\u3068 <code>ModuleNotFoundError: No module named 'distutils.sysconfig'<\/code>\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6b8b\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f <code><strong class=\"cl\">python3-distutils<\/strong><\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3059\u308b\u3068\u826f\u3044\u3088\u3046\u3067\u3042\u308b\u3002<\/td><\/tr><tr><td>Checking for header Python.h       : Distutils not installed? Broken python installation? Get python-config now!<\/td><td>\u4e00\u898b\u3059\u308b\u3068 <code>python-config<\/code> \u306e\u5c0e\u5165\u3067\u89e3\u6c7a\u3057\u305d\u3046\u306a\u98a8\u60c5\u3067\u3042\u308b\u3051\u308c\u3069\u3082\u305d\u3046\u3044\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u898b\u5f53\u305f\u3089\u306a\u304f\u3066\u56f0\u3063\u305f\u3002 <code><strong class=\"cl\">libpython3-dev<\/strong><\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u89e3\u6c7a\u3057\u3066\u304f\u308c\u305f\u3002<\/td><\/tr><tr><td>Samba AD DC and &#8211;enable-selftest requires lmdb 0.9.16 or later<\/td><td>Active Directory Domain Controller\u3068\u3057\u3066Samba\u306e\u69cb\u7bc9\u306b\u53d6\u308a\u7d44\u3080\u3064\u3082\u308a\u3067\u7121\u3051\u308c\u3070 <code>--without-ad-dc<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3066configure\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u518d\u5b9f\u884c\u3059\u308b\u3002\u53d6\u308a\u7d44\u3080\u306e\u3067\u3042\u308c\u3070 <code><strong class=\"cl\">liblmdb-dev<\/strong><\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u5b9c\u3057\u3044\u6c17\u8272\u3067\u3042\u308b\u3051\u308c\u3069\u3082\u3001apt\u3067\u63a2\u3063\u3066\u3082\u3069\u3046\u3057\u3066\u304b\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u898b\u5f53\u305f\u3089\u306a\u3044\u304b\u3089 <a href=\"https:\/\/github.com\/LMDB\/lmdb\">GitHub &#8211; LMDB\/lmdb<\/a> \u304b\u3089\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3066\u30d3\u30eb\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u3002<\/td><\/tr><tr><td>Checking for program &#8216;pkg-config&#8217;             : not found<br> Checking for GnuTLS &gt;= 3.2.0                  : not found<\/td><td><code><strong class=\"cl\">pkg-config<\/strong><\/code> \u3068 <code><strong class=\"cl\">libgnutls28-dev<\/strong><\/code> \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3044\u3063\u307a\u3093\u306b\u4e8c\u3064\u3068\u3082\u5c0e\u5165\u3059\u308c\u3070\u3088\u304b\u3063\u305f\u3002<\/td><\/tr><tr><td>Checking for jansson          : not found\nJansson JSON support not found. Try installing libjansson-dev or jansson-devel. Otherwise, use &#8211;without-json to build without JSON support. JSON support is required for the JSON formatted audit log feature, the AD DC, and the JSON printers of the net utility<\/td><td>JSON\u5f62\u5f0f\u3067\u76e3\u67fb\u30ed\u30b0\u3092\u51fa\u529b\u3057\u305f\u308a\u3001Active Directory Domain Controller\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u5834\u5408\u306b\u306f <code><strong class=\"cl\">libjansson-dev<\/strong><\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3059\u308c\u3070\u5b9c\u3057\u3044\u3002\u4e0d\u8981\u3067\u3042\u308c\u3070 <code>--without-json<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\u3002<\/td><\/tr><tr><td>Checking for header archive.h                : no\nlibarchive support not found. Try installing libarchive-dev or libarchive-devel. Otherwise, use &#8211;without-libarchive to build without libarchive support. libarchive support is required for the smbclient tar-file mode<\/td><td>smbclient\u304b\u3089tar-file\u30e2\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u5fc5\u8981\u3001\u3068\u3042\u308b\u3051\u308c\u3069\u3082\u5168\u4f53\u3069\u3046\u3044\u3046\u3082\u306e\u304b\u5224\u7136\u3068\u3057\u306a\u3044\u3002\u4e0d\u8981\u3068\u5224\u65ad\u3092\u4e0b\u3059\u306a\u3089 <code>--without-libarchive<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\u3060\u3051\u3067\u3042\u308b\u3002\u4e00\u65b9\u3001\u7121\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u5411\u304d\u306b\u306f <code><strong class=\"cl\">libarchive-dev<\/strong><\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3059\u308b\u3002<\/td><\/tr><tr><td>Checking for acl_get_fd           : not found<br>\nACL support not found. Try installing libacl1-dev or libacl-devel.  Otherwise, use &#8211;without-acl-support to build without ACL support. ACL support is required to change permissions from Windows clients.<\/td><td>Windows\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u306f <code><strong class=\"cl\">libacl1-dev<\/strong><\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002\u305d\u3046\u3044\u3063\u305f\u6a5f\u80fd\u306b\u51fa\u756a\u3092\u6c42\u3081\u3066\u3044\u306a\u3044\u306a\u3089 <code>--without-acl-support<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u5b9c\u3057\u3044\u3002<\/td><\/tr><tr><td>LDAP support not found. Try installing libldap2-dev or openldap-devel. Otherwise, use &#8211;without-ldap to build without LDAP support. LDAP support is required for the LDAP passdb backend, LDAP idmap backends and ADS. ADS support improves communication with Active Directory domain controllers.<\/td><td>LDAP\u306e\u30b5\u30dd\u30fc\u30c8\u306f\u304a\u547c\u3073\u3067\u306a\u3044\u306a\u3089 <code>--without-ldap<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3066configure\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u518d\u5b9f\u884c\u3059\u308b\u3002\u6b20\u304f\u3053\u3068\u306e\u8a31\u3055\u308c\u306a\u3044\u5834\u5408\u306f <code><strong class=\"cl\">libldap2-dev<\/strong><\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u51fa\u756a\u3068\u306a\u308b\u3002<\/td><\/tr><tr><td>Active Directory support not available: LDAP support is not available.\nActive Directory support not found. Use &#8211;without-ads for building without Active Directory support. ADS support improves communication with Active Directory domain controllers.<\/td><td>Active Directory\u3092\u30b5\u30dd\u30fc\u30c8\u305b\u305a\u3068\u3082\u3088\u3044\u306a\u3089\u3070 <code>--without-ads<\/code> \u306e\u4ed8\u4e0e\u3067\u7d42\u3044\u3067\u3042\u308b\u3002\u5fc5\u9700\u3068\u8003\u3048\u308b\u306a\u3089 <code><strong class=\"cl\">libldap2-dev<\/strong><\/code> \u304c\u5165\u7528\u3067\u3042\u308b\u3002<\/td><\/tr><tr><td>PAM support is enabled but prerequisite libraries or headers not found. Use &#8211;without-pam to disable PAM support.<\/td><td>PAM\u3067\u4ee5\u3063\u3066\u8a8d\u8a3c\u3092\u5b9f\u65bd\u3059\u308b\u305f\u3081\u306b\u306f <code><strong class=\"cl\">libpam0g-dev<\/strong><\/code> \u304c\u5fc5\u8981\u3068\u306a\u308b\u3051\u308c\u3069\u3082\u8981\u3089\u306a\u3044\u6a5f\u80fd\u3068\u898b\u308b\u306a\u3089\u3070 <code>--without-pam<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\u3002<\/td><\/tr><tr><td>Checking for gpgme_new           : not found\nGPGME support not found. Try installing libgpgme11-dev or gpgme-devel and python-gpgme. Otherwise, use &#8211;without-gpgme to build without GPGME support or &#8211;without-ad-dc to build without the Samba AD DC. GPGME support is required for the GPG encrypted password sync feature\n<\/td><td>GPGME(GnuPG Made Easy)\u306e\u6a5f\u80fd\u306fActive Directory Domain Controller\u3092\u5c0e\u5165\u3059\u308b\u5834\u5408\u306b\u4f75\u305b\u3066\u6c42\u3081\u3089\u308c\u308b\u6a21\u69d8\u3067\u3042\u308b\u3002<code><strong class=\"cl\">libgpgme-dev<\/strong><\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165\u3067\u89e3\u6c7a\u3067\u304d\u305f\u3002<code>--without-gpgme<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u52a0\u3059\u308c\u3070GPGME\u3092\u4f7f\u7528\u3057\u306a\u3044\u3002<\/td><\/tr><\/tbody><\/table><figcaption>\u88681. \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u5bfe\u5fdc\u7b56<\/figcaption><\/figure>\n\n\n\n<p>\u4f55\u3089\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u52a0\u3048\u306a\u3044\u3067configure\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u65bd\u3059\u308b\u306a\u3089\u3001lmdb\u3092\u624b\u305a\u304b\u3089\u30d3\u30eb\u30c9\u3057\u3001\u6b21\u3044\u3067\u5fc5\u8981\u3068\u306a\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4e00\u904d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3084\u308c\u3070\u5b9c\u3057\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ git clone https:\/\/github.com\/LMDB\/lmdb.git\n$ cd lmdb\/libraries\/liblmdb\/\n$ make\n$ sudo make install\n\n$ sudo apt install python3-distutils libpython3-dev pkg-config libgnutls28-dev libjansson-dev libarchive-dev libacl1-dev libldap2-dev libldap2-dev libpam0g-dev libgpgme-dev\n\n$ .\/configure\n(snip)\n'configure' finished successfully (49.706s)\n\n$ make\n$ sudo make install\n$ \/usr\/local\/samba\/sbin\/smbd -V\nVersion 4.11.2<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/11\/install-samba.png\"><img loading=\"lazy\" decoding=\"async\" width=\"524\" height=\"164\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/11\/install-samba.png\" alt=\"\" class=\"wp-image-769\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/11\/install-samba.png 524w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2019\/11\/install-samba-300x94.png 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/a><figcaption>\u56f31. configure\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u65bd\u3057\u305f\u69d8\u5b50<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"link\">\u53c2\u8003:<\/h3>\n<ul>\n <li><a href=\"https:\/\/wiki.samba.org\/index.php\/Package_Dependencies_Required_to_Build_Samba#Debian_.2F_Ubuntu\">Package Dependencies Required to Build Samba<\/a><\/li>\n <li><a href=\"https:\/\/books.google.co.jp\/books?id=yQ9DjzjZO_EC&amp;pg=PA173&amp;dq=tarmode&amp;hl=ja&amp;sa=X&amp;ved=0ahUKEwjit_jl-M3lAhWuyIsBHQvMCw4Q6AEIKzAA#v=onepage&amp;q=tarmode&amp;f=false\">Samba &#8211; Jay Ts, Robert Eckstein, David Collier-Brown &#8211; Google \u30d6\u30c3\u30af\u30b9<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>OS: Ubuntu Server 18.04 Samba 4.11.2 Samba\u30b5\u30fc\u30d0\u306e\u5c0e\u5165\u6642\u306b\u3044\u3064\u3082\u591a\u6570\u306e\u30a8\u30e9\u30fc\u306b\u898b\u821e\u308f\u308c\u3066\u8e93\u304f\u304b\u3089\u3001\u6b64\u308c\u3092\u50c5\u304b\u3067\u3082\u697d\u3061\u3093\u306b\u3059\u308b\u624b\u52a9\u3051\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u6210\u529f\u307e\u3067\u3092\u8a18\u9332\u3059\u308b\u3082\u306e\u3067\u3042\u308b\u3002\u307e\u305a\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u6e96\u5099\u3057\u3066\u89e3\u51cd\u30fb\u5c55\u958b\u3057\u3001configure\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3002 $ wget -c https:\/\/download.samba.org\/pub\/samba\/ &#8230; <a title=\"Samba\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\" class=\"read-more\" href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/768\" aria-label=\"Samba\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":1087,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[162],"tags":[172,165],"class_list":["post-768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-162","tag-samba","tag-165"],"views":5627,"_links":{"self":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":0,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media\/1087"}],"wp:attachment":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}