undefined symbol xcb_shm_id when trying to startup MatLab

3 ビュー (過去 30 日間)
Paul
Paul 2024 年 9 月 2 日
編集済み: Ibrahim 2024 年 9 月 5 日
When trying to start up MatLab, I get
> ./bin/matlab
MATLAB is selecting SOFTWARE rendering.
/home/pblase/.MathWorks/ServiceHost/clr-df9a0cbb6bd34e079ef626671d1a7b7c/_tmp_MSHI_5363-9225-767d-e56f/mci/_tempinstaller_glnxa64/bin/glnxa64/InstallMathWorksServiceHost: symbol lookup error: /usr/lib64/libcairo.so.2: undefined symbol: xcb_shm_id
/home/pblase/.MathWorks/ServiceHost/clr-df9a0cbb6bd34e079ef626671d1a7b7c/_tmp_MSHI_5363-9225-767d-e56f/mci/_tempinstaller_glnxa64/bin/glnxa64/InstallMathWorksServiceHost: symbol lookup error: /usr/lib64/libcairo.so.2: undefined symbol: xcb_shm_id
Unexpected exception: 'N7mwboost10wrapexceptINS_16exception_detail39current_exception_std_exception_wrapperISt13runtime_errorEEEE: Error loading /home/pblase/matlab/bin/glnxa64/matlab_startup_plugins/matlab_graphics_ui/mwuixloader.so. /usr/lib64/libXt.so.6: undefined symbol: SmcModifyCallbacks: Success: Success' in createMVMAndCallParser phase 'Creating local MVM'
  8 件のコメント
Paul
Paul 2024 年 9 月 4 日
The OS is ClearLinux - https://www.clearlinux.org/ - Build 42280 (latest)
MatLab version is R2024a
Paul
Paul 2024 年 9 月 4 日
I downloaded and installed R2021a, and it works so far. So it's something changed in 2024a.

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

採用された回答

Ibrahim
Ibrahim 2024 年 9 月 4 日
got it working, MATLABWindow is apparently pulling it's own libX11.so instead of the system's, even though they're the same version.
to fix, remove it from ./bin/glnxa64/
i@clr~ $ cd /usr/local/MATLAB/R2024a/bin/glnxa64/ /*should be your install location */
i@clr/usr/local/MATLAB/R2024a/bin/glnxa64 $ sudo mkdir share
i@clr/usr/local/MATLAB/R2024a/bin/glnxa64 $ sudo mv libX11.* ./share/
then running matlab works as normal
For MATLAB dev peoples, why doesn't the matlab pull libX11 from the system? they both are libX11.so.6.4.0

その他の回答 (1 件)

Paul
Paul 2024 年 9 月 4 日
Ah, thanks. It works - almost. I get the product activation screen, but it ignores the keyboard! I can't enter the login data.
I notice that there's "libX11-xcb.so.1" and some associated files in .../glnxa64 also. Should I move them too?
  5 件のコメント
Paul
Paul 2024 年 9 月 4 日
It seems to depend on what I clicked last. If I clicked on Firefox, which I also have open, Matlab sees the keyboard.
Ibrahim
Ibrahim 2024 年 9 月 5 日
編集済み: Ibrahim 2024 年 9 月 5 日
if you stilll have that R2021a install kicking around try doing a `diff` between the libs used in R2024 and R2021
ldd /usr/local/MATLAB/R2024a/bin/glnxa64/MATLABWindow > r2024.txt
ldd /usr/local/MATLAB/R2021a/bin/glnxa64/MATLABWindow > r2021.txt
diff r2024.txt r2021.txt
Find any libs that are different (location-wise) and mv them elsewhere. This could remedy the text input issue
This obviously hinges on the fact that R2021a is working well (I have no idea, Im just a gamer)

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

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by