[Samba] /configure.developer is not working

Christof Schmitt cs at samba.org
Wed Sep 25 21:03:56 UTC 2019


On Wed, Sep 25, 2019 at 08:37:17PM +0000, Metin Koc via samba wrote:
> Deal all,
> 
> Installation is stuck on running "/configure.developer" command. It returns error below;;
> 
> /usr/bin/env: python3: No such file or directory
> 
> Can anyone help me on this?

The default is now python3. If you want to use python2 for the build,
that has to be explicitly specified. See e.g.:

https://www.samba.org/samba/history/samba-4.10.0.html

python3 support
---------------

This is the first release of Samba which has full support for Python 3.
Samba 4.10 still has support for Python 2, however, Python 3 will be used by
default, i.e. 'configure' & 'make' will execute using python3.

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'
This will override the python3 default.

Alternatively, it is possible to produce Samba Python bindings for both
Python 2 and Python 3. To do so, specify '--extra-python=/usr/bin/python2'
as part of the 'configure' command. Note that python3 will still be used as
the default in this case.

Note that Samba 4.10 supports Python 3.4 onwards.



Christof



More information about the samba mailing list