Tag Archives: MATLAB

An workaround for mex within MATLAB, “No supported compiler or SDK was found.”

I faced an error “No supported compiler or SDK was found.” when I tried to compile mexlised cpp file on MATLAB2015a (Mac 10.10.5).

MATLAB complains as fellow when “mex -setup” command is issued.

“No supported compiler or SDK was found.” which means that either no compiler has been installed on your system or not properly been linked with MATLAB’s mex.

The following link worked for my case and I could successfully compile mexlised cpp files.


And the attached xcode7_mexopts

Hope this save some your time.


MATLAB 2014a Bug, BLAS loading error: dlopen: cannot load any more object with static TLS

This article is Just for future reference.

I faced a MATLAB bug: BLAS loading error: dlopen: cannot load any more object with static TLS.

My MATLAB version is 2014a running on Ubuntu 14.04.01

Here is the workaround and what you only need to do is

1. Download the attached file from the following link.

2. Replace libiomp5.so file at /R2014a/sys/os/glnxa64 (Ubuntu)





Using gedit for editing MATLAB script in Ubuntu

By default, gedit recognises *.m file as object-c file and this causes unwanted syntax highlighting in gedit.

There is a workaround to fix this. Note that if you update gedit or mime type sets that overwrite your modification and you need to this again afterward.

gedit uses mime type for text management and all rules can be found from




Let’s open this file with sudo.

Looking for <mime-type type=”text/x-objcsrc”> and this mime-type is for object-c source code.

For some reason, *.m file is mapped as object-c file <glob pattern=”*.m”/>, just before <mime-type type=”text/x-ocaml”> line.

Let’s change <glob pattern=”*.m”/> to<glob pattern=”*.c”/> and save it.

Finally, the following command updates your modification and gedit will use Octave syntax that properly displays MATLAB script.


sudo update-mime-database /usr/share/mime


Give this try and let me know whether this works or not.