Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Samtools

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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
  3. Run the following command to decompress the Samtools installation package:
    tar -xvf samtools-0.1.9.tar.gz
  4. Run the following command to go to the directory generated after the decompression:
    cd samtools-0.1.9
  5. Run the following command to obtain the absolute path of GNU:
    which gcc
  6. Run the following commands to modify the Makefile file:
    1. Open Makefile.
      vi Makefile
    2. 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
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Run the following command to perform the compilation and installation:
    make
  8. Run the following command to add the Samtools environment variable:
    export PATH=/path/to/SAMTOOLS/samtools-0.1.9:$PATH