Compiling and Installing STAR
Procedure
- Use PuTTY to log in to the server as the root user.
- 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.
- Run the following commands to decompress the STAR installation package:
tar -xvf STAR-2.7.1a.tar.gz
- Run the following command to switch to the directory generated after the package is decompressed:
cd STAR-2.7.1a export BLAST_TOP=`pwd`
- Run the following commands to modify the Makefile file:
- Open Makefile.
vi source/Makefile
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Run the following commands to compile and install STAR:
cd source make STAR
- Run the following command to check whether an executable file is generated:
-rwxr-xr-x 1 root root 2018464 Aug 9 13:29 STAR
- Run the following command to set STAR environment variables:
export PATH=/path/to/STAR/STAR-2.7.1a/source/:$PATH
Parent topic: STAR 2.7.1a Porting Guide (CentOS 7.6)