| 1 |
\newpage |
| 2 |
\chapter{Installation} |
| 3 |
\label{chapter:installation} |
| 4 |
\setcounter{footnote}{0} |
| 5 |
|
| 6 |
Choose one of the following three sections depending on whether you |
| 7 |
want to install a precompiled HMMER package for your system, compile |
| 8 |
from our source code |
| 9 |
distribution,\sidenote{\href{http://hmmer.org}{hmmer.org}} or compile |
| 10 |
source code from our github |
| 11 |
repository.\sidenote{\href{https://github.com/EddyRivasLab/hmmer}{github.com/EddyRivasLab/hmmer}} |
| 12 |
We recommend that you use one of the first two options. You can |
| 13 |
skip the gory details section unless you're already proficient and you |
| 14 |
want to use optional configuration or installation parameters. |
| 15 |
|
| 16 |
|
| 17 |
\section{Quickest: install a precompiled binary package} |
| 18 |
|
| 19 |
The easiest way to install HMMER is to install a precompiled package |
| 20 |
for your operating system.\sidenote{Thanks to all the people who do |
| 21 |
the packaging!} |
| 22 |
Some examples that I know of: |
| 23 |
|
| 24 |
\vspace{1ex} |
| 25 |
\begin{tabular}{ll} |
| 26 |
\monob{\% brew install hmmer} & \mono{\# OS/X, HomeBrew} \\ |
| 27 |
\monob{\% port install hmmer} & \mono{\# OS/X, MacPorts} \\ |
| 28 |
\monob{\% apt install hmmer} & \mono{\# Linux (Ubuntu, Debian...)} \\ |
| 29 |
\monob{\% dnf install hmmer} & \mono{\# Linux (Fedora)} \\ |
| 30 |
\monob{\% yum install hmmer} & \mono{\# Linux (older Fedora)} \\ |
| 31 |
\monob{\% conda install -c biocore hmmer} & \mono{\# Anaconda} \\ |
| 32 |
\end{tabular} |
| 33 |
|
| 34 |
\section{Quick-ish: compile the source code} |
| 35 |
|
| 36 |
You can obtain the source code as a compressed \mono{.tar.gz} tarball |
| 37 |
from \href{http://hmmer.org}{hmmer.org} in your browser, or you can also |
| 38 |
\mono{wget} it on the command line from |
| 39 |
\href{http://eddylab.org/software/hmmer/hmmer-\HMMERversion{}.tar.gz}{eddylab.org/software/hmmer/hmmer-\HMMERversion{}.tar.gz}. |
| 40 |
Uncompress and untar it, and switch into the \mono{hmmer-\HMMERversion{}} |
| 41 |
directory. For example: |
| 42 |
|
| 43 |
\vspace{1ex} |
| 44 |
\user{\% wget http://eddylab.org/software/hmmer/hmmer-\HMMERversion{}.tar.gz}\\ |
| 45 |
\user{\% tar xf hmmer-\HMMERversion{}.tar.gz}\\ |
| 46 |
\user{\% cd hmmer-\HMMERversion{}} |
| 47 |
\vspace{1ex} |
| 48 |
|
| 49 |
Next you'll use \mono{./configure} to configure HMMER for your system, |
| 50 |
but first, decide where you want HMMER installed. By default, our |
| 51 |
\mono{configure} script will set things up to be installed under |
| 52 |
\mono{/usr/local}. HMMER programs are then installed in |
| 53 |
\mono{/usr/local/bin}, and HMMER man pages in |
| 54 |
\mono{/usr/local/share/man/man1/}. These are the standard unix-y |
| 55 |
places to put things, but you may need root privileges to do it (so |
| 56 |
you might need something like \mono{sudo make install} when you get to |
| 57 |
that part below). If you want to install somewhere else, you want to |
| 58 |
set a different install directory prefix using \mono{./configure |
| 59 |
{-}{-}prefix /your/install/path}, so programs and man pages will be |
| 60 |
installed in \mono{/your/install/path/bin} |
| 61 |
\mono{/your/install/path/share/man/man1/} respectively.\sidenote{These |
| 62 |
directories will be created, if they didn't already exist.} For |
| 63 |
example, you might do \mono{./configure {-}{-}prefix=\$\{HOME\}}, for |
| 64 |
installation in \mono{\$\{HOME\}/bin/} and |
| 65 |
\mono{\$\{HOME\}/share/man/man1} subdirectories in your own home |
| 66 |
directory. |
| 67 |
|
| 68 |
So, to configure and compile: |
| 69 |
|
| 70 |
\vspace{1ex} |
| 71 |
\user{\% ./configure {-}{-}prefix=/your/install/path}\\ |
| 72 |
\user{\% make} |
| 73 |
\vspace{1ex} |
| 74 |
|
| 75 |
Optionally, to compile and run a test suite\sidenote{The test suite |
| 76 |
uses scripts, and requires that you have \mono{python3} and |
| 77 |
\mono{perl}. We haven't encountered any systems without perl. If |
| 78 |
you don't have \mono{python3}, \mono{make check} will fail and tell |
| 79 |
you so. But HMMER is still fine, and you can install it -- running |
| 80 |
the test suite is optional!}: |
| 81 |
|
| 82 |
\vspace{1ex} |
| 83 |
\user{\% make check} |
| 84 |
\vspace{1ex} |
| 85 |
|
| 86 |
The newly compiled binaries are now in the \mono{src} directory. You |
| 87 |
can run them from there, or manually copy them wherever. You don't |
| 88 |
have to install HMMER programs to run them. Optionally, to install the |
| 89 |
programs and man pages, do: |
| 90 |
|
| 91 |
\vspace{1ex} |
| 92 |
\user{\% make install} |
| 93 |
\vspace{1ex} |
| 94 |
|
| 95 |
Optionally, you can also install a set of additional small tools |
| 96 |
(``miniapps'') from our Easel library. We don't do this by default, |
| 97 |
in case you already have a copy of Easel separately installed (from |
| 98 |
Infernal, for example). To install Easel miniapps and their man pages |
| 99 |
too: |
| 100 |
|
| 101 |
\vspace{1ex} |
| 102 |
\user{\% cd easel; make install} |
| 103 |
\vspace{1ex} |
| 104 |
|
| 105 |
If you decide you did something wrong after the \mono{./configure}, |
| 106 |
\mono{make distclean} will clean up everything that got built and |
| 107 |
restore the distribution to a pristine state, and you can start again. |
| 108 |
|
| 109 |
|
| 110 |
\section{Geeky: compile source from our github repository} |
| 111 |
|
| 112 |
Alternatively, you can clone our git repository master |
| 113 |
branch:\sidenote{As of 3.2, our git master branch is the stable |
| 114 |
current release, as the git deities prefer. This wasn't true for us |
| 115 |
in the past.} |
| 116 |
|
| 117 |
\vspace{1ex} |
| 118 |
\user{\% git clone https://github.com/EddyRivasLab/hmmer hmmer-\HMMERversion{}} \\ |
| 119 |
\user{\% cd hmmer-\HMMERversion{}} \\ |
| 120 |
\user{\% git clone https://github.com/EddyRivasLab/easel } \\ |
| 121 |
\user{\% autoconf } |
| 122 |
\vspace{1ex} |
| 123 |
|
| 124 |
This is now essentially the same as if you unpacked a tarball, so from |
| 125 |
here, follow the \mono{./configure; make} instructions above. |
| 126 |
|
| 127 |
One difference is that our distribution tarballs include this user |
| 128 |
guide as a PDF, in addition to its \LaTeX\ source code. The github |
| 129 |
repo only has the source \LaTeX\ files. To compile the PDF, see |
| 130 |
``compiling the user guide'' in the gory details below. |
| 131 |
|
| 132 |
You need our Easel library, in addition to the HMMER repository. We |
| 133 |
don't guarantee that the two master branches are necessarily |
| 134 |
compatible at all times. It's possible that the Easel master branch |
| 135 |
has advanced in support of an Infernal release, for example. You might |
| 136 |
have to check out the Easel tag that corresponds to the more recent |
| 137 |
stable HMMER release. |
| 138 |
|
| 139 |
If you want to suggest changes to us by submitting a pull request on |
| 140 |
GitHub, please base your changes against our \mono{develop} branches. |
| 141 |
Our master branches are for stable releases. |
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
\section{Gory details} |
| 146 |
|
| 147 |
\subsection{System requirements} |
| 148 |
|
| 149 |
\paragraph{Operating system:} HMMER is designed for |
| 150 |
POSIX-compatible platforms, including Linux, Mac OS/X, and various |
| 151 |
UNIX OS's. The POSIX standard essentially includes all operating |
| 152 |
systems except Microsoft Windows.\sidenote{Windows 10 includes a Linux |
| 153 |
subsystem that allows you to install a Linux OS inside Windows, with |
| 154 |
a bash command shell, and this should work fine. For older Windows, |
| 155 |
there are add-on products available for making Windows more |
| 156 |
POSIX-compliant and more compatible with GNU-ish configures and |
| 157 |
builds. One such product is Cygwin, |
| 158 |
\href{http://www.cygwin.com}{www.cygwin.com}, which is freely |
| 159 |
available.} We develop primarily on Mac OS/X and x86\_64/Linux |
| 160 |
(both Intel and AMD), and we test releases on a wider range of |
| 161 |
platforms.\sidenote{Many thanks to the GCC Compile Farm Project for |
| 162 |
providing access to some of the platforms that we use for testing.} |
| 163 |
|
| 164 |
\paragraph{Processor:} HMMER depends on vector parallelization methods |
| 165 |
that are processor-specific. H3 supports three types of processors: |
| 166 |
x86-compatible (Intel/AMD) processors (SSE2 and AVX instruction sets), |
| 167 |
ARM processors such as new Macs (NEON instructions), and some PowerPC |
| 168 |
systems (Altivec/VMX instructions, big-endian mode only). |
| 169 |
|
| 170 |
SSE2 is supported on Intel processors from Pentium 4 on, and AMD |
| 171 |
processors from K8 (Athlon 64) on. This includes almost all Intel |
| 172 |
processors since 2000 and AMD processors since 2003. |
| 173 |
|
| 174 |
Altivec/VMX is supported on Motorola G4, IBM G5, and IBM PowerPC |
| 175 |
processors starting with the Power6, which includes almost all |
| 176 |
PowerPC-based desktop systems since 1999 and servers since |
| 177 |
2007.\sidenote{If your platform does not support either of these |
| 178 |
vector instruction sets -- or if you're on a ppc64le system that |
| 179 |
supports VMX but in little-endian byte order -- the configure script |
| 180 |
will stop with an error message.} |
| 181 |
|
| 182 |
HMMER3 does not support little-endian PowerPC systems (ppc64le). Alas, |
| 183 |
the PowerPC world has been moving toward little-endian ppc64le, away |
| 184 |
from big-endian ppc64 and powerpc. H3's VMX implementation was |
| 185 |
originally developed on an AIX Power 7 system, and Power 7 systems |
| 186 |
were big-endian. More recent Power 8 and 9 machines are ``bi-endian'', |
| 187 |
bootable into either a big-endian or little-endian system. IBM has |
| 188 |
stated that it really, really wants them to all be in little-endian |
| 189 |
mode. Among common Linux/PowerPC distros, Debian, Fedora, Red Hat, and |
| 190 |
openSUSE still come in either ppc64 and ppc64le flavors; HMMER3 will |
| 191 |
run on the former but not the latter. Recent Ubuntu and SUSE for |
| 192 |
PowerPC distros are only coming in ppc64le flavor, incompatible with |
| 193 |
H3. |
| 194 |
|
| 195 |
\paragraph{Compiler:} The source code conforms to ANSI |
| 196 |
C99 and POSIX standards. It should compile with any ANSI C99 compliant |
| 197 |
compiler, including the freely available GNU C compiler \mono{gcc}. |
| 198 |
We test the code most frequently using the GNU \mono{gcc}, Apple |
| 199 |
\mono{llvm/clang}, and Intel \mono{icc} and \mono{icx} |
| 200 |
compilers.\sidenote{On OS/X, if you're compiling the source, make sure |
| 201 |
you have XCode installed so that you have a C compiler.} |
| 202 |
|
| 203 |
We depend on IEEE754-compliant floating point math.\sidenote{With one |
| 204 |
highly technical exception; on x86-compatible CPUs, we deliberately |
| 205 |
turn on a CPU mode called FTZ (flush-to-zero).} Most C compilers, |
| 206 |
including gcc and clang, are IEEE754-compliant by default. \textbf{Do |
| 207 |
not use their \mono{\-\-fast-math} option.} The Intel compiler icc/icx |
| 208 |
defaults to using an unsafe ``fast-math'' mode. If you want to use an |
| 209 |
Intel compiler, you must turn on IEEE754 compliance with an option |
| 210 |
such as \mono{-fp-model strict}; for example, you could configure for |
| 211 |
Intel icx with \mono{./configure CC=icx CFLAGS='-O3 -fp-model=strict'}. |
| 212 |
|
| 213 |
|
| 214 |
\paragraph{Libraries and other installation requirements:} |
| 215 |
HMMER3 does not have any dependencies other than a C compiler. It |
| 216 |
does not require any additional libraries to be installed by you, |
| 217 |
other than standard ANSI C99 libraries that are already present on a |
| 218 |
system with a C99 compiler. |
| 219 |
|
| 220 |
The HMMER distribution is bundled with a software library from our lab |
| 221 |
called Easel.\sidenote{\href{http://bioeasel.org}{bioeasel.org}} |
| 222 |
Bundling Easel instead of making it a separate installation |
| 223 |
requirement simplifies installation. Easel is also included in other |
| 224 |
software from our lab. For example, |
| 225 |
Infernal\sidenote{\href{http://eddylab.org/infernal}{eddylab.org/infernal}} |
| 226 |
bundles both HMMER and Easel. If you install the Easel miniapps, you |
| 227 |
probably only want to do that once, from the most recent version of |
| 228 |
HMMER, Infernal, or Easel itself, to avoid clobbering a newer version |
| 229 |
with an older one. |
| 230 |
|
| 231 |
Our configuration and compilation process uses standard UNIX |
| 232 |
utilities. Although these utilities are \emph{supposed} to be |
| 233 |
available on all POSIX-compliant systems, there are always a few |
| 234 |
crufty old dinosaurs still running out there that do not support all |
| 235 |
the features that our \mono{./configure} script and Makefiles are |
| 236 |
expecting. We do aim to build cleanly on anything from supercomputers |
| 237 |
to Ebay'ed junk, but if you have an old system, you may want to hedge |
| 238 |
your bets and install up-to-date versions of GNU command line tools |
| 239 |
such as GNU make and GNU grep. |
| 240 |
|
| 241 |
Running the test suite (and some of our development tools, if you |
| 242 |
delve deep into our codebase) requires Perl and Python3 to be |
| 243 |
installed. If you don't have them (which should be rare), \mono{make |
| 244 |
check} won't work for you, but that's ok because \mono{make} and |
| 245 |
\mono{make install} will still work fine. |
| 246 |
|
| 247 |
Compiling the user guide itself (this document) does require |
| 248 |
additional tools to be installed, including \mono{rman} and some extra |
| 249 |
\LaTeX\ packages, described below. |
| 250 |
|
| 251 |
|
| 252 |
\subsection{Multicore parallelization is (almost always) default} |
| 253 |
|
| 254 |
The HMMER programs that are compute intensive all support multicore |
| 255 |
parallelization using POSIX threads. By default, the configure script |
| 256 |
will identify whether your platform supports POSIX threads (and almost |
| 257 |
all platforms do), and it will automatically compile in multithreading |
| 258 |
support. |
| 259 |
|
| 260 |
To disable multithreading at compile time, compile from source with |
| 261 |
the \mono{{-}{-}disable-threads} flag to \mono{./configure}. |
| 262 |
|
| 263 |
Multithreaded HMMER programs use master/worker parallelization, with |
| 264 |
\mono{<n>} worker compute threads and one master thread. The default |
| 265 |
number of worker threads is usually two\footnote{Set by a compile-time |
| 266 |
configuration option, \mono{p7\_NCPU}, in |
| 267 |
\mono{src/p7\_config.h.in}.}. You can control the number of worker |
| 268 |
threads you use with the \mono{{-}{-}cpu <n>} command line option or |
| 269 |
the \mono{HMMER\_NCPU} environment variable. You can also turn off |
| 270 |
multithreading, using \mono{{-}{-}cpu 0}. |
| 271 |
|
| 272 |
\mono{hmmscan} and \mono{nhmmscan} are exceptions; for these two |
| 273 |
programs, we have multithreaded parallelization turned off by |
| 274 |
default. It typically takes the scan programs longer to read their |
| 275 |
profile data from a file on disk than it does to compute |
| 276 |
profile/sequence comparisons, so they are typically faster without the |
| 277 |
added overhead of multithreading. If you happen to have some sort of |
| 278 |
lightning fast disk i/o, you might find that you can get higher |
| 279 |
performance using multithreading with \mono{{-}{-}cpu <n>}. |
| 280 |
|
| 281 |
If you are running HMMER on a cluster that enforces policy on the |
| 282 |
number of cores a process can use, you may need to count both the |
| 283 |
workers and the master: you may need to tell your cluster management |
| 284 |
software that HMMER needs \mono{<n>}+1 cores, while telling HMMER |
| 285 |
\mono{{-}{-}cpu <n>}. |
| 286 |
|
| 287 |
|
| 288 |
\subsection{MPI cluster parallelization is optional} |
| 289 |
|
| 290 |
MPI (Message Passing Interface) parallelization on clusters is |
| 291 |
supported in \mono{hmmbuild} and all search programs except \mono{nhmmer} and |
| 292 |
\mono{nhmmscan}. To compile for MPI, you need to have an MPI library |
| 293 |
installed, such as OpenMPI.\sidenote{\href{http://www.open-mpi.org}{open-mpi.org}} |
| 294 |
|
| 295 |
MPI support is not enabled by default. To enable MPI support at |
| 296 |
compile time, add the \mono{{-}{-}enable-mpi} option to your |
| 297 |
\mono{./configure} command. |
| 298 |
|
| 299 |
To use MPI parallelization, each program that has an MPI-parallel mode |
| 300 |
has an \mono{{-}{-}mpi} command line option. This option activates a |
| 301 |
master/worker parallelization mode.\marginnote{Without the |
| 302 |
\mono{{-}{-}mpi} option, if you run a program under \mono{mpirun} or |
| 303 |
the equivalent on N nodes, you'll be running N duplicates, not a |
| 304 |
single MPI-enabled parallel search. Don't do that.} |
| 305 |
|
| 306 |
The MPI implementation for \mono{hmmbuild} scales well up to hundreds |
| 307 |
of processors, and \mono{hmmsearch} scales all right. The other search |
| 308 |
programs (\mono{hmmscan}, \mono{phmmer}, and \mono{jackhmmer}) scale |
| 309 |
quite poorly, and probably shouldn't be used on more than tens of |
| 310 |
processors at most. Improving MPI scaling is something we're working on. |
| 311 |
|
| 312 |
|
| 313 |
\subsection{Using build directories} |
| 314 |
|
| 315 |
The configuration and compilation process from source supports the use |
| 316 |
of separate build trees, using the GNU-standard \mono{VPATH} |
| 317 |
mechanism. This allows you to do separate builds for different |
| 318 |
processors or with different configuration/compilation options. All |
| 319 |
you have to do is run the configure script from the directory you want |
| 320 |
to be the root of your build tree. For example: |
| 321 |
|
| 322 |
\vspace{1ex} |
| 323 |
\user{\% mkdir my-hmmer-build}\\ |
| 324 |
\user{\% cd my-hmmer-build}\\ |
| 325 |
\user{\% ../configure}\\ |
| 326 |
\user{\% make} |
| 327 |
\vspace{1ex} |
| 328 |
|
| 329 |
This assumes you have a \mono{make} that supports \mono{VPATH}. If your |
| 330 |
system's \mono{make} does not, you can install GNU make. |
| 331 |
|
| 332 |
|
| 333 |
\subsection{Makefile targets} |
| 334 |
|
| 335 |
\begin{sreitems}{\monob{distclean}} |
| 336 |
|
| 337 |
\item[\monob{all}] |
| 338 |
Builds everything. Same as just saying \mono{make}. |
| 339 |
|
| 340 |
\item[\monob{check}] |
| 341 |
Runs automated test suites in both HMMER and the Easel library. |
| 342 |
|
| 343 |
\item[\monob{pdf}] |
| 344 |
Compiles this user guide. |
| 345 |
|
| 346 |
\item[\monob{install}] |
| 347 |
Installs programs and man pages. |
| 348 |
|
| 349 |
\item[\monob{uninstall}] |
| 350 |
Removes programs and man pages from where \mono{make install} put them. |
| 351 |
|
| 352 |
\item[\monob{clean}] Removes all files generated by compilation (by |
| 353 |
\mono{make}). Configuration (files generated by \mono{./configure}) |
| 354 |
is preserved. |
| 355 |
|
| 356 |
\item[\monob{distclean}] |
| 357 |
Removes all files generated by configuration (by \mono{./configure}) |
| 358 |
and by compilation (by \mono{make}). |
| 359 |
|
| 360 |
\end{sreitems} |
| 361 |
|
| 362 |
|
| 363 |
\subsection{Compiling the user guide} |
| 364 |
|
| 365 |
Compiling this User Guide from its source \LaTeX\ requires \LaTeX, of |
| 366 |
course, and also the \mono{rman} program from |
| 367 |
\mono{PolyGlotMan}.\sidenote{\href{https://sourceforge.net/projects/polyglotman/}{sourceforge.net/projects/polyglotman}} |
| 368 |
It use a customized version of the |
| 369 |
Tufte-LaTeX book class\sidenote{\href{https://tufte-latex.github.io/tufte-latex/}{tufte-latex.github.io/tufte-latex}} |
| 370 |
(which we include in our source code, so you don't have to |
| 371 |
install it), and the Tufte-LaTeX package depends on some optional \LaTeX\ packages |
| 372 |
listed at the |
| 373 |
Tufte-LaTeX site. |
| 374 |
These packages are typically included in bundles in |
| 375 |
standard \LaTeX\ distributions such as |
| 376 |
TeX Live.\sidenote{\href{https://www.tug.org/texlive/}{www.tug.org/texlive}} |
| 377 |
You can probably |
| 378 |
identify a short list of basic plus extra \LaTeX\ stuff you need to install on your machine. For |
| 379 |
example, on my Mac OS/X laptop, using the MacPorts |
| 380 |
package manager:\sidenote{\href{https://www.macports.org/}{www.macports.org}} |
| 381 |
|
| 382 |
\vspace{1ex} |
| 383 |
\user{\% sudo port install texlive}\\ |
| 384 |
\user{\% sudo port install texlive-latex-extra}\\ |
| 385 |
\user{\% sudo port install rman} |
| 386 |
\vspace{1ex} |
| 387 |
|
| 388 |
Once you have these dependencies, doing: |
| 389 |
|
| 390 |
\vspace{1ex} |
| 391 |
\user{\% make pdf} |
| 392 |
\vspace{1ex} |
| 393 |
|
| 394 |
in the top-level source directory builds \mono{Userguide.pdf} |
| 395 |
in the subdirectory \mono{documentation/userguide}. |
| 396 |
|
| 397 |
|
| 398 |
\subsection{What gets installed by \mono{make install}, and where?} |
| 399 |
|
| 400 |
HMMER only installs programs and man pages. There are 18 programs in |
| 401 |
HMMER and 22 in Easel (the Easel ``miniapps''), each with a man page. |
| 402 |
|
| 403 |
Each program is free-standing. Programs don't depend on any details of |
| 404 |
where other files are installed, and they will run fine no matter |
| 405 |
where you copy them. Similarly the man pages can be read in any file |
| 406 |
location with \mono{man full/path/to/manpage.man}. Nonetheless, it's |
| 407 |
most convenient if you put the programs in a directory that's in your |
| 408 |
\mono{PATH} and the man pages in a standard man page directory, using |
| 409 |
\mono{make install}. |
| 410 |
|
| 411 |
The top-level Makefile has variables that specify the two |
| 412 |
directories where \mono{make install} installs things: |
| 413 |
|
| 414 |
\vspace{1em} |
| 415 |
\begin{tabular}{ll} |
| 416 |
Variable & What \\ \hline |
| 417 |
\monobi{bindir} & programs \\ |
| 418 |
\monobi{man1dir} & man pages \\ |
| 419 |
\end{tabular} |
| 420 |
\vspace{1em} |
| 421 |
|
| 422 |
These variables are constructed from others in accordance with GNU |
| 423 |
Coding Standards, as follows: |
| 424 |
|
| 425 |
\vspace{1em} |
| 426 |
\begin{tabular}{lll} |
| 427 |
Variable & Default & \mono{./configure} option \\ \hline |
| 428 |
\monobi{prefix} & \mono{/usr/local} & \mono{-{}-prefix} \\ |
| 429 |
\monobi{exec\_prefix} & \monoi{prefix} & \mono{-{}-exec\_prefix} \\ |
| 430 |
\monobi{bindir} & \monoi{exec\_prefix}\mono{/bin} & \mono{-{}-bindir} \\ |
| 431 |
\monobi{datarootdir} & \monoi{prefix}\mono{/share} & \mono{-{}-datarootdir} \\ |
| 432 |
\monobi{mandir} & \monoi{datarootdir}\mono{/man} & \mono{-{}-mandir} \\ |
| 433 |
\monobi{man1dir} & \monoi{mandir}\mono{/man1} & \mono{-{}-man1dir} \\ |
| 434 |
\end{tabular} |
| 435 |
\vspace{1em} |
| 436 |
|
| 437 |
You can change any of these defaults on the \mono{./configure} command |
| 438 |
line using the corresponding option. The most commonly used option is |
| 439 |
\mono{{-}{-}prefix}. For example, if you want to install HMMER in a |
| 440 |
directory hierarchy all of its own, you might want to do something |
| 441 |
like: |
| 442 |
|
| 443 |
\vspace{1ex} |
| 444 |
\user{\% ./configure {-}{-}prefix /usr/local/hmmer-\HMMERversion{}} |
| 445 |
\vspace{1ex} |
| 446 |
|
| 447 |
That would keep HMMER out of your system-wide directories, which might |
| 448 |
be desirable. This is a simple way to install multiple versions of |
| 449 |
HMMER, for example, without having them clobber each other. Then |
| 450 |
you'd add \mono{/usr/local/hmmer-\HMMERversion{}/bin} to your \mono{PATH} and |
| 451 |
\mono{/usr/local/hmmer-\HMMERversion{}/share/man} to your \mono{MANPATH}. |
| 452 |
|
| 453 |
Again, these variables only affect where \mono{make install} copies |
| 454 |
stuff. HMMER and Easel programs have no pathnames compiled into them. |
| 455 |
|
| 456 |
\subsection{Installing both HMMER2 and HMMER3} |
| 457 |
|
| 458 |
HMMER3 and HMMER2 are distinct codebases that are generally |
| 459 |
incompatible with each other. The last release of HMMER2 was 2.3.2 in |
| 460 |
2003. HMMER3 was first released in 2010. |
| 461 |
|
| 462 |
HMMER3 is superior to HMMER2 in almost all respects. One exception is |
| 463 |
that HMMER2 is capable of global and glocal alignment, whereas HMMER3 |
| 464 |
programs generally only use local alignment.\marginnote{HMMER3's speed |
| 465 |
depends on numerical properties that only hold for local alignment. |
| 466 |
Its statistics depend on a statistical conjecture that only holds |
| 467 |
well for local alignment. The internal HMMER3 API includes global |
| 468 |
and glocal alignment modes like HMMER2, but the programs don't use |
| 469 |
these modes.} It turned out that some HMMER users need |
| 470 |
global/glocal alignment more than they want the speed and statistics, |
| 471 |
so HMMER2 still has users. I didn't anticipate this when I wrote |
| 472 |
H3. Unfortunately, the two packages have incompatible programs that |
| 473 |
have the same names, so installing them both can lead to problems. |
| 474 |
|
| 475 |
Specifically, HMMER2 installs 9 programs, 6 of which have identical |
| 476 |
names with incompatible HMMER3 programs: \mono{hmmalign}, |
| 477 |
\mono{hmmbuild}, \mono{hmmconvert}, \mono{hmmemit}, \mono{hmmfetch}, |
| 478 |
and \mono{hmmsearch}. |
| 479 |
|
| 480 |
One workaround is to install the two packages each in their own |
| 481 |
hierarchy, as above: \mono{./configure \-\-prefix=somewhere/hmmer-\HMMERversion{}} |
| 482 |
for HMMER3, and \mono{./configure \-\-prefix=somewhere/hmmer-2.3.2} for |
| 483 |
HMMER2. One set of programs could be in your \mono{PATH}, and you |
| 484 |
could call the others using full pathnames. |
| 485 |
|
| 486 |
Another workaround is simply to copy the HMMER2 programs to an |
| 487 |
installation directory while renaming them, bypassing \mono{make install}. |
| 488 |
For example, something like: |
| 489 |
|
| 490 |
\vspace{1ex} |
| 491 |
\user{\% cp hmmalign /usr/local/bin/h2-hmmalign} \\ |
| 492 |
\user{\% cp hmmconvert /usr/local/bin/h2-hmmconvert} \\ |
| 493 |
\user{...} |
| 494 |
\vspace{1ex} |
| 495 |
|
| 496 |
and so on. |
| 497 |
|
| 498 |
\subsection{Seeing more output from \mono{make}} |
| 499 |
|
| 500 |
By default, our \mono{make} hides what's really going on with the |
| 501 |
compilation with a pretty wrapper that we stole from the source for |
| 502 |
\mono{git}. If you want to see what the command lines really look like |
| 503 |
in all their ugly glory, pass a \mono{V=1} option (V for ``verbose'') |
| 504 |
to \mono{make}, as in: |
| 505 |
|
| 506 |
\vspace{1ex} |
| 507 |
\user{\% make V=1} |
| 508 |
\vspace{1ex} |
| 509 |
|
| 510 |
|
| 511 |
\subsection{Staged installations in a buildroot, for a packaging system} |
| 512 |
|
| 513 |
HMMER's \mono{make install} supports staged installations, accepting |
| 514 |
the traditional \mono{DESTDIR} variable that packagers use to specify |
| 515 |
a buildroot. For example, you can do: |
| 516 |
|
| 517 |
\vspace{1ex} |
| 518 |
\user{\% make DESTDIR=/rpm/tmp/buildroot install} |
| 519 |
\vspace{1ex} |
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
\subsection{Workarounds for unusual configure/compilation problems} |
| 525 |
|
| 526 |
\paragraph{Failure when trying to use a |
| 527 |
separate build directory.} If you try to build in a build tree |
| 528 |
(other than the source tree) and you have any trouble in configuration |
| 529 |
or compilation, try just building in the source tree instead. Some |
| 530 |
\mono{make} versions don't support the VPATH mechanism needed to use |
| 531 |
separate build trees. Another workaround is to install GNU make. |
| 532 |
|
| 533 |
|
| 534 |
\paragraph{Configuration fails, complaining ``no acceptable grep could |
| 535 |
be found''.} We've seen this happen on our Sun Sparc/Solaris |
| 536 |
machine. It's a known issue in GNU autoconf. You can either install |
| 537 |
GNU grep, or you can insist to \mono{./configure} that the Solaris |
| 538 |
grep (or whatever grep you have) is ok by explicitly setting |
| 539 |
\mono{GREP} to a path to one that works: |
| 540 |
|
| 541 |
\vspace{1ex} |
| 542 |
\user{\% ./configure GREP=/usr/xpg4/bin/grep} |
| 543 |
\vspace{1ex} |
| 544 |
|
| 545 |
\paragraph{Many `make check' tests fail.} We have one report of a |
| 546 |
system that failed to link multithread-capable system C libraries |
| 547 |
correctly, and instead linked to one or more serial-only |
| 548 |
libraries.\footnote{If you're a pro: the telltale phenotype of this |
| 549 |
failure is to configure with debugging flags on and recompile. Run |
| 550 |
one of the failed unit test drivers (such as |
| 551 |
\mono{easel/easel\_utest}) yourself and let it dump core. Use a |
| 552 |
debugger to examine the stack trace in the core. If it failed in |
| 553 |
\mono{\_\_errno\_location()}, then it's linked a non-thread-capable |
| 554 |
system C library.} We were unable to reproduce the problem, and are |
| 555 |
not sure what could possibly cause it. We optimistically believe it |
| 556 |
was a one-off messed-up system, not our fault, but then we often say |
| 557 |
things like that and they turn out to be wrong. If it does happen, it |
| 558 |
screws all kinds of things up with the multithreaded implementation. A |
| 559 |
workaround is to shut threading off: |
| 560 |
|
| 561 |
\vspace{1ex} |
| 562 |
\user{\% ./configure {-}{-}disable-threads} |
| 563 |
\vspace{1ex} |
| 564 |
|
| 565 |
This will compile code won't parallelize across multiple cores, of |
| 566 |
course, but it will still work fine on a single processor at a time |
| 567 |
(and MPI, if you build with MPI enabled). |
| 568 |
|