Matlab in Ubuntu bash on Windows WSL

12 visualizzazioni (ultimi 30 giorni)
Enrico Schulz
Enrico Schulz il 21 Set 2017
Commentato: Craig il 5 Lug 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 Commento
Francois
Francois il 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.

Accedi per commentare.

Risposte (1)

Craig
Craig il 5 Lug 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 Commento
Craig
Craig il 5 Lug 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.

Accedi per commentare.

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by