[Samba] Trying to build Samba from source on RHEL 8

Nico Kadel-Garcia nkadel at gmail.com
Sat Jun 10 11:04:19 UTC 2023


On Wed, Jun 7, 2023 at 9:24 AM Rowland Penny via samba
<samba at lists.samba.org> wrote:
>
>
>
> On 06/06/2023 18:29, Flynn, Garrett S RTX via samba wrote:
> > Hi,
> >
> > I'm trying to build Samba from source on a RHEL version 8 server.  I installed all the necessary packages and untarred the source for Samba version 4.6.10.
> > In the past I have been able to successfully build and install Samba version 4.13.17 on a RHEL version 7 server with Python2.
> > Here I believe I am using Python3, but I cannot seem to get past the configure command:
> >
> > [root at v2ecsqapp09 samba-4.16.10]# ./configure
> > Setting top to                           : /usr/local/src/Samba/samba-4.16.10
> > Setting out to                           : /usr/local/src/Samba/samba-4.16.10/bin
>
> I haven't got access to RHEL 8, but using Rocky Linux 8, I can build Samba.

Or, Garrett? Welcome to my RPM building tools at
https://github.com/nkadel/samba4repo/ , which assemble the full set of
dependencies for samba-4.18 via RPM for RHEL 8 and 9. It might save
you some work to just grab those and build RPMs. They'll be configured
a bit differently than standard RHEL RPMs, because they use the
internal libraries for compatibility rather than the system libraries
for ldb, tdb, talloc, and tevent. But this way, you don't wind up
conflicting with the system libraries and the sssd suite interwoven
into RHEL systems.

Building up all the necessary updated libraries has become a lot more
difficult to integrate with RHEL because sssd uses those and unweaving
the dependencies gets... hairy. In the short term, for very recent
Samba releases, use the "--bundled-libraries" option, which is already
built into the .spec files I backported from Fedora.

I wish you the best of success with these.


Nico Kadel-Garcia

> First, have you downloaded and run the Centos 8 bootstrap script you can
> find here:
>
> https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba
>
> Have you actually installed python3 ?
> yum install @python36
>
> and then set RHEL to use it with:
>
> alternatives --config python
>
> After that, downloading and unpacking Samba should allow you to build it.
>
> Rowland
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list