[Samba] samba-tool question
Rowland Penny
rowlandpenny at googlemail.com
Fri Nov 1 15:31:46 MDT 2013
On 01/11/13 20:10, lux-integ wrote:
> On Friday 01 November 2013 14:25:29 Rowland Penny wrote:
>> On 01/11/13 12:29, lux-integ wrote:
>>> On Friday 01 November 2013 12:20:49 Rowland Penny wrote:
>>>> Could you please post exactly how you compiled Samba4,
>>> herewith
>>> --1--
>>> #######################################
>>>
>>> apply sed for libtirpc
>>>
>>> #######################################
>>>
>>> sed -i -e /dmapi_lib/s/$/ldflags='-ltirpc',/ source3/wscript_build
>>>
>>>
>>>
>>> --2--
>>>
>>> #####################################
>>>
>>> waf configure
>>>
>>> #####################################
>>>
>>> ./buildtools/bin/waf configure \
>>> --prefix=${SAMBA_PREFIX} \
>>> --sysconfdir=/etc/samba4 \
>>> --localstatedir=/var \
>>> --docdir=/usr/share/doc/samba4 \
>>> --with-ctdb-dir=/usr \
>>> --with-system-mitkrb5 \
>>> --with-automount \
>>> --with-syslog \
>>> --with-dnsupdate \
>>> --with-acl-support \
>>> --with-iconv \
>>> --enable-pthreadpool \
>>> --with-quotas \
>>> --with-pam \
>>> --with-pam_smbpass \
>>> --enable-cups \
>>> --with-ldap \
>>> --enable-gnutls \
>>> --localedir=/usr/share/locale \
>>> --mandir=/usr/share/man \
>>> --with-statedir=/var/lib/samba4 \
>>> --with-pammodulesdir=/lib/security \
>>> --with-privatedir=/var/db/samba4 \
>>> --with-piddir=/var/run/samba4 \
>>> --with-cachedir=/var/cache/samba4 \
>>> --with-lockdir=/var/lock/samba4 \
>>> --with-logfilebase=/var/log/samba4 \
>>> --with-sockets-dir=/var/run/samba4 \
>>> --with-privileged-socket-dir=/var/lib/samba4 \
>>> --with-configdir=/etc/samba4 \
>>>
>>>
>>>
>>> --3--
>>>
>>> ###################################
>>>
>>> ./waf build
>>>
>>> ##################################
>>>
>>> ./buildtools/bin/waf build
>> OK, I have never done it like this, but I see what you are trying to do,
>> but does configure understand ${SAMBA_PREFIX} ? it is normally
> yes it does
>
>> /usr/local/samba and I think it should be set to a path. Also you seem
>> to have set all the paths except for --bindir=BINDIR and
>> --sbindir=SBINDIR and if configure doesn't know where ${SAMBA_PREFIX}
>> is, it probably does not know where to put the files that it normally
>> puts in /usr/local/samba/bin & sbin
>>
>> Probably doesn't mean anything, but most people run './configure' (with
>> any options) then 'make', then 'make install' rather than running waf
>
>
> the problem of samba-tool not being installed appears to be linked to this
> 'configure' switch
>
>
> --with-system-mitkrb5
>
> I tested the compilation and installation of samba-4.1.0 *with and without
> the $SAMBA_PREFIX envar ) a number of times today and whenever this switch is
> enabled ~bin/samba-tool is absent in the final installation.
>
> Is this incompatible with using the pre-installed krb5? And if not can the
> samba-tool script be copied over for example using something like
>
>
> install -m755 build-tree/~/samba-tool samba-prefix/bin
>
>
> thanks in advance
>
> luxinteg
>
When you say 'pre-installed krb5' do you already have MIT kerberos
installed? Samba4 has its own kerberos server built-in, this is based on
heimdal and I think Fedora are working on getting MIT to work with
Samba4, so you may have some success by asking them. Other than that,
you will just have to wait and see if one of the Samba devs responds.
Rowland
More information about the samba
mailing list