Compiling and Installing BWA
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the BWA installation package directory.
cd /path/to/BWA
- Decompress the BWA installation package.
tar -xvf bwa-0.7.17.tar.bz2
- Go to the directory generated after the decompression.
cd bwa-0.7.17
- Copy sse2neon.h to the compiler installation directory.
cp SSE2NEON.h /path/to/GNU/lib/gcc/aarch64-unknown-linux-gnu/9.1.0/include
- Modify the Makefile file.
- Open Makefile.
vi Makefile
- Press i to enter the insert mode and modify line 14 of the file.
INCLUDES= -I/path/to/GNU/lib/gcc/aarch64-unknown-linux-gnu/9.1.0/include
Change the include directory to the include directory of the GNU compiler.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Modify the ksw.c file.
- Open ksw.c.
vi ksw.c
- Press i to enter the insert mode and modify line 29 of the file.
include <SSE2NEON.h>
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open ksw.c.
- Perform the compilation.
make
- Load the BWA environment.
export PATH=/path/to/BWA/bwa-0.7.17:$PATH
Parent topic: BWA 0.7.17 Porting Guide (CentOS 7.6)