Compiling and Installing PLINK
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install the dependency software:
yum install blas-devel lapack-devel atlas-devel perl-Digest-SHA -y
- Run the following commands to create library file links:
ln -s /usr/lib64/atlas/libtatlas.so.3.10 /usr/lib64/atlas/libatlas.so
ln -s /usr/lib64/atlas/libsatlas.so.3.10 /usr/lib64/atlas/libcblas.so
- Run the following command to go to the planned PLINK installation directory and decompress the source code package:
cd /path/to/PLINK && tar -zxf master.tar.gz
- Run the following command to move the zlib source code package to the specified directory:
mv zlib-1.2.11.tar.gz plink-ng-master
- Run the following command to switch to the installation directory and modify the configuration file:
cd plink-ng-master/1.9 && sed -i '0,/curl/s/curl/# curl/g' plink_first_compile
- Run the following command to switch to the directory generated after decompression:
./plink_first_compile
- Run the following command to configure the environment variable:
export PATH=/path/to/PLINK/plink-ng-master/1.9:$PATH
Parent topic: PLINK 1.9 Porting Guide (CentOS 7.6)