Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the installation directory of the main program.
cd /path/to/VELVET
- Decompress the installation package.
tar -xvf velvet-1.2.10.tar.gz
- Go to the directory generated after the decompression.
cd velvet-1.2.10
- Modify Makefile.
sed -i '1s/gcc/clang/g' Makefile
- Compile and install MetaVelvet.
make 'CATEGORIES=10' 'MAXKMERLENGTH=57' 'LONGSEQUENCES=1' 'OPENMP=1' 'BUNDLEDZLIB=1'
After the compilation is complete, two executable files, Velveth and Velvetg, are generated.
- Load the environment variable.
export PATH=`pwd`:$PATH
- Go to the MetaVelvet installation directory.
cd contrib/MetaVelvet-v1.2.01/
- Modify Makefile.
sed -i '1s/gcc/clang/g' Makefile sed -i '2s/g++/clang++/g' Makefile sed -i "3s%$% -I../../third-party/zlib-1.2.3/%g" Makefile
- Compile and install MetaVelvet.
make 'CATEGORIES=10' 'MAXKMERLENGTH=57'
- Load the environment variable.
export PATH=`pwd`:$PATH
Parent topic: MetaVelvet 1.2.01 Porting Guide (Kylin V10)