I would strongly recommend to use Bioconda instead of compiling. It is one of the channels ("distributors of packages") in Anaconda Cloud which is basically a package source for conda.
In short - conda allows you to create virtual environments isolated from system and to install various precompiled software packages with one command (so, by the way, you can easily use multiple software versions on one system). Also, Bioconda is just one channel aiming on various bioinformatics software, but many more packages can be found in aforementioned Anaconda Cloud.
Tutorial how to start using Bioconda is on its homepage, and it is really easy (far more easier than to struggle with compiling).
Bioconda HMMER package
P.S. Of course there are cases in which you need a specific build of given software. Than it is really needed to compile manually.