sharkdp/bat

Cannot Install Bat (fat error)

Closed this issue · 2 comments

What steps will reproduce the bug?

  1. Try to install it. cargo install bat

What happens?

Fat error here

What did you expect to happen instead?

To install normally.

How did you install bat?

With cargo.


bat version and environment

I'm not sure what OS you're using, but it seems like an error that can be fixed with:
CFLAGS="-std=gnu99" cargo install bat
This will specify a more modern C standard that what you may be using.

Otherwise, consider using a different package manager (like the one built into your system, or homebrew for Mac).

I'm not sure what OS you're using, but it seems like an error that can be fixed with: CFLAGS="-std=gnu99" cargo install bat This will specify a more modern C standard that what you may be using.

This fixed it. Thank you!