linux下安装Cmake和Sniffles

时间:2022-06-02 08:51:19

-------------------------------------------------------------------cmake的安装---------------------------------------------------

许多软件安装的时候需要cmake,安装cmake之前应该系统中已经安装gcc和g++,否则无法编译cmake

1、下载

cmake官网下载cmake安装包,下载界面网址为:https://cmake.org/download/

wget https://github.com/Kitware/CMake/releases/download/v3.14.0-rc3/cmake-3.14.0-rc3-Linux-x86_64.tar.gz

2、解压并加入环境变量

tar -xvzf cmake-3.6..tar.gz
echo 'export PATH=/project/personal/dongjx/software/cmake-3.14.0-rc3-Linux-x86_64/bin:$PATH' >>~/.bashrc

3、验证是否安装成功

cmake --help

------------------------------------------------------------------Sniffles的安装---------------------------------------------------

详细内容见:https://github.com/fritzsedlazeck/Sniffles

wget https://github.com/fritzsedlazeck/Sniffles/archive/master.tar.gz -O Sniffles.tar.gz
tar xzvf Sniffles.tar.gz
cd Sniffles-master/
mkdir -p build/
cd build/
cmake .. #会生成makefile文件
make #编译 cd ../bin/sniffles-core-1.0.11*
./sniffles