From: Brian Arnold <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MEX Setup for Mac OS X 10.6
Date: Thu, 11 Feb 2010 17:21:23 -0500
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <>
References: <hl1tn4$fl9$>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: 1265926883 791 (11 Feb 2010 22:21:23 GMT)
NNTP-Posting-Date: Thu, 11 Feb 2010 22:21:23 +0000 (UTC)
To: Christian <>
User-Agent: Thunderbird (Macintosh/20090302)
In-Reply-To: <hl1tn4$fl9$>
Xref: comp.soft-sys.matlab:606601

Hi Christian,

Are you sure you installed Xcode developer tools? The installer is on 
your Mac OS X install DVD.  Do you have a folder named "Developer" on 
your local hard drive?  If you open Terminal, and type 'gcc --version' 
what is returned? If Terminal can't find gcc either, then the tools are 
not installed.

If you need more help than this, please troubleshoot (Google might help) 
and provide more details.

- Brian

Christian wrote:
> Hello,
> I'm trying to setup a mex compiler for MATLAB R2009b (64bit), running on 
> a Mac Intel 64bit, OS X 10.6 and the newest version of Apple XCode (3.2.1).
> I've run mex -setup, but MATLAB cannot locate the g++/gcc compiler. Is 
> there any general walkthrough for setting up the compiler for a 64-bit 
> system?
> Thanks,
> -Christian