Thamm, Russell
2019-May-28 07:41 UTC
[Samba] python dist-utils and python-config [SEC=UNOFFICIAL]
UNOFFICIAL Hi, I'm trying to build samba-latest on CentOS 7. The PC is not online, so I have to download everything manually. Most of the prerequisites are on the CentOS Everything ISO so I don't have to download a lot. I installed all the documented dependencies and configure complained about python3. So I downloaded and installed python36-libs-3.6.8-1.el7.x86_64.rpm python36-3.6.8-1.el7.x86_64.rpm and now I get (./configure) :DistUtils not installed? Broken python installation? Get python-config now. I tried to find dist-utils. All I could find was: python36-distutils-extra-2.39-8.el7.noarch.rpm This is apparently not what is required, because configure still gives me the same error. I've had even less luck looking for python-config. Can anyone tell me what else I need to install? Alternately, what is the latest version of SAMBA 4 that will build with the documented prerequisites(ie not using python 3)? Cheers Russell
Andrew Bartlett
2019-May-28 08:00 UTC
[Samba] python dist-utils and python-config [SEC=UNOFFICIAL]
On Tue, 2019-05-28 at 07:41 +0000, Thamm, Russell via samba wrote:> UNOFFICIAL > Hi, > > I'm trying to build samba-latest on CentOS 7. The PC is not online, so I have to download everything manually. > Most of the prerequisites are on the CentOS Everything ISO so I don't have to download a lot. > > I installed all the documented dependencies and configure complained about python3. > > So I downloaded and installed > > python36-libs-3.6.8-1.el7.x86_64.rpm > python36-3.6.8-1.el7.x86_64.rpm > > and now I get (./configure) > > :DistUtils not installed? Broken python installation? Get python-config now. > > I tried to find dist-utils. All I could find was: > > python36-distutils-extra-2.39-8.el7.noarch.rpm > > This is apparently not what is required, because configure still gives me the same error. > > I've had even less luck looking for python-config. > > Can anyone tell me what else I need to install? > > Alternately, what is the latest version of SAMBA 4 that will build with the documented prerequisites(ie not using python 3)?Sorry about the poor errors, we should (please file a bug) give you more clues that that. Try again with --disable-python --without-ad-dc if you don't want an AD DC, that won't need the python-devel bits. 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
Rowland penny
2019-May-28 08:10 UTC
[Samba] python dist-utils and python-config [SEC=UNOFFICIAL]
On 28/05/2019 08:41, Thamm, Russell via samba wrote:> UNOFFICIALWhat do you mean 'UNOFFICIAL' ?> Hi, > > I'm trying to build samba-latest on CentOS 7. The PC is not online, so I have to download everything manually. > Most of the prerequisites are on the CentOS Everything ISO so I don't have to download a lot.If you mean 'https://download.samba.org/pub/samba/stable/samba-4.10.4.tar.gz' as samba-latest, then you can build this with python2 To build Samba with python2 you *must* set the 'PYTHON' environment variable for both the 'configure' and 'make' steps, i.e. 'PYTHON=python2 ./configure' 'PYTHON=python2 make'> > I installed all the documented dependencies and configure complained about python3. > > So I downloaded and installed > > python36-libs-3.6.8-1.el7.x86_64.rpm > python36-3.6.8-1.el7.x86_64.rpm > > and now I get (./configure) > > :DistUtils not installed? Broken python installation? Get python-config now. > > I tried to find dist-utils. All I could find was: > > python36-distutils-extra-2.39-8.el7.noarch.rpm > > This is apparently not what is required, because configure still gives me the same error. > > I've had even less luck looking for python-config. > > Can anyone tell me what else I need to install? > > Alternately, what is the latest version of SAMBA 4 that will build with the documented prerequisites(ie not using python 3)? >There have been a few posts on this very topic recently, try searching the samba-mailing list archives, but it basically boils down to using the python3 variants of any python dependences previously used. Rowland
Andrew Bartlett
2019-May-28 08:36 UTC
[Samba] python dist-utils and python-config [SEC=UNOFFICIAL]
On Tue, 2019-05-28 at 09:10 +0100, Rowland penny via samba wrote:> On 28/05/2019 08:41, Thamm, Russell via samba wrote: > > UNOFFICIAL > What do you mean 'UNOFFICIAL' ? > > Hi, > > > > I'm trying to build samba-latest on CentOS 7. The PC is not online, so I have to download everything manually. > > Most of the prerequisites are on the CentOS Everything ISO so I don't have to download a lot. > > If you mean > 'https://download.samba.org/pub/samba/stable/samba-4.10.4.tar.gz' as > samba-latest, then you can build this with python2 > > To build Samba with python2 you *must* set the 'PYTHON' environment > variable for both the 'configure' and 'make' steps, i.e. > > 'PYTHON=python2 ./configure' > 'PYTHON=python2 make' > > > I installed all the documented dependencies and configure complained about python3. > > > > So I downloaded and installed > > > > python36-libs-3.6.8-1.el7.x86_64.rpm > > python36-3.6.8-1.el7.x86_64.rpm > > > > and now I get (./configure) > > > > :DistUtils not installed? Broken python installation? Get python-config now. > > > > I tried to find dist-utils. All I could find was: > > > > python36-distutils-extra-2.39-8.el7.noarch.rpm > > > > This is apparently not what is required, because configure still gives me the same error. > > > > I've had even less luck looking for python-config. > > > > Can anyone tell me what else I need to install? > > > > Alternately, what is the latest version of SAMBA 4 that will build with the documented prerequisites(ie not using python 3)? > > > There have been a few posts on this very topic recently, try searching > the samba-mailing list archives, but it basically boils down to using > the python3 variants of any python dependences previously used.I've tried to fill in the basics regarding this issue on our wiki page in the hope that those searching for this error string get something more meaningful: https://wiki.samba.org/index.php/Build_Samba_from_Source#Python Improvements welcome! 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