some pipelines fail with this error "bash: cmake: command not found"

Tashif Bashir
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 28, 2024

Trying to use cmake in my yml to build & analyse a project but can't figure out what is  wrong. It keeps showing the same error even afte¶ installing cmake manually with "- apt-get update && apt-get install -y cmake"

1 answer

2 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2024

Hi @Tashif Bashir 

That error message, as you have mentioned - will usually mean that cmake is not installed.

I would suggest after running the apt-get update command, you specifically test if cmake is installed properly by running a test command:

cmake --version

If the command fails, you will need to troubleshoot its installation or alternatively choose a build image that already includes cmake pre-installed.

Otherwise, if the command succeeds - please let me know.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events