In article <CABU+LKPqL-s34X6FZ7SGjaQ3mpLcg-x9mn=Ya37Sa75rSret9Q@mail.gmail.com>, Sanath Kumar <dayanandasaraswati@gmail.com> wrote:
When compiling MySQL-python module on Mac OSX Mavericks, I executed the command "python setup.py build" and got an error when compiling the C extension. In the output from build command, I see that it has tried running the C compiler with the following command:
/ A p p l i c a t i o n s / X c o d e . a p p / C o n t e n t s / D e v e l o p e r / T o o l c h a i n s / X c o d e D e f a u l t . x c t o o l c h a i n / u s r / b i n / c l a n g - f n o - s t r i c t - a l i a s i n g - f n o - c o m m o n - d y n a m i c - a r c h x 8 6 _ 6 4 - a r c h i 3 8 6 - g - O s - p i p e - f n o - c o m m o n - f n o - s [...]
This appears to be an instance of Issue18071 which was fixed in Python 2.7.6. A workaround is to ensure you have installed the Xcode Command Line Tools; on OS X 10.9, run "xcodebuild --install". http://bugs.python.org/issue18071 -- Ned Deily, nad@acm.org