Error using mex (line 206) Unable to complete successfully. Caused by: Error using cd Cannot CD to C:\Users\M​OHANK~1\Ap​pData\Loca​l\Temp (Name is nonexistent or not a directory).

I want to use a LIBSVM matlab toolbox which is written in C and required to mex the file and they given procedure for mex as follows
On MATLAB
>> make
If make.m does not work on MATLAB (especially for Windows), try 'mex -setup' to choose a suitable compiler for mex. Make sure your compiler is accessible and workable. Then type 'make' to start the installation.
but i am getting following error
>>mex setup
Error using mex (line 206) Unable to complete successfully.
Caused by: Error using cd Cannot CD to C:\Users\MOHANK~1\AppData\Local\Temp (Name is nonexistent or not a directory).
and
>>mex.getCompilerConfigurations
Error using mex.getCompilerConfigurations (line 60) A 'Selected' compiler was not found. You may need to run mex -setup.
even i have installed
Microsoft Windows SDK 7.1 and mircosoft visual studio 2010 professional
and more over i have reinstalled matlab 2-3 times,even i tried 32 bit and 64 bit also but same errors persisting. please help me to sort out the problem..

 採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 6 月 24 日
The error:
Caused by: Error using cd Cannot CD to C:\Users\MOHANK~1\AppData\Local\Temp (Name is nonexistent or not a directory).
Suggests that your Windows environment variable TEMP is set to C:\Users\MOHANK~1\AppData\Local\Temp which is a non-existing directory. You can either manually create that directory and try again, or edit your environment variable to point to a directory that exists, then restart MATLAB and try again.

5 件のコメント

Mohan
Mohan 2013 年 6 月 25 日
please can u suggest how to create it or edit..
Mohan
Mohan 2013 年 6 月 25 日
Thank you very much. problem has been resolved. i created environment variable..now i can set compiler i. e. mex -setup working...
Khalid gANI
Khalid gANI 2013 年 9 月 23 日
please TELL ME MOHAN HOW DID U CHANGE THE ENVIRONMENT VARIABLE. ME ALSO FACING THE PROBLEM
Masoumeh  Azarpour
Masoumeh Azarpour 2013 年 10 月 10 日
I have also the same problem, could you please let me know how you could create environment variable? Thank you!
Dani Tormo
Dani Tormo 2014 年 5 月 13 日
Here is explained how to change environment variables:
Cheers!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2013 年 6 月 24 日

コメント済み:

2014 年 5 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by