Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing STAR

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to install the system dependency zlib-devel:
    yum install zlib-devel -y

    The Yum source is a local source of the CentOS 7.6 image. You can modify the files in the /etc/yum.repos.d directory as required.

  3. Run the following commands to decompress the STAR installation package:
    tar -xvf STAR-2.7.1a.tar.gz
  4. Run the following command to switch to the directory generated after the package is decompressed:
    cd STAR-2.7.1a
    export BLAST_TOP=`pwd`
  5. Run the following commands to modify the Makefile file:
    1. Open Makefile.
      vi source/Makefile
    2. Press i to enter the insert mode and modify the file as follows:
      LDFLAGSextra ?= -flto -march=native -mcpu=tsv110
      CXXFLAGSextra ?= -flto -march=native -mcpu=tsv110
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Run the following commands to compile and install STAR:
    cd source
    make STAR
  7. Run the following command to check whether an executable file is generated:
    
    
    -rwxr-xr-x 1 root root 2018464 Aug  9 13:29 STAR
  8. Run the following command to set STAR environment variables:
    export PATH=/path/to/STAR/STAR-2.7.1a/source/:$PATH