You could try:
preinstallopts = "sudo " # be sure to have a trailing space in the quotes
though you might have to add NOPASSWD: to your line in the sudoers file
(not sure how EB would deal with the password prompt).
Lead Systems Administrator
High Performance Research Computing
TAMU Division of Research
HPRC Helpdesk: h...@hprc.tamu.edu
On 08/16/2016 09:01 AM, Heywood, Todd wrote:
I am trying to build Singularity: http://singularity.lbl.gov/#install
This requires that the “make install” step be performed as root (sudo make
install). But Easybuild doesn’t (like to) let you build as root, and an
attempted hack of just chmod-ing stuff to root:root after the build doesn’t
What would be the advisable way to proceed? An new ConfigureMake easyblock that
has “sudo” in the “make install” step?