R2011b iMAC64 mex files not compiling
Afficher commentaires plus anciens
I have exactly the situation described in http://www.mathworks.co.uk/support/solutions/en/data/1-FR6LXJ/
I have Matlab R2011b on a Maci64 and Xcode version 4.2.1.
When I try to run `mex (file name).c' I receive the error
/Applications/MATLAB_R2011b.app/bin/mex: line 305: gcc-4.2: command not found
I follow the instructions in the above link exactly. I download the patch and type
>> cd (matlabroot)
>> !unzip -o ~/Downloads/Xcode42_MATLAB11b.patch
BUT I receive the following result:
Archive: /Users/matt/Downloads/Xcode42_MATLAB11b.patch
error: cannot delete old bin/engopts.sh
error: cannot delete old bin/matopts.sh
error: cannot delete old bin/mbuildopts.sh
checkdir error: cannot create __MACOSX
unable to process __MACOSX/.
checkdir error: cannot create __MACOSX
unable to process __MACOSX/bin/.
checkdir error: cannot create __MACOSX
unable to process __MACOSX/bin/._mbuildopts.sh.
error: cannot delete old bin/mexopts.sh
checkdir error: cannot create __MACOSX
unable to process __MACOSX/bin/._mexopts.sh.
And when I run mex -setup nothing as changed. I do not understand the above result and do not know what to do next. Please advise.
Thanks.
1 commentaire
Friedrich
le 27 Mar 2012
Seems like you have missing privileges on that machine (you are not allowed to delete files and create folders). As long the unzipping doesn’t work, you don’t need to try running mex -setup.
Réponses (1)
Ken Atwell
le 27 Mar 2012
0 votes
It looks like your computer has relatively tight privileges on it. Is this a personal Mac, or a computer maintained by others.
- If it is your own Mac, you can (temporarily) open up the privilege on your "matt" account. In System Preferences, go to "Users & Group". From there, choose the "matt" account and check the box "Allow user to administer this computer". Then try unzipping as above. Does that do the trick?
- If your Mac is administrated by someone else, you will need their help to do this -- sorry.
3 commentaires
Matthew
le 29 Mar 2012
Matthew
le 29 Mar 2012
Ken Atwell
le 29 Mar 2012
I would need to see this older version of yprime.c to troubleshoot this. It is curious that _YPRIME is in ALL CAPS, I would expect lower-case _yprime. Could there be a case mismatching within the older file?
There is nothing that has changed in recent years that would (obviously) trigger the failure you are seeing.
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!