These instructions are for version 10.5.23 (13 March 2014) and later versions of the WFDB Software Package. Instructions for older versions are here.
Install any missing prerequisites. Check to see if they are installed already using the commands
gcc --version curl-config --version ls /usr/include/expat.h
If these commands work, skip to the next step. Otherwise, as root, install any missing packages, and any packages that they may require, by running (on Fedora, Red Hat, Centos, and most other RPM-based GNU/Linux distributions)
yum install gcc curl-devel expat-devel
(or, on Debian, Ubuntu, Mint, and other Debian-based GNU/Linux distributions)
apt-get install gcc libcurl4-openssl-dev libexpat1-dev
Download the current version of the WFDB software package, wfdb.tar.gz, and unpack it:
tar xfvz wfdb.tar.gz
This command creates a directory with a name of the form wfdb-10.m.n. Look at the list of files extracted to find the name.
cd wfdb-10.m.n ./configure make install make check
By default, the make command installs the package into subdirectories of /usr/local, which may require root permissions. You may choose any other writable directory, such as your home directory, by adding an appropriate option to the ./configure command above:
Note that in this case you will need to add /somewhere/else/bin to your PATH. (It is no longer necessary to set your LD_LIBRARY_PATH, as was needed in previous versions.)
'make check' compiles a short program that exercises the WFDB library and applications, and prints a summary of test results. The tests are very short (typically less than a second each), except that the last one (xform using NETFILES) may take up to a minute if you have a slow or inoperative Internet connection. If any application test fails, its output (program.out) can be found in the checkpkg subdirectory of the WFDB source tree; compare this output with the file of the same name that can be found in the checkpkg/expected subdirectory.
Read the manuals. Really! :-) If you want to write your own software to work with PhysioBank data, begin with the WFDB Programmer's Guide. To learn about the wide variety of existing software that can be used to study PhysioBank data, read the WFDB Applications Guide and the WAVE User's Guide.