Installing HTSlib
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to go to the HTSlib installation directory:
cd /path/to/HTSLIB
- Run the following command to decompress the HTSlib installation package:
tar -xvf htslib-1.9.tar.bz2
- Run the following command to switch to the directory generated after the package is decompressed:
cd htslib-1.9
- 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/GNU/bin/gcc
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Run the following command to perform compilation and installation:
make
- Run the following command to copy the generated file to the default path of the root directory so that Cufflinks can directly identify the HTSlib files:
cp /path/to/HTSLIB/htslib-1.9/libhts.* /usr/local/lib
Parent topic: Configuring the Compilation Environment