How can I solve the " Cannot assemble dsmodel.c. Please investigate file permissions for current directory." ,Please?

Recently I use the MATLAB interface to simulate my model, but when I clicked the "Compile Model" button ,Dymola said " Cannot assemble dsmodel.c. Please investigate file permissions for current directory." How can I solve the problems?