Compiling and Installing BLAST
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress and configure the BLAST path:
tar xzf ncbi-blast-2.9.0+-src.tar.gz cd ncbi-blast-2.9.0+-src export BLAST_TOP=`pwd`
- Run the following command to configure the compiler:
export CC=gcc export CXX=g++
- Use an SFTP tool to upload LMDB_0.9.24.tar.gz to the /path/to/BLAST/ncbi-blast-2.9.0+-src directory.
- Run the following command to decompress and configure the LMDB path:
cd $BLAST_TOP tar -xvf LMDB_0.9.24.tar.gz cd lmdb-LMDB_0.9.24 export LMDB_PATH=$BLAST_TOP/lmdb-LMDB_0.9.24
- Run the following commands to compile and install BLAST:
cd $BLAST_TOP/c++ ./configure cd ReleaseMT/build make all_r -j40
- After the installation is successful, the executable file is generated in the $BLAST_TOP/c++/ReleaseMT/bin directory. You can run the following command to view the file:
cd $BLAST_TOP/c++/ReleaseMT/bin ls blastp
blastp
Parent topic: BLAST 2.9.0 Porting Guide (CentOS 7.6)