ERROR: ld.so: object '/tools/ma​tlab/R2023​bU1/bin/gl​nxa64/glib​c-2.17_shi​m.so' from LD_PRELOAD cannot be preloaded: ignored.

22 ビュー (過去 30 日間)
Xuan
Xuan 2024 年 8 月 30 日
編集済み: Marc Erickson 2024 年 9 月 16 日
I experience this error when using HDL Verifier on a Linux machine (RedHat 7)
ERROR: ld.so: object '/tools/matlab/R2023bU1/bin/glnxa64/glibc-2.17_shim.so' from LD_PRELOAD cannot be preloaded: ignored.
Do you know how I can overcome this issue?

回答 (2 件)

Marc Erickson
Marc Erickson 2024 年 9 月 16 日
Hi @Xuan,
On your RHEL system, LD_PRELOAD is defined to load this shim to handle some glibc issues (that have since been fixed and standardized in later RHEL releases) when executing programs created from MATLAB. If you are shelling out to execute a non-MathWorks executable, you generally do not need (nor want) this environment variable set.
Often, you will see this warning when shelling out to execute a 32b executable (or your shell itself is 32b). Since LD_PRELOAD is pointing to a 64b library, this will not work.
You can safely ignore the warning if this is the case.
You can eliminate the warning by undefining LD_PRELOAD when shelling out, something like:
>> system('unset LD_PRELOAD; my_cmd_to_run')
Some MATLAB functions, when shelling out to system will take this step for you if the shim is known to not be relevant.

Ronit
Ronit 2024 年 8 月 30 日
Hello Xuan,
To resolve the mentioned error, please go through this MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/1602565
I hope it helps with your query!
  2 件のコメント
Xuan
Xuan 2024 年 9 月 2 日
Hi @Ronit,
Thanks for the hint!
I tried this solution.
I created a startup.m in my project.
startup.m file
setenv SHELL /bin/bash
I saved, closed the file startup.m after creating it, then re-start MATLAB.
Nevetheless, the errors are still there.
Any suggesstion?
Marc Erickson
Marc Erickson 2024 年 9 月 16 日
編集済み: Marc Erickson 2024 年 9 月 16 日
See another answer below. Although the warning can be ignored, you can eliminate the warning by undefining LD_PRELOAD when appropriate.

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

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by