I have Gentoo Linux on my home machine and after I’ve upgraded GCC (and subsequently the whole toolchain) I wanted to compile a perl related library – crypt-rsa.
When I tried to emerge it, it failed with the following error:
Could not run/locate “i386-pc-linux-gnu-gcc”
After searching around I found this thread on the Gentoo forums which had some instructions how to handle this issue, but it didn’t help much.
In one of the posts on that thread they said to re-emerge the offending package (if you find it). I figured, since I’m trying to compile something related to Perl, perhaps Perl is the problem.
I re-emerged it and, surprise surprise, it worked so I thought I’d share it with the world.