splitting out issues related to RPM from bug#17673 as those changes need to goto Slurm-23.11: (In reply to Ole.H.Nielsen@fysik.dtu.dk from comment #10) > I looked at the Slurm configure script and found that it determines whether > libyaml is installed or not by searching for the yaml.h file, not the > library itself. > > On CentOS and RHEL (and clones) the yaml.h file is only installed with the > libyaml-devel RPM package: > > $ rpm -qf /usr/include/yaml.h > libyaml-devel-0.1.4-11.el7_0.x86_64 > > Likewise, I suppose that the libjwt-devel RPM package must also be > installed. > > I've rebuilt Slurm RPM packages with these prerequisites, and "sinfo --yaml" > now works correctly. > > The core dump reported in comment 0 should nevertheless be fixed. It occurs > when the libyaml-devel RPM package wasn't installed when building Slurm RPMs. > > I would like to ask that the download page > https://slurm.schedmd.com/download.html#json should be updated with an extra > paragraph at the end: > > For RPM based installations the development libraries should be installed by: > > $ yum install http-parser-devel json-c-devel libjwt-devel libyaml-devel > > Thanks, > Ole (In reply to Ole.H.Nielsen@fysik.dtu.dk from comment #11) > It would also be good to add this documentation to > https://slurm.schedmd.com/faq.html#json_serializer > > For RPM based installations the development libraries should be installed by: > > $ yum install http-parser-devel json-c-devel libjwt-devel libyaml-devel
Ole Added new `--with yaml` argument as an option to the RPM build for Slurm-23.11: > https://github.com/SchedMD/slurm/commit/78c8d4a32a70d78c6d0c77857b5da546291125e3 Closing ticket as I think this should be sufficent for anyone who wants to make sure `--yaml` works. Please respond if there are any more related questions or issues. --Nate