I stumbled over a strange error when using a CGO package (in my case it was go-sqlite3). When running
go get github.com/mattn/go-sqlite3
go failed with
exec: "gcc-5": executable file not found in $PATH
And that’s right, I have no
gcc-5 command, no idea where go picks that up. I have gcc, though.
After some unsuccessful searching for that error, I decided to fix it the quick and dirty way with
sudo ln -s /usr/bin/gcc /usr/local/bin/gcc-5
Now I have a
$PATH and CGO works without problems.
If you know the cause of the strange
gcc-5 thing, please drop me an email :)