如何在Centos5上安装最新版本的cmake?
How to install a recent version of cmake on Centos5?
我正在尝试为我的 python 项目生成 python 轮子,这取决于 CMake >= 2.8.12。出于兼容性原因,这必须在旧的 linux 发行版 CentOS5 上完成(详情请查看 manylinux)。 yum install cmake
给我:cmake version 2.6-patch 4
,已经很旧了。
显然 PyPI 上有可用的 cmake wheels。所以简单 运行:
pip install cmake
您将在 index 中获得最新版本。
值得注意的是,cmake
二进制文件安装在其各自的 python bin 目录中。所以如果你 运行:
/opt/python/cp35-cp35m/bin/pip install cmake
cmake
二进制文件将安装在:
/opt/python/cp35-cp35m/bin/cmake
我正在尝试为我的 python 项目生成 python 轮子,这取决于 CMake >= 2.8.12。出于兼容性原因,这必须在旧的 linux 发行版 CentOS5 上完成(详情请查看 manylinux)。 yum install cmake
给我:cmake version 2.6-patch 4
,已经很旧了。
显然 PyPI 上有可用的 cmake wheels。所以简单 运行:
pip install cmake
您将在 index 中获得最新版本。
值得注意的是,cmake
二进制文件安装在其各自的 python bin 目录中。所以如果你 运行:
/opt/python/cp35-cp35m/bin/pip install cmake
cmake
二进制文件将安装在:
/opt/python/cp35-cp35m/bin/cmake