【发布时间】:2020-07-12 08:40:17
【问题描述】:
当我在 Bitbucket 管道中 apt-get install cmake 时,它会安装 3.0.2 版。这会导致错误“需要 CMake 3.7.2 或更高版本。您正在运行版本 3.0.2”。如何在我的 .yml 中安装 cmake 3.7.2 或更高版本?
bitbucket-pipelines.yml
image: gcc:6.5
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- apt-get update && apt-get -y install cmake
- cmake -B build .
错误:
+ cmake -B build .
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.7.2 or higher is required. You are running version 3.0.2
【问题讨论】:
-
你看到这个question的回复了吗?
-
@squareskittles 热门回复推荐“去CMake官方网页,然后下载并解压最新版本”。我不相信这可以在我的 .yml 中实现自动化。 (我是管道新手,所以在这里我可能会感到困惑)
-
您可以将所有这些命令放在您的
script:部分,以替换apt-get安装命令。
标签: linux cmake yaml bitbucket bitbucket-pipelines