安装教程及其他参考 http://users-cs.au.dk/cstorm/software/tqdist/ 具体如下: wget http://users-cs.au.dk/cstorm/software/tqdist/files/tqDist-1.0.1.tar.gz cd path-to-file tar -xvf tqDist-1.0.1.tar.gz cd ./tqDist-1.0.1/ cmake . make make test make install 若没有安装cmake,参考 http://blog.sciencenet.cn/home.php?mod=spaceuid=3388297do=blogquickforward=1id=1126252 在make时出现错误 error: ‘strcmp’ was not declared in this scope 具体解决方法是在/tqDist-1.0.1/tqDist/中找到如下程序,在源代码开头加上下面的内容即可 #includecstring 需要修改的程序代码: pairs_quartet_distance.cpp triplet_dist.cpp pairs_triplet_distance.cpp quartet_dist.cpp 参考: http://users-cs.au.dk/cstorm/software/tqdist/ https://blog.csdn.net/dragoo1/article/details/9415379 若在 make install 时出现错误 CMake Error at tqDist/cmake_install.cmake:47 (file): file INSTALL cannot copy file /tqDist-1.0.1/bin/triplet_dist to /usr/local/bin/triplet_dist. 则使用命令 sudo make install