Problem is using system command

8 ビュー (過去 30 日間)
Aep
Aep 2021 年 4 月 23 日
編集済み: Walter Roberson 2021 年 4 月 23 日
Hello all,
I am running MATLAB 2019b in ubuntu. I have a command line that I can successfully run in my ubuntu terminal. I want to use the System command of MATLAB to run the same command inside MATLAB instead of terminal. When I do this, my program starts running, however, after a few seconds I receive this error:
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0: undefined symbol: XML_SetHashSalt
This is weird because this error does not show up when I run the code in the terminal. Can someone help to find out what the problem is?
Thanks in advance
  2 件のコメント
Walter Roberson
Walter Roberson 2021 年 4 月 23 日
編集済み: Walter Roberson 2021 年 4 月 23 日
Aep
Aep 2021 年 4 月 23 日
Thanks for your response @Walter Roberson.

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

採用された回答

Aep
Aep 2021 年 4 月 23 日
編集済み: Walter Roberson 2021 年 4 月 23 日
I could solve the problem with adding the "export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libexpat.so" command to my system command as below:
[a,b]=system('export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libexpat.so;MY OTHER TERMINAL COMMANDS')

その他の回答 (0 件)

カテゴリ

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