Unable to find Perl executable.
6 ビュー (過去 30 日間)
古いコメントを表示
After a while that i was not using matlab on my secondary linux pc with manjaro, I don't know why I currently not able to run some commands. I don't know if I messed up with some OS updates or something like that.
In particular if I run
restoredefaultpath;
I've got the following output:
Error using restoredefaultpath (line 36)
Unable to find Perl executable.
I don't know if it could be useful, but if I run
unix('which perl');
I got
/usr/bin/fish: /home/**/Programmi/MATLAB/R2019b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/bin/fish)
/usr/bin/fish: /home/**/Programmi/MATLAB/R2019b/sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by /usr/bin/fish)
while if I run from terminal 'which perl' command I got '/usr/bin/perl'
Thanks in advance!
0 件のコメント
回答 (1 件)
Yongjian Feng
2021 年 11 月 22 日
編集済み: Yongjian Feng
2021 年 11 月 22 日
Acording to this anwer, matlab uses $SHELL to execute shell command. Most likely your SHELL env var is /usr/bin/fish. Check from terminal
echo $SHELL
Change it to /bin/sh or /bin/tcsh
Also your /usr/bin/fish might not be installed properly. If you really want to use /usr/bin/fish, you need to fix it. The following most likely will show the same error as the matlab error you showed.
ldd /usr/bin/fish
4 件のコメント
Yongjian Feng
2021 年 11 月 22 日
I see.
- Your system uses /usr/bin/fish for default shell
- What is the version of the linux you are using now, and what is the matlab version? The root cause here could be that the new upgraded linux version is using some *.so different from your matlab version. For example, the error message suggests that matlab wants to link to the old glib, but the new /usr/bin/fish wants the new glib.
- If so, you have two options here. Go back to the old linux version that is compatible with your matlab version. Or play with LD_LIBRARY_PATH.
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!