p-e-w / ternimal

Simulate a lifeform in the terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

RyanNerd opened this issue · comments

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