p-e-w / ternimal

Simulate a lifeform in the terminal
GNU General Public License v3.0
1.07k stars 31 forks source link

When building get error: `linking with `cc` failed: exit code: 1` (technically a Rust issue) #22

Open RyanNerd opened 3 years ago

RyanNerd commented 3 years ago

Technically this is a Rust issue but thought I'd put it here so if anyone is trying to figure out how to fix it I'm using Linux Mint 20.1 and this is what I get when I try to build:

rustc -O ternimal.rs     
error: linking with `cc` failed: exit code: 1

Solution: sudo apt-get install libfreetype6-dev

If that doesn't work try installing cmake: sudo apt install cmake