Matlab in Ubuntu bash on Windows WSL

14 views (last 30 days)
Enrico Schulz
Enrico Schulz on 21 Sep 2017
Commented: Craig on 5 Jul 2018
Which library is exactly missing? It is very easy to add every needed library. There's lot of software that is actually runing, including graphical nautilus, synaptic, FSL etc. with xlaunch.
matlab -nodesktop -nodisplay -nojvm -nosplash Without the need for any graphical output I am running into the following error message: MATLAB: detail/MvmLocalBoundMethods.cpp:114: static void mvm::detail::MvmLocalBoundMethods::initMethods(bool): Assertion `Failed to open local mvm library: libmwblas.so: cannot enable executable stack as shared object requires: Invalid argument' failed. Aborted (core dumped)
Best wishes!
  1 Comment
Francois
Francois on 9 Mar 2018
+1
The one thing I tried for getting rid of these errors is the following:
execstack -s glnxa64/libmwblas.so
execstack -s glnxa64/libmwlapack.so
But then the execution simply stops after displaying the message "MATLAB is selecting SOFTWARE OPENGL rendering", without any error.

Sign in to comment.

Answers (1)

Craig
Craig on 5 Jul 2018
Try this. Replace 9.3 with whatever version you have.
find /home/<your_user_name>/.mcrCache9.3 -name "*.so*" | xargs sudo execstack –c
Unfortunately, this error doesn't occur until you run the compiled EXE, so you can't add it to the run script. If you have multiple compiled EXEs, MATLAB will blow away the cache between runs and you'll need to do it again. Otherwise, you only need to run the above line once. I think a later version (Creators?) of Windows WSL fixes this issue. Will update when I have it installed on my end.
  1 Comment
Craig
Craig on 5 Jul 2018
Also run that on the MCR installation directory. MATLAB does not include all .so files in the MCR installation. The previous response fixes all the libs added my the compiled EXE itself.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!