MATLAB Answers

undefined symbol: g_unicode_​script_get​_type

105 views (last 30 days)
Jan Hermes
Jan Hermes on 29 Aug 2019
Edited: Renan Silva on 21 Apr 2021
In matlab R2019 on current archlinux I get the following error on executing commands:
>> cd(matlabroot)
>> ! bin/glnxa64/MATLABWindow
bin/glnxa64/MATLABWindow: symbol lookup error: /usr/lib/ undefined symbol: g_unicode_script_get_type
I could not find any dexcription of this error. Only similar ones were mentioned in combination with libpango as well. Downgrading libpango did not help. Excluding a lot of libraries from the glnxa64 folders also did not work.
Also looking at the library itself via:
readelf -Ws /usr/lib/ | grep g_unicode
5: 00000000 0 FUNC GLOBAL DEFAULT UND g_unicode_script_get_type
Shows that the symbol indeed does exist.
Pango installed: pango-1:1.44.5-1
  1 Comment
Athanasios Tasoglou
Athanasios Tasoglou on 18 Sep 2020
Thanks! I can confirm this also works for me under Arch Linux (Sept 2020).

Sign in to comment.

Accepted Answer

Jan Hermes
Jan Hermes on 29 Aug 2019
Ok in the end I manage to solve it by excluding libgobect from /sys/os/glnx64
cd MATLAB/R2019a/cefclient/sys/os/glnxa64
mkdir exclude
mv libgobject* exclude

More Answers (2)

zoidberg on 19 Sep 2019
Hello Jan,
I'd like to point out that I experienced the same problem with R2019b and Arch (actually, Manjaro). What solved it for me was to relink the libraries listed here, i.e.
(remember to relink both the .so and the .so.0 files).
Renan Silva
Renan Silva on 21 Apr 2021
This link is for which file?
Would it be this?
ln -s /lib/x86_64-linux-gnu/ /home/aryel/softwares/MATLAB/R2018a/cefclient/sys/os/glnxa64/
My matlab is installed in:

Sign in to comment.

Joshitha R
Joshitha R on 3 Sep 2020
the error that was actually thrown to me was:
/usr/local/MATLAB/R2019b/bin/glnxa64/jcef_helper: symbol lookup error: /usr/lib/ undefined symbol: g_ptr_array_copy
these are the commands I used:
mkdir $Matlab_root/cefclient/sys/os/glnxa64/0_excluded
mv $Matlab_root/cefclient/sys/os/glnxa64/libg* $Matlab_root/cefclient/sys/os/glnxa64/0_excluded
I can now view my Documentation window and the Live scripts




Community Treasure Hunt

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

Start Hunting!