Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a system with gcc 4.2.4 on board, but when I try to compile even a simple hello world I obtain this error:

$ gcc helloworld.c
gcc: error trying to exec 'cc1': execvp: No such file or directory

I've checked and actually cc1 is not present in the system. Also, I've noticed that some folders required from gcc (e.g., /usr/lib/gcc/ and /usr/libexec/gcc) are missing.

Is there any possibility to restore the installation of gcc without trying to recompile it entirely?

share|improve this question
What OS and version? – John Sep 9 '13 at 13:45
STLinux 2.3 ARM – Marco L. Sep 9 '13 at 13:55

Being an embedded Linux, STLinux isn't going to have all of the tools that you expect from a desktop Linux. At least, they're not all going to be installed by default.

Many embedded Linuxes don't even have compilers "on board". You have to do all development with a cross-compilation toolchain.

STLinux isn't quite that pared down. You just have to install the GNU tools for it.

For what it's worth, cc1 is the core part of the GNU C compiler. The fact that you're missing it but you have gcc means you haven't actually got GCC properly installed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.