<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 11, 2019 at 9:02 PM Ole Holm Nielsen <<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk">Ole.H.Nielsen@fysik.dtu.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Maybe my Slurm Wiki can help you build SLurm on CentOS/RHEL 7?  See<br>
<a href="https://wiki.fysik.dtu.dk/niflheim/Slurm_installation#build-slurm-rpms" rel="noreferrer" target="_blank">https://wiki.fysik.dtu.dk/niflheim/Slurm_installation#build-slurm-rpms</a><br>
<br>
Note in particular:<br>
> Important: Install the MariaDB (a replacement for MySQL) packages before you build Slurm RPMs (otherwise some libraries will be missing):<br>
> <br>
> yum install mariadb-server mariadb-devel<br>
<br>
/Ole<br>
<br>
<br></blockquote><div><br></div><div>HI, <br></div><div>I have the same issue by compiling RPM. Just add "--with mysql" at rpmbuild option and the error gone :-)</div><div>HTH,</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On 11-11-2019 15:22, William Brown wrote:<br>
> Fabio<br>
> <br>
> Did you ever resolve the problem building accounting_storage_mysql.so?<br>
> <br>
> I have the exact same problem with CentOS 7.6, building Slurm 19.05.03.  <br>
> My command:<br>
> <br>
> rpmbuild -ta slurm-19.05.3-2.tar.bz2 | tee /var/tmp/slurm-build.log<br>
> <br>
> The directory with the plugin source is all there: <br>
> /home/users/slurm/rpmbuild/BUILD/slurm-19.05.3-2/src/plugins/accounting_storage/mysql, <br>
> with a Makefile that is the same date/time as the other <br>
> accounting_storage alternatives.<br>
> <br>
> In the log I can see:<br>
> <br>
> checking for mysql_config... /usr/bin/mysql_config<br>
> <br>
> Looking at the process of building the RPMs it looks as if it has <br>
> skipped trying to create the missing library file, but then expects to <br>
> find it in the RPM.<br>
> <br>
> This is what I see when it is building, it builds the accounting_storage <br>
> .so files for _fileext, _none and _slurmdbd, but not for _mysql.  I do <br>
> have MariaDB-devel 10.4.10 installed<br>
> <br>
> .<br>
> <br>
> .<br>
> <br>
> Making all in mysql<br>
> <br>
> make[5]: Entering directory <br>
> `/home/users/slurm/rpmbuild/BUILD/slurm-19.05.3-2/src/plugins/accounting_storage/mysql'<br>
> <br>
> make[5]: Nothing to be done for `all'.<br>
> <br>
> make[5]: Leaving directory <br>
> `/home/users/slurm/rpmbuild/BUILD/slurm-19.05.3-2/src/plugins/accounting_storage/mysql'<br>
> <br>
> .<br>
> <br>
> .<br>
> <br>
> Making install in mysql<br>
> <br>
> make[4]: Entering directory <br>
> `/home/users/slurm/rpmbuild/BUILD/slurm-19.05.3-2/src/plugins/accounting_storage/mysql'<br>
> <br>
> make[5]: Entering directory <br>
> `/home/users/slurm/rpmbuild/BUILD/slurm-19.05.3-2/src/plugins/accounting_storage/mysql'<br>
> <br>
> make[5]: Nothing to be done for `install-data-am'.<br>
> <br>
> make[5]: Leaving directory <br>
> `/home/users/slurm/rpmbuild/BUILD/slurm-19.05.3-2/src/plugins/accounting_storage/mysql'<br>
> <br>
> make[4]: Leaving directory <br>
> `/home/users/slurm/rpmbuild/BUILD/slurm-19.05.3-2/src/plugins/accounting_storage/mysql'<br>
> <br>
> The error stream shows the problem a little later:<br>
> <br>
> Processing files: slurm-19.05.3-2.el7.x86_64<br>
> <br>
> warning: File not found: <br>
> /home/users/slurm/rpmbuild/BUILDROOT/slurm-19.05.3-2.el7.x86_64/home/apps/slurm/lib64/slurm/accounting_storage_mysql.so<br>
> <br>
> .<br>
> <br>
> .<br>
> <br>
> Processing files: slurm-slurmdbd-19.05.3-2.el7.x86_64<br>
> <br>
> error: File not found: <br>
> /home/users/slurm/rpmbuild/BUILDROOT/slurm-19.05.3-2.el7.x86_64/home/apps/slurm/lib64/slurm/accounting_storage_mysql.so<br>
> <br>
> File not found: <br>
> /home/users/slurm/rpmbuild/BUILDROOT/slurm-19.05.3-2.el7.x86_64/home/apps/slurm/lib64/slurm/accounting_storage_mysql.so<br>
> <br>
> File not found: <br>
> /home/users/slurm/rpmbuild/BUILDROOT/slurm-19.05.3-2.el7.x86_64/home/apps/slurm/lib64/slurm/accounting_storage_mysql.so<br>
> <br>
> RPM build errors:<br>
> <br>
> I looked at the Makefile for the accounting_storage_mysql as compared to <br>
> the Makefile for accounting_storage_slurmdbd to try to understand them.<br>
> <br>
> This is a selection from the Makefile for mysql:<br>
> <br>
> all: all-am<br>
> <br>
> all-am: Makefile $(LTLIBRARIES)<br>
> <br>
> LTLIBRARIES = $(pkglib_LTLIBRARIES)<br>
> <br>
> #pkglib_LTLIBRARIES = <a href="http://accounting_storage_mysql.la" rel="noreferrer" target="_blank">accounting_storage_mysql.la</a> <br>
> <<a href="http://accounting_storage_mysql.la" rel="noreferrer" target="_blank">http://accounting_storage_mysql.la</a>><br>
> <br>
> And this is for slurmdbd:<br>
> <br>
> all: all-am<br>
> <br>
> all-am: Makefile $(LTLIBRARIES)<br>
> <br>
> LTLIBRARIES = $(pkglib_LTLIBRARIES)<br>
> <br>
> pkglib_LTLIBRARIES = <a href="http://accounting_storage_slurmdbd.la" rel="noreferrer" target="_blank">accounting_storage_slurmdbd.la</a> <br>
> <<a href="http://accounting_storage_slurmdbd.la" rel="noreferrer" target="_blank">http://accounting_storage_slurmdbd.la</a>><br>
> <br>
> So I think that the problem is that the definition of pkglib_LTLIBRARIES <br>
> is commented out in the accounting_storage_mysql Makefile, hence nothing <br>
> to build.<br>
> <br>
> Is that intended?  Is it a consequence of something in my environment?<br>
> <br>
<br>
</blockquote></div></div>