Warning: OS X Lion and compilation

  • Follow


I have not dug thoroughly into this yet, but I wanted to get the warning out quickly.  Apparently, OS X Lion does not include the gcc compiler.  I upgraded to Lion this morning, then on a lark tried to compile a function in Mathematica with CompilationTarget -> "C".  I got an error that no compiler was found.

I am sure that it is only a matter of either obtaining a copy of gcc or Xcode (with its own c compiler, not gcc) and configuring Mathematica to use that compiler.  I have not tried either, since I am not using anything but opcode compilation.  If you are successful, please post instructions for others on this group.

Thanks,
Daniel

0
Reply dmaxwarren (111) 7/21/2011 9:49:04 AM

I believe that XCode 4.1 for Lion is now free and I believe that the
compilers are installed with an installation of XCode...

http://developer.apple.com/xcode/

I haven't installed Lion yet since I use Eudora and can't find a
better email client ...  and Eudora is PowerPC...   :-(

--David

On Jul 21, 5:49 am, dr DanW <dmaxwar...@gmail.com> wrote:
> I have not dug thoroughly into this yet, but I wanted to get the warning out quickly.  Apparently, OS X Lion does not include the gcc compiler. I upgraded to Lion this morning, then on a lark tried to compile a function in Mathematica with CompilationTarget -> "C".  I got an error that no compiler was found.
>
> I am sure that it is only a matter of either obtaining a copy of gcc or Xcode (with its own c compiler, not gcc) and configuring Mathematica to use that compiler.  I have not tried either, since I am not using anything but opcode compilation.  If you are successful, please post instructions for others on this group.
>
> Thanks,
> Daniel


0
Reply dbreiss (537) 7/22/2011 1:08:13 AM


1 Replies
32 Views

(page loaded in 1.472 seconds)


Reply: