I am trying to build the rpms for slurm using rpmbuild. I followed the 
instructions in the install guide and built my .rpmmacros file like this:

# 
# .rpmmacros file for building Slurm at UR
#

%_prefix                /software/slurm/14.3.0
%slurm_sysconfdir       /software/slurm/etc
%with_munge             "--with-munge"
%with_proctrack         "--with-proctrack"
%with_ssl               "--with-ssl"
%with_mysql             "--with-mysql"
%with_pam               "--enable-pam"
%shared_state_dir       /software/slurm/com
%with_salloc_kill       "--enable-salloc-kill"

But the rpms built still wanted to install config files in /etc/slurm. So I 
also tried changing the sysconfdir line to:

%slurm_sysconfdir       "--sysconfdir=/software/slurm/etc"

With the same results. It seems to be using the other lines in the file. At 
least it was asking for munge files and packages. Just as a test, I installed 
the rpms and when trying to run the slurmctld I got this which confirms that 
the compiled apps are also looking in /etc/slurm:

slurmctld: error: s_p_parse_file: unable to status file "/etc/slurm/slurm.conf"

There seems to be almost no documentation about what can be done in the 
.rpmmacros file. At least searching on schedmd site only found the quick 
install guide. 

Is there anyone with any experience building these rpms? Or should I just give 
up and do a "make install" on the compute nodes.

Thanks,
Carl

--
Carl Schmidtmann
Center for Integrated Research Computing
University of Rochester

Reply via email to