starship / starship

☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
https://starship.rs
ISC License
43.17k stars 1.85k forks source link

Cargo install fails from missing cmake on Ubuntu Desktop Minimal #4475

Open TomBaxter opened 1 year ago

TomBaxter commented 1 year ago

starship bug-report Issue occurs before starship is installed so no bug report

Current Behavior

Crate installation... cargo install starship --locked ... fails

Expected Behavior

Crate installation... cargo install starship --locked ... succeeds

Additional context/Screenshots

Sorry I didn't get a screenshot before fixing. Got error that points to the need to install cmake

Possible Solution

Install cmake In my case... sudo apt-get install cmake

Environment

Relevant Shell Configuration

N/A

Starship Configuration

N/A

Possibly related issue

4307

Note

cmake appears to be required to install starship from crates.io but is not installed by default in Ubuntu Desktop Minimal

Perhaps "Minimal" is an edge case not needing consideration but I thought I'd open this just in case we would like to document. I'm happy to make a PR but not sure where to document or if it's worthy of noting.

ardrigh commented 4 months ago

I also hit a problem with trying to install using cargo and starship failed.

I don't know how this is published on crate.io when it requires 3rd-party build tools to install. Should not require cmake to install from crates.io

davidkna commented 4 months ago

gix-faster instead of gix-max-faster as used in the default feature list, should allow compilation without cmake e.g. via --features 'battery notify gix-faster' --no-default-features.