Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Updating to mountain lion, C compiler, compile ...' topicStudent Support Forum > General > "Updating to mountain lion, C compiler, compile ..."

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
07/29/12 10:00am

I don't have OSX 10.8, so forgive me giving a suggestion I can't test.

Check where Mathematica looks for the C compiler:

In[1]:= Needs["CCompilerDriver`"]

In[2]:= CCompilers[]

Out[2]= {{"Name" -> "GCC",
"Compiler" -> CCompilerDriver`GCCCompiler`GCCCompiler,
"CompilerInstallation" -> "/usr/bin", "CompilerName" -> Automatic}}

Mine looks for it in /usr/bin. Yours almost certainly does, too. Next find gcc:

1. Is gcc in /usr/bin (startup Terminal and type ls /usr/bin/gcc)? The answer should be no.
2. If not, can you find it? (Type 'gcc' in Terminal. If it executes, it's in directory in you PATH. Type 'echo $PATH' and you see a list of directories separated by colons.)
3. If you can find, trying copying or linking it to /usr/bin. Or you can use the "CompilerInstallation" option every time to set the directory it was installed in. It shouldn't take more than either of those, but I that's something I can't test.

Hope that helps. If not, try a Mac help forum, too.




URL: ,

Subject (listing for 'Updating to mountain lion, C compiler, compile ...')
Author Date Posted
Updating to mountain lion, C compiler, compile ... chir 07/27/12 09:55am
Re: Updating to mountain lion, C compiler, comp... Forum Modera... 07/28/12 2:23pm
Re: Updating to mountain lion, C compiler, comp... Michael 07/29/12 10:00am
Re: Updating to mountain lion, C compiler, comp... Forum Modera... 07/31/12 10:55am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic