Jeffrey Walton
2025-Apr-30 20:39 UTC
[Samba] How to determine Samba Installation directory
On Wed, Apr 30, 2025 at 3:41?PM Mark Foley via samba <samba at lists.samba.org> wrote:> > I'm building Samba from a scratch download from samba.org. One of the ./configure > options is --prefix, which directs where to install the files. > > The "default" is /usr/local/samba, but from experience I know my distro does not > put the files there. There is nothing in either my /usr/lib/samba or > /usr/local/samba. > > How can I determine where my current --prefix directory is?If you have a config.site, then the default installation directories are taken from it. However, once ./configure is run, you often have a *.pc file that provides the directories. Also see bug reports like <https://bugzilla.redhat.com/show_bug.cgi?id=1510073>. Jeff
The instructions at https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller#Only_Applicable_if_Samba_was_Previously_Installed can be helpful: # smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR" LOCKDIR: /usr/local/samba/var/lock/ STATEDIR: /usr/local/samba/var/locks/ CACHEDIR: /usr/local/samba/var/cache/ PRIVATE_DIR: /usr/local/samba/private/ -- Peter> On Apr 30, 2025, at 4:40?PM, Jeffrey Walton via samba <samba at lists.samba.org> wrote: > > ?On Wed, Apr 30, 2025 at 3:41?PM Mark Foley via samba > <samba at lists.samba.org> wrote: >> >> I'm building Samba from a scratch download from samba.org. One of the ./configure >> options is --prefix, which directs where to install the files. >> >> The "default" is /usr/local/samba, but from experience I know my distro does not >> put the files there. There is nothing in either my /usr/lib/samba or >> /usr/local/samba. >> >> How can I determine where my current --prefix directory is? > > If you have a config.site, then the default installation directories > are taken from it. However, once ./configure is run, you often have a > *.pc file that provides the directories. > > Also see bug reports like <https://bugzilla.redhat.com/show_bug.cgi?id=1510073>. > > Jeff > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
On Wed Apr 30 16:39:51 2025 Jeffrey Walton <noloader at gmail.com> wrote:> > On Wed, Apr 30, 2025 at 3:41?PM Mark Foley via samba > <samba at lists.samba.org> wrote: > > > > I'm building Samba from a scratch download from samba.org. One of the ./configure > > options is --prefix, which directs where to install the files. > > > > The "default" is /usr/local/samba, but from experience I know my distro does not > > put the files there. There is nothing in either my /usr/lib/samba or > > /usr/local/samba. > > > > How can I determine where my current --prefix directory is? > > If you have a config.site, then the default installation directories > are taken from it. However, once ./configure is run, you often have a > *.pc file that provides the directories. > > Also see bug reports like <https://bugzilla.redhat.com/show_bug.cgi?id=1510073>. > > JeffI don't have a config.site. I used the pre-built distro Samba and did not initially build it myself, so no *.pc either. I'll check out your bugzilla link before I pull the trigger. THX --Mark