编译sparsenet的时候报错
/Applications/MATLAB_R2010b.app/bin//mex: line 305: gcc-4.0: command not found
一查 http://www.mathworks.com/matlabcentral/newsreader/view_thread/304310
好像是说对10.7系统的不支持,不过改下~/.matlab/...下面的mexopts.sh就行了
CC=gcc-4.0
>>CC=gcc
SDKROOT='/Developer/SDKs/MacOSX10.5.sdk'
>>SDKROOT='/Developer/SDKs/MacOSX10.7.sdk'
MACOSX_DEPLOYMENT_TARGET='10.5'
>>
MACOSX_DEPLOYMENT_TARGET='10.7'