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? THX --Mark
On Wed, 30 Apr 2025 15:40:06 -0400 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? > > THX --Mark >It is a bit more involved than that, if you just set the '--prefix' option, then everything will end up in whatever directory you use. You need to find out how Slackware builds Samba and build it in exactly the same way. Rowland
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