2

After Lion upgrade, I had to reinstall my python packages, and ran into problem installing PIL and pysqlite.

...
unable to execute gcc-4.2: No such file or directory
error: command 'gcc-4.2' failed with exit status 1
Dolan Antenucci
  • 15,432
  • 17
  • 74
  • 100
  • Maybe the problem is it is late, but I couldn't figure this out for the last few hours.. I'm posting my easy fix in case anyone else runs into this. – Dolan Antenucci Jul 21 '11 at 04:30

2 Answers2

2

Turned out all I had to do was link up gcc-4.2, which was in /Developer/usr/bin

I added export PATH=$PATH:/Developer/usr/bin to ~/.bash_profile

Dolan Antenucci
  • 15,432
  • 17
  • 74
  • 100
2

ln -s /Developer/usr/bin/gcc /Developer/usr/bin/gcc-4.2

Arvid
  • 101
  • 3