Caesar Samsi
2015-May-05 01:40 UTC
[Samba] 4.2.1 ./configure --sbindir & --bindir settings is different from binary?
Hi, I'm getting further in building Samba 4.2.1 . It's apparently not as simple as sudo ./configure && make && make install. At the moment it looks like make is ignoring some directory settings during configuration. I've run ./configure as follows: sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-piddir=/var/run/samba --with-pammodulesdir=/lib/security --without-systemd --enable-fhs --sbindir=/usr/sbin --bindir=/usr/bin --libdir=/usr/lib/x86_64-linux-gnu --with-modulesdir=/usr/lib/x86_64-linux-gnu/samba --with-lockdir=/var/run/samba --enable-gnutls Note that --sbindir=/usr/bin Which results in the following (the directory looks correct, as I specified it): Dynconfig[SBINDIR]: : '/usr/sbin' However, when make is done building and I check the configuration using smbd -b I get the following: Paths: SBINDIR: /home/caesar/Downloads/samba-4.2.1/bin How can I set the sbin (and the bin directory which also has the same issue)? Help, Thank you, Caesar.
Andrey Repin
2015-May-05 07:33 UTC
[Samba] 4.2.1 ./configure --sbindir & --bindir settings is different from binary?
Greetings, Caesar Samsi!> I'm getting further in building Samba 4.2.1 . It's apparently not as simple > as sudo ./configure && make && make install.Never ever use "sudo" for configure. Engrave it into your skull, if that's how you best memorize the basic rules of safety. Only one "sudo" you need is "sudo make install".> At the moment it looks like make is ignoring some directory settings during > configuration.>> I've run ./configure as follows:>> sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var > --with-piddir=/var/run/samba --with-pammodulesdir=/lib/security> --without-systemd --enable-fhs> --sbindir=/usr/sbin --bindir=/usr/bin --libdir=/usr/lib/x86_64-linux-gnu> --with-modulesdir=/usr/lib/x86_64-linux-gnu/samba> --with-lockdir=/var/run/samba --enable-gnutls>> Note that --sbindir=/usr/bin>> Which results in the following (the directory looks correct, as I specified > it):>> Dynconfig[SBINDIR]: : '/usr/sbin'>> However, when make is done building and I check the configuration using smbd > -b I get the following:>> Paths:> SBINDIR: /home/caesar/Downloads/samba-4.2.1/bin>> How can I set the sbin (and the bin directory which also has the same > issue)?Is that before "make install" or after? Does it stay after install, if it is from before? -- With best regards, Andrey Repin Tuesday, May 5, 2015 10:23:10 Sorry for my terrible english...
Andrew Bartlett
2015-May-05 09:56 UTC
[Samba] 4.2.1 ./configure --sbindir & --bindir settings is different from binary?
On Tue, 2015-05-05 at 10:33 +0300, Andrey Repin wrote:> > > Paths: > > > SBINDIR: /home/caesar/Downloads/samba-4.2.1/bin > > > > > > How can I set the sbin (and the bin directory which also has the > same > > issue)? > > Is that before "make install" or after? > Does it stay after install, if it is from before?This is exactly the issue. During 'make install' we fix up the paths to be the paths from configure. We do it this way so that things all work during 'make test' without a 'make install'. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
Maybe Matching Threads
- 4.2.1 ./configure --sbindir & --bindir settings is different from binary?
- 4.2.1 ./configure --sbindir & --bindir settings is different from binary?
- post make install, sudo service samba start ->service not recognized?
- post make install, sudo service samba start ->service not recognized?
- Compiling gets undefined reference by tls.c