Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9080299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:03:04+00:00 2026-06-16T20:03:04+00:00

My Matlab coder was building stuff fine the last time I used (which was

  • 0

My Matlab coder was building stuff fine the last time I used (which was 2 months ago), but now when I try to build a project with it, I get the following error:

\>> coder -build get_scores.prj     
Warning: 'perl: warning: Setting locale failed.    
perl: warning: Please check that your locale settings:    
LC_ALL = "en_GB",    
LANG = (unset)    
are supported and installed on your system.    
perl: warning: Falling back to the standard locale ("C").    
VSINSTALLDIR'    
exceeds MATLAB's maximum name length of 63 characters and has been truncated to    
'perl: warning: Setting locale failed.    
perl: warning: Please che'.     
\> In CompilerConfigurationFactory>CompilerConfigurationFactory.determineLocation at 275    
In CompilerConfigurationFactory>CompilerConfigurationFactory.process at 130    
In getCompilerConfigurations at 56    
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\compilerman.p>parse_opts_file at 57    
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\compilerman.p>compilerman at 15    
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel/getCompilerName at 148    
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel/finalizeProject at 711    
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel at 36    
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\codeProject.p>codeProject/doit at 8    
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\codeProject.p>codeProject at 13    
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\emlcprivate.p>emlcprivate at 18     
The current MEX compiler '`<unknown>`' is not supported.    
Use mex -setup to select a supported compiler.    
Use help codegen for more information on using this command.    

I’ve run mex -setup several times, chosen Visual Studio (which was what I was using previously and was working fine), and rerun the Build command, but the same error comes up repeatedly. Also, the part “exceeds MATLAB’s maximum name length of 63 characters and has been truncated” seems to say Matlab is somehow interpreting the Perl warning as some variable name – I have no idea what’s going on there.

I’m not sure why the Perl warning is coming up either – the LC_ALL was previously unset, and now is en_GB, but the same error comes up any way.

Any steps to rectify this would be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:03:05+00:00Added an answer on June 16, 2026 at 8:03 pm

    Ok, after looking carefully at the message, I guessed that Matlab is trying to get the variable name VSINSTALLDIR using Perl internally, and the warning message is throwing it off. I tried running Perl on the command line to confirm the warning appears there too. Then while searching for ways to fix the locale error (Googling gave solutions only for linux and Mac systems), I found a way to simply suppress the Perl warning on this page. After doing that, the above error is gone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an interface layer for a Matlab component which is used to analyse
I have a working MATLAB code, which works fine on another machine, but when
I've encountered many MATLAB codes which have a %#ok<SAGROW> comments. This comment is used
My idea is building a logo image (similar to Matlab's startup one) which shows
I'm trying to use the filtfilt command with matlab coder but I am running
I am currently investigating matlab and especially the matlab coder. My understanding is that
My matlab code does image processing, and I made matlab function which has 2
I have a piece of matlab code below which reads data from a table.
I am building a MATLAB GUI to do data collection from a Tektronix DPO4104
I'm working on research model which outputs results to matlab's .mat file format, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.