Unable to find Perl executable.
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Yongjian Feng
am 22 Nov. 2021
Bearbeitet: Yongjian Feng
am 22 Nov. 2021
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 Kommentare
Yongjian Feng
am 22 Nov. 2021
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.
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!