フィルターのクリア

Matlab -Dgdb doesn't work on Ubuntu

15 ビュー (過去 30 日間)
syl1446
syl1446 2019 年 3 月 21 日
編集済み: Aep 2021 年 4 月 23 日
When trying to debug a mex file on Ubuntu 18.04 with Matlab 2018b, when I run
matlab -Dgdb
in the terminal, I get the following error:
gdb: symbol lookup error: /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0: undefined symbol: XML_SetHashSalt
I've tried to reinstall libpython3.6m.so but the problem persists. The version of gdb is 8.1.0 and works fine when launched as standalone.
How can I fix it ?

採用された回答

Ramkumar Natarajan
Ramkumar Natarajan 2019 年 4 月 24 日
編集済み: Ramkumar Natarajan 2019 年 4 月 24 日
I don't know if this is a perfect solution but doing this in the current environment before `matlab -Dgdb` resolves it for me.
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libexpat.so
  3 件のコメント
Aep
Aep 2021 年 4 月 23 日
編集済み: Aep 2021 年 4 月 23 日
Hello,
Sorry I have a question. I am running a program and getting the same "undefined symbol: XML_SetHashSalt" error. I want to use the solution that you provided however I do not know where should I copy this export command that you mentioned?
I recieve the following error when I copy the export command in the MATLAB command line:
"Undefined function 'export' for input arguments of type 'char'."
Can you please help me with this error? I am using MATLAB in Ubuntu.
Thanks in advance
Ramkumar Natarajan
Ramkumar Natarajan 2021 年 4 月 23 日
Running this command in the Linux shell (set as environment variable) and launch Matlab in commandline from the same shell.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by