For the record: The Slurm developers has found it tricky to write a slurm.spec file which requires the mysql-devel package and still works in all environments, see https://bugs.schedmd.com/show_bug.cgi?id=6488

My recommendation[1] is therefore to explicitly require mysql when building Slurm RPMs:

export VER=20.02.1-1
rpmbuild -ta slurm-$VER.tar.bz2 --with mysql

This will catch the case where you forgot to install mysql-devel/mariadb-devel.

/Ole

[1] https://wiki.fysik.dtu.dk/niflheim/Slurm_installation#build-slurm-packages

Reply via email to