<div dir="ltr">Hello Jeffrey,<br><br>I installed slurm 17.02.11 a week ago for centOS7 and I followed the instructions here <a href="https://wiki.fysik.dtu.dk/niflheim/Slurm_installation">https://wiki.fysik.dtu.dk/niflheim/Slurm_installation</a><br><br>You could install MariaDB (I installed v10.4) with their repo and gpgkey with instructions here <a href="https://mariadb.com/kb/en/yum/">https://mariadb.com/kb/en/yum/</a><br><br>Then, you could build the slurm rpms with (change the version to match yours):<br><br>export VER=20.02.2-1<br>rpmbuild -ta slurm-$VER.tar.bz2 --with mysql      # Includes accounting support with the slurm-slurmdbd package<br><br>To create the database, I followed the instructions here <a href="https://github.com/mknoxnv/ubuntu-slurm">https://github.com/mknoxnv/ubuntu-slurm</a>:<br><br>$ systemctl enable mysql<br>$ systemctl start mysql<br>$ mysql -u root<br>create database slurm_acct_db;<br>create user 'slurm'@'localhost';<br>set password for 'slurm'@'localhost' = password('slurmdbpass');<br>grant usage on *.* to 'slurm'@'localhost';<br>grant all privileges on slurm_acct_db.* to 'slurm'@'localhost';<br>flush privileges;<br>exit<br><div><br></div><div>Feel free to ask for more information,</div><div>Best regards<br></div><div><br></div><br><div>El mar., 2 jun. 2020 a las 11:47, Jeffrey McDonald (<<a href="mailto:jmcdonal@umn.edu">jmcdonal@umn.edu</a>>) escribió:</div>><br>> Hi,<br>> I'm trying to build the slurm rpms on a Centos 7.8  system with the<br>> mariadb 10.4 RPMs,<br>> # rpm -qa | grep -i mariadb:<br>><br>> MariaDB-common-10.4.13-1.el7.centos.x86_64<br>> MariaDB-server-10.4.13-1.el7.centos.x86_64<br>> MariaDB-compat-10.4.13-1.el7.centos.x86_64<br>> MariaDB-client-10.4.13-1.el7.centos.x86_64<br>> MariaDB-devel-10.4.13-1.el7.centos.x86_64<br>> MariaDB-backup-10.4.13-1.el7.centos.x86_64<br>><br>><br>> When I try to build the rpms, I see the following build errors:<br>> $ rpmbuild -ta slurm-20.02.3.tar.bz2<br>> Processing files: slurm-slurmdbd-20.02.3-1.el7.x86_64<br>> error: File not found:<br>> /root/rpmbuild/BUILDROOT/slurm-20.02.3-1.el7.x86_64/usr/lib64/slurm/accounting_storage_mysql.so<br>><br>><br>> RPM build errors:<br>>     File not found:<br>> /root/rpmbuild/BUILDROOT/slurm-20.02.3-1.el7.x86_64/usr/lib64/slurm/accounting_storage_mysql.so<br>>     File not found:<br>> /root/rpmbuild/BUILDROOT/slurm-20.02.3-1.el7.x86_64/usr/lib64/slurm/accounting_storage_mysql.so<br>> --------------------------------------<br>> There are errors in the config run:<br>> --------------------------------------<br>> checking for mysql_config... /usr/bin/mysql_config<br>> configure: WARNING: *** MySQL test program execution failed. A<br>> thread-safe MySQL library is required.<br>><br>><br>> In the build config.log,<br>> configure: WARNING: *** MySQL test program execution failed. A<br>> thread-safe MySQL library is required.<br>><br>> -----------------------------------------------<br>> It seems that there are some missing dependencies and changes with<br>> MariaDB 10.4, namely, there is no /usr/lib64/libmariadb.a (its been<br>> replaced by /usr/lib/libmariadbclient.a) but a soft link from the<br>> latter to the former doesn't fix the issue:<br>> ------------------------------------------------<br>> In the config.log, it seems that the system libs are missing from the<br>> mariadb_config interaction:<br>><br>> configure:4953: result: /usr/bin/mysql_config<br>> configure:5054: gcc -o conftest -I/usr/include/mysql<br>> -I/usr/include/mysql/mysql -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE<br>> =2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4<br>> -grecord-gcc-switches -Wl,-z,lazy  -m64 -mtune=generi<br>> c  -Wl,-z,relro -Wl,-z,lazy conftest.c -L/usr/lib64/ -lmariadb  >&5<br>> /usr/lib64//libmariadb.a(mariadb_lib.c.o): In function `mysql_server_init':<br>> (.text+0x1ba4): undefined reference to `pthread_once'<br>> /usr/lib64//libmariadb.a(ma_stmt_codec.c.o): In function<br>> `convert_from_double.isra.2':<br>> (.text+0x17bc): undefined reference to `floor'<br>> /usr/lib64//libmariadb.a(ma_stmt_codec.c.o): In function<br>> `convert_from_double.isra.2':<br>> (.text+0x180d): undefined reference to `floor'<br>> /usr/lib64//libmariadb.a(ma_stmt_codec.c.o): In function<br>> `convert_from_float.isra.3':<br>> (.text+0x1b9a): undefined reference to `floorf'<br>> /usr/lib64//libmariadb.a(ma_stmt_codec.c.o): In function<br>> `convert_from_float.isra.3':<br>> (.text+0x1be4): undefined reference to `floorf'<br>> /usr/lib64//libmariadb.a(ma_stmt_codec.c.o): In function<br>> `convert_from_long.isra.4':<br>> (.text+0x20e0): undefined reference to `ceilf'<br>> /usr/lib64//libmariadb.a(ma_stmt_codec.c.o): In function<br>> `convert_from_long.isra.4':<br>> (.text+0x215d): undefined reference to `ceil'<br>> /usr/lib64//libmariadb.a(ma_stmt_codec.c.o): In function<br>> `convert_from_long.isra.4':<br>> (.text+0x225b): undefined reference to `ceil'<br>> /usr/lib64//libmariadb.a(ma_stmt_codec.c.o): In function<br>> `convert_from_long.isra.4':<br>> (.text+0x229e): undefined reference to `ceilf'<br>> /usr/lib64//libmariadb.a(ma_client_plugin.c.o): In function<br>> `mysql_client_plugin_deinit':<br>> (.text+0x20b): undefined reference to `dlclose'<br>> /usr/lib64//libmariadb.a(ma_client_plugin.c.o): In function<br>> `mysql_load_plugin_v':<br>> (.text+0x5d9): undefined reference to `dlopen'<br>> /usr/lib64//libmariadb.a(ma_client_plugin.c.o): In function<br>> `mysql_load_plugin_v':<br>><br>> ---------------------------------------------<br>><br>> I built the slurm system successfully with version mariadb 5.5. from<br>> centOS, is this a known issue with MariaDB 10.4 ?    Does slurm build<br>> with other versions of MariaDB?<br>><br>> Thanks in advance,<br>> Jeff<br>><br>><br>> --<br>> Jeffrey McDonald, PhD<br>> Director of Information Technology<br>> The Hormel Institute<br>> 801 16th Ave NE            email: <a href="mailto:jmcdonal@umn.edu">jmcdonal@umn.edu</a><br>> Austin, MN 55912           phone: +1 507.437.9654<br>></div>