Why does MKDIR fail when I run BUILDMCR in MATLAB Compiler 4.0.1 (R14+)

2 views (last 30 days)
I am using the BUILDMCR function to build an MCRInstaller.zip while specifying a target directory.
When issuing the BUILDMCR command, such as the following:
BUILDMCR('.')
I receive the following error:
Directory "csh: No entry for terminal type "'MATLAB Command Window'"
csh: using dumb terminal settings.
/home/ger/matlab" for ZIP file could not be built.
??? Error using ==> mkdir
csh: No entry for terminal type "'MATLAB Command Window'"
csh: using dumb terminal settings.
Unmatched ".
csh:: Too many arguments.
Unmatched ".

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
The MKDIR function is using the underlying operating system implementation of mkdir. It is the platform mkdir that is returning errors about unmatched quotes. This is generally because mkdir is aliased in the local .cshrc.
Unlike the bourne shell, the c shell, csh, sources its resource file for both interactive and non-interactive sessions. MATLAB shells out to do many system specific tasks like mkdir and will use any aliases defined in .cshrc.
To keep MATLAB from using these aliases, either remove the alias - mkdir in this case - from .cshrc or use a different shell. Use the MATLAB_SHELL environment variable to specify a different shell. For example,
setenv MATLAB_SHELL /bin/sh

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!