Matlab in Ubuntu bash on Windows WSL

12 Ansichten (letzte 30 Tage)
Enrico Schulz
Enrico Schulz am 21 Sep. 2017
Kommentiert: Craig am 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 Kommentar
Francois
Francois am 9 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Craig
Craig am 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 Kommentar
Craig
Craig am 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by