Skip to content Skip to sidebar Skip to footer

Gcc Error: Command 'gcc-4.0' Failed With Exit Status 1

I am trying to install Fabric into a Virtualenv / Django 1.3.1 / OS X Lion with Xcode 4.2. This error seems to be fairly prevalent but I can't seem to find an answer when you are r

Solution 1:

Same issue with OSX 10.7. My fix:

cd /usr/bin
sudo ln -s gcc gcc-4.0

the version of MySQL-python I downloaded called for gcc-4.0 gcc is already a symlink to the apple gcc build.

P.S. Make sure you have xcode and command line tools installed as well

Solution 2:

strange, I'm still on the OS X snow leopard, when I type gcc-4.0 I get:

i686-apple-darwin10-gcc-4.0.1:noinputfiles

so I guess the actual implementation version is 4.0.1 but the executable name is gcc-4.0

maybe you should try creating a link gcc-4.0 that will point to your executable (4.0.1)

Solution 3:

If it helps any, I solved this pesky issue with sym links, and I think it will work for you. I wrote this with my version of gcc in mind, which is 4.2:

cd /usr/bin
rm cc gcc c++ g++
ln -s gcc-4.2 cc
ln -s gcc-4.2 gcc
ln -s c++-4.2 c++
ln -s g++-4.2 g++
ln -s gcc-4.2 gcc-4.0

There ya go!

Post a Comment for "Gcc Error: Command 'gcc-4.0' Failed With Exit Status 1"