Matlab in Ubuntu bash on Windows WSL

조회 수: 17 (최근 30일)
Enrico Schulz
Enrico Schulz 2017년 9월 21일
댓글: Craig 2018년 7월 5일
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
Francois
Francois 2018년 3월 9일
+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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Craig
Craig 2018년 7월 5일
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
Craig
Craig 2018년 7월 5일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by