Matlab in Ubuntu bash on Windows WSL

12 ビュー (過去 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 Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by