Saturday, February 24, 2018

Install Singularity on HPC

Problem 
When I was trying to install Singularity on my HPC system, I got some errors similar to the following: 
P4n73r @ tmux:git:(master) sh autogen.sh
Useless use of /d modifier in transliteration operator at /usr/local/share/automake-1.9/Automake/Wrap.pm line 60.
configure.ac: installing `etc/install-sh'
configure.ac: installing `etc/missing'
configure.ac:8: installing `etc/config.guess'
configure.ac:8: installing `etc/config.sub'
Makefile.am: installing `etc/compile'
Makefile.am: installing `etc/depcomp'
configure.ac:109: error: possibly undefined macro: AC_SEARCH_LIBS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/local/bin/autoconf failed with exit status: 1
autoreconf failed

Solution
Had the same issue on OS X that the OP reported in the first traceback. Needed the following to build it correctly. Then everything went smoothly.
  • autoconf
  • automake
  • m4
  • libtool
  • libevent
  • perl
  • pkg-config