Compiling and installing bwa version 0.7.12-r1039
Download the source from Sourceforge to some directory where you can unpack and compile. Say it is your home directory:
- cd /home/jannetta
 
Unpack the code:
- bunzip2 bwa-0.7.12.tar.bz2
 - tar xvf bwa-0.7.12.tar
 
If you have not yet installed make, gcc and zlib then do so now:
- sudo apt-get make
 - sudo apt-get gcc
 - sudo apt-get alib1g-dev
 
Make bwa:
- sudo make
 
bwa does not appear to have an install script so it is up to you to copy it to somewhere sensible and then create a path to it. I placed it in /opt/bwa:
- sudo mkdir /opt/bwa
 - mv bwa /opt/bwa
 - export PATH=$PATH:/opt/bwa