Can't run findpeaks on Matab R2017b on Linux

1 回表示 (過去 30 日間)
ervinshiznit
ervinshiznit 2017 年 10 月 15 日
コメント済み: Michael Jablecki 2019 年 12 月 18 日
I was previously able to run the findpeaks function on my Linux computer using Matlab R2017a. I upgraded to Matlab R2017b, but can no longer run the function, as I get this error message instead:
Can't load '/usr/local/MATLAB/R2017b/bin/glnxa64/libmwdastudio.so':
/usr/local/MATLAB/R2017b/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/libnssutil3.so:
version `NSSUTIL_3.12.5' not found (required by
/usr/local/MATLAB/R2017b/bin/glnxa64/libQt5WebEngineCore.so.5)
How can I fix this problem?

採用された回答

Erich
Erich 2017 年 10 月 27 日
I just ran across this as well and found a workaround. I also submitted a support request so hopefully it will be fixed in the next version of MATLAB.
I believe that the problem is MATLAB includes an incompatible version of the libnssutil3.so library with xulrunner (i.e., the builtin web viewer). If you first load MATLAB's web viewer before calling findpeaks, then the incompatible libnssutil3.so is already in memory and you see the above error. If you start a new MATLAB session and first call findpeaks before calling web, then findpeaks will run successfully. I added the following code to my startup.m so I don't have to remember to do this manually:
% Load libnssutil3.so system library before xulrunner version is loaded
try
tmp = findpeaks([1 2 3]);
clear tmp
catch ME
fprintf('Error caught:\n%s\n', ME.message);
end
Try it yourself: Start a new MATLAB session, and run the following code:
findpeaks(rand(5,1));
web
findpeaks(rand(5,1));
That should work. Now restart MATLAB and run the following code:
web
findpeaks(rand(5,1));
You should get the error.
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 10 月 27 日
Good debugging there, Erich.
ervinshiznit
ervinshiznit 2017 年 10 月 28 日
Thanks! This did the trick

サインインしてコメントする。

その他の回答 (1 件)

Meeshawn Marathe
Meeshawn Marathe 2017 年 10 月 19 日
編集済み: Meeshawn Marathe 2017 年 10 月 19 日
It looks like the Linux distribution you are using may no longer be supported in MATLAB R2017b. Please go through this link for more information. You could either upgrade to a more recent version of your distribution or switch over to one of the supporters distributions. If you can't upgrade your OS currently, try using a more recent version of the 'libnssutil3.so' library.
  1 件のコメント
Michael Jablecki
Michael Jablecki 2019 年 12 月 18 日
Same problem on the supported RHEL / Centos 7 Platform and Matlab 2018a. Same fix worked. Ouch.

サインインしてコメントする。

カテゴリ

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