Download the latest / required version of BWA:
Unzip the downloaded file and navigate to the resulting directory:
- tar -xvf bwa-0.7.12.tar.bz2
- cd bwa-0.7.12
BWA doesn’t come with a ./configure file so we can just run
Which should compile everything nicely and result in a executable bwa binary file in the bwa-0.7.12 directory. Once you have made this binary file all of the other files in the unzipped directory are no longer needed, they’re sole purpose in life was to make that binary…
From here you can either run the binary from the bwa-0.7.12 directory. e.g.:
or move / copy the binary into /usr/bin/ if that’s your kind of thing.