Installing Samtools
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install dependencies:
yum install ncurses-devel.aarch64 bzip2-devel.aarch64 xz-devel.aarch64 java-1.8.0-openjdk-devel.aarch64 -y
- Run the following command to decompress the Samtools installation package:
tar -xvf samtools-0.1.9.tar.gz
- Run the following command to go to the directory generated after the decompression:
cd samtools-0.1.9
- Run the following command to obtain the absolute path of GNU:
which gcc
- Run the following commands to modify the Makefile file:
- Open Makefile.
vi Makefile
- Press i to enter the insert mode and modify the file as follows:Before the modification:
CC =gcc
After the modification:
CC =path/to/GUN/bin/gcc
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Run the following command to perform the compilation and installation:
make
- Run the following command to add the Samtools environment variable:
export PATH=/path/to/SAMTOOLS/samtools-0.1.9:$PATH
Parent topic: Configuring the Compilation Environment