41

I am running Ubuntu LTS and I'm getting errors when trying to do some of my pip install stuff, like scrapy for example. This is the error I get:

Unable to execute gcc: No such file or directory
Error: command 'gcc' failed with exit status 1

I'm installing pip within a virtualenv. I tried to install build essentials with the following command but I still get the same error:

apt-get -y install build-essential

Can anyone help me understand where I have gone wrong please?

EDIT - A bit more information:

ubuntu@ip-10-164-8-155:/var/log$ gcc -v
The program 'gcc' can be found in the following packages:
 * gcc
 * pentium-builder
Try: sudo apt-get install <selected package>
J.Zil
  • 1,103
  • 3
  • 20
  • 29
  • What was the output of your `apt-get -y install build-essential`? You definitely do not have the gcc executable installed. – Alex G Aug 05 '13 at 23:57

1 Answers1

57

NOTE: from your gcc -v output Try: sudo apt-get install selected package

sudo apt-get install gcc

chicks
  • 3,639
  • 10
  • 26
  • 36
user184501
  • 686
  • 6
  • 2