所以,这种方法也不能解决问题。多次查资料,未果,我觉得是cmake的版本出了问题。我的版本是2.8.12,于是我决定升级到3:
首先下载cmake 3.6,并解压,检查环境:
wget https://cmake.org/files/v3.6/cmake-3.6.2.tar.gz tar xvf cmake-3.6.2.tar.gz && cd cmake-3.6.2/ ./bootstrap 编译,安装: gmake gmake install 查看新版本: /usr/local/bin/cmake --version 卸载旧版本,并为新版本建立软链接: yum remove cmake -y ln -s /usr/local/bin/cmake /usr/bin/ cmake --version 参考资料: centos7下升级cmake,很简单:https://blog.csdn.net/u013714645/article/details/77002555 stackoverflow上的解决办法:https://stackoverflow.com/questions/40361522/cmake-failed-to-find-threads-package-with-cryptic-error-message 最后编辑于:2019-12-12 10:26
编译,安装:
gmake gmake install 查看新版本: /usr/local/bin/cmake --version 卸载旧版本,并为新版本建立软链接: yum remove cmake -y ln -s /usr/local/bin/cmake /usr/bin/ cmake --version 参考资料: centos7下升级cmake,很简单:https://blog.csdn.net/u013714645/article/details/77002555 stackoverflow上的解决办法:https://stackoverflow.com/questions/40361522/cmake-failed-to-find-threads-package-with-cryptic-error-message 最后编辑于:2019-12-12 10:26
查看新版本:
/usr/local/bin/cmake --version 卸载旧版本,并为新版本建立软链接: yum remove cmake -y ln -s /usr/local/bin/cmake /usr/bin/ cmake --version 参考资料: centos7下升级cmake,很简单:https://blog.csdn.net/u013714645/article/details/77002555 stackoverflow上的解决办法:https://stackoverflow.com/questions/40361522/cmake-failed-to-find-threads-package-with-cryptic-error-message 最后编辑于:2019-12-12 10:26
卸载旧版本,并为新版本建立软链接:
yum remove cmake -y ln -s /usr/local/bin/cmake /usr/bin/ cmake --version 参考资料: centos7下升级cmake,很简单:https://blog.csdn.net/u013714645/article/details/77002555 stackoverflow上的解决办法:https://stackoverflow.com/questions/40361522/cmake-failed-to-find-threads-package-with-cryptic-error-message 最后编辑于:2019-12-12 10:26
参考资料: