gcc error in Mac OS X

Zhaojie Boulder gongchangzhaojie at gmail.com
Thu Jun 5 19:52:54 CEST 2008

Hi Tommy,

When I typed which gcc,nothing happened,I checked the /usr/bin path myself
and gcc was not there. In fact, the Xcode folder is at the same level with
the usr folder. Is there a way you can install Xcode in the right place? I
did not find such a option during the installation process of Xcode.


2008/6/4 Tommy Grav <tgrav at mac.com>:

> What happens when you run
> which gcc
> Cheers
>  Tommy
> On Jun 4, 2008, at 6:50 PM, Zhaojie Boulder wrote:
>  Hello,
>> I am new to Mac and used python in linux before. What I am trying to do is
>> to install "Ipython" and "PyCogent" in Mac OS X.
>> For PyCogent, after entering the package path, I typed "python setup.py
>> install". The results are as follows:
>> Didn't find Pyrex - will compile from .c files
>> running install
>> running build
>> running build_py
>> running build_ext
>> building 'cogent.align._compare' extension
>> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
>> -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX
>> -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe
>> -I/Users/zhaojie/Downloads/PyCogent-1.0.1/include
>> -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>> -c cogent/align/_compare.c -o
>> build/temp.macosx-10.5-i386-2.5/cogent/align/_compare.o -w
>> unable to execute gcc: No such file or directory
>> error: command 'gcc' failed with exit status 1
>> After google, I installed Xcode,but it did not help. Also, the Xcode
>> folder is not within "applications" folder, but a separate one parallel with
>> "applications". Dragging Xcode folder into the applications folder did not
>> make a difference, either.
>> Hope someone familiar with Mac can help me out.
>> Thank you,
>> Jie
>> --
>> http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080605/0d6dbf2e/attachment.html>

More information about the Python-list mailing list