---
title: "Could not run/locate “i386-pc-linux-gnu-gcc”"
description: "<p>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.</p>
<p>When I tried to emerge it, it failed with the following error:</p>
<blockquote>
<p>Could not run/locate “i386-pc-linux-gnu-gcc”</p></blockquote>
<p>After searching around I found <a href="http://forums.gentoo.org/viewtopic-t-321340.html">this thread</a> on the Gentoo forums which had some instructions how to handle this issue, but it didn’t help much.</p>
<p>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.</p>"
doc_version: "1"
last_updated: "2017-06-02"
date: 2007-02-26
tags: [Compilation, Compilation-Error, GCC, Gentoo, Gentoo-Linux, i386-pc-linux-gnu-gcc, Linux]
canonical: "https://eran.sandler.co.il/2007/02/26/could-not-runlocate-i386-pc-linux-gnu-gcc/"
---

## Sitemap

- [Home](https://eran.sandler.co.il/)

I have Gentoo Linux on my home machine and after I&#8217;ve upgraded GCC (and subsequently the whole toolchain) I wanted to compile a perl related library &#8211; crypt-rsa.

When I tried to emerge it, it failed with the following error:

> Could not run/locate &#8220;i386-pc-linux-gnu-gcc&#8221;

After searching around I found [this thread][1] on the Gentoo forums which had some instructions how to handle this issue, but it didn&#8217;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&#8217;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&#8217;d share it with the world.

 [1]: http://forums.gentoo.org/viewtopic-t-321340.html