annotate ezBAMQC/src/htslib/INSTALL @ 9:6610eedd9fae

Uploaded
author cshl-bsr
date Wed, 30 Mar 2016 12:11:46 -0400
parents dfa3745e5fd8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
1 Basic Installation
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
2 ==================
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
3
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
4 To build and install HTSlib, 'cd' to the htslib-1.x directory containing
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
5 the package's source and type the following commands:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
6
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
7 ./configure
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
8 make
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
9 make install
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
10
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
11 The './configure' command checks your build environment and allows various
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
12 optional functionality to be enabled (see Configuration below). If you
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
13 don't want to select any optional functionality, you may wish to omit
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
14 configure and just type 'make; make install' as for previous versions
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
15 of HTSlib. However if the build fails you should run './configure' as
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
16 it can diagnose the common reasons for build failures.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
17
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
18 The 'make' command builds the HTSlib library and and various useful
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
19 utilities: bgzip, htsfile, and tabix. If compilation fails you should
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
20 run './configure' as it can diagnose problems with your build environment
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
21 that cause build failures.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
22
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
23 The 'make install' command installs the libraries, library header files,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
24 utilities, several manual pages, and a pkgconfig file to /usr/local.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
25 The installation location can be changed by configuring with --prefix=DIR
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
26 or via 'make prefix=DIR install' (see Installation Locations below).
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
27
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
28
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
29 Configuration
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
30 =============
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
31
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
32 By default, './configure' examines your build environment, checking for
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
33 requirements such as the zlib development files, and arranges for a plain
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
34 HTSlib build. The following configure options can be used to enable
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
35 various features and specify further optional external requirements:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
36
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
37 --with-irods[=DIR]
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
38 Specifies the location of the iRODS client library to use to enable
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
39 access to data objects stored in iRODS (<http://irods.org/>) via file
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
40 paths like 'irods:DATAOBJ'. DIR is the base of an iRODS source tree
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
41 such that the library is present as DIR/lib/core/obj/libRodsAPI.* and
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
42 headers are present under DIR/lib/api/include and so on. If '=DIR' is
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
43 omitted, $IRODS_HOME will be used as a base directory.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
44
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
45 The configure script also accepts the usual options and environment variables
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
46 for tuning installation locations and compilers: type './configure --help'
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
47 for details. For example,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
48
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
49 ./configure CC=icc --prefix=/opt/icc-compiled
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
50
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
51 would specify that HTSlib is to be built with icc and installed into bin,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
52 lib, etc subdirectories under /opt/icc-compiled.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
53
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
54
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
55 Installation Locations
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
56 ======================
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
57
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
58 By default, 'make install' installs HTSlib libraries under /usr/local/lib,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
59 HTSlib header files under /usr/local/include, utility programs under
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
60 /usr/local/bin, etc. (To be precise, the header files are installed within
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
61 a fixed 'htslib' subdirectory under the specified .../include location.)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
62
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
63 You can specify a different location to install HTSlib by configuring
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
64 with --prefix=DIR or specify locations for particular parts of HTSlib by
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
65 configuring with --libdir=DIR and so on. Type './configure --help' for
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
66 the full list of such install directory options.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
67
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
68 Alternatively you can specify different locations at install time by
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
69 typing 'make prefix=DIR install' or 'make libdir=DIR install' and so on.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
70 Consult the list of prefix/exec_prefix/etc variables near the top of the
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
71 Makefile for the full list of such variables that can be overridden.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
72
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
73 You can also specify a staging area by typing 'make DESTDIR=DIR install',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
74 possibly in conjunction with other --prefix or prefix=DIR settings.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
75 For example,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
76
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
77 make DESTDIR=/tmp/staging prefix=/opt
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
78
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
79 would install into bin, lib, etc subdirectories under /tmp/staging/opt.