You are not logged in.

#1 2024-12-12 14:43:53

donperawn
Member
Registered: 2024-12-04
Posts: 7

Matlab visual environment can't render

Hello guys. Matlab launches for me but the window doesen't render correctly. I asked chatgpt and it told me to add the two commented lines before I execute the "/usr/local/MATLAB/R2024b/bin/matlab" command. However I cant seem to solve the last one with chatgpt and I also cant understand If anything from this forum page can be applied to my situation

https://bbs.archlinux.org/viewtopic.php?id=299076


Initial error (no tweaks in the command file)

$ matlab
MATLAB is selecting SOFTWARE rendering.
Gtk-Message: 16:33:22.373: Failed to load module "canberra-gtk-module"
libva error: dlopen of /usr/lib/dri/iHD_drv_video.so failed: /usr/local/MATLAB/R2024b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /usr/lib/dri/iHD_drv_video.so)
MESA-LOADER: failed to open dri: /usr/local/MATLAB/R2024b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/lib/libSPIRV-Tools.so) (search paths /usr/lib/gbm, suffix _gbm)

error after I apply the fixes (two commented lines on the command file)

$ matlab
libva error: /usr/lib/dri/iHD_drv_video.so init failed

"matlab" command file that I want to use to start matlab (I've added its directory to $PATH)

#export LD_PRELOAD=/usr/lib/libstdc++.so.6
#export MATLAB_JAVA=/usr/lib/jvm/java-8-openjdk/jre
/usr/local/MATLAB/R2024b/bin/matlab

Last edited by donperawn (2024-12-12 14:44:41)

Offline

#2 2024-12-12 14:52:19

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,589
Website

Re: Matlab visual environment can't render

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-12-12 14:59:03

donperawn
Member
Registered: 2024-12-04
Posts: 7

Re: Matlab visual environment can't render

WorMzy wrote:

Mod note: Moving to AUR Issues.

thanks, just saying: I didn't download anything from the AUR. I installed matlab from its website.

Offline

#4 2024-12-12 23:08:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,923

Re: Matlab visual environment can't render

You should probably give the AUR package a shot. matlab is one of these packages that needs a lot of setup to run in an environment it's not strictly intended for, the matlab package will likely take care of many potential gotchas. E.g. in this case you'd need to override the library paths so it picks up system c libs.

Offline

#5 2024-12-12 23:23:08

donperawn
Member
Registered: 2024-12-04
Posts: 7

Re: Matlab visual environment can't render

V1del wrote:

You should probably give the AUR package a shot. matlab is one of these packages that needs a lot of setup to run in an environment it's not strictly intended for, the matlab package will likely take care of many potential gotchas. E.g. in this case you'd need to override the library paths so it picks up system c libs.


didn't know it was In the AUR I'll try it when I can. and update. Thank you!

Offline

#6 2024-12-13 12:11:23

donperawn
Member
Registered: 2024-12-04
Posts: 7

Re: Matlab visual environment can't render

V1del wrote:

You should probably give the AUR package a shot. matlab is one of these packages that needs a lot of setup to run in an environment it's not strictly intended for, the matlab package will likely take care of many potential gotchas. E.g. in this case you'd need to override the library paths so it picks up system c libs.

I tried to install some but It gives errors and I don't know why.

$ yay -s matlab gives a bunch of choices and I chose these two

8 aur/matlab-support 9.14.0-1 (+7 0.00)
    Provides dependencies desktop file and common fixes for MATLAB.
7 aur/matlab-meta 9.14.0.2239454-1 (+2 0.09)
    Meta package for MATLAB dependecies

they gave this error when I chose them ($ 7 8 )

==> 7 8
AUR Explicit (2): matlab-support-9.14.0-1, matlab-meta-9.14.0.2239454-1
AUR Dependency (1): qt5-webkit-5.212.0alpha4-26
Sync Dependency (12): xerces-c-3.2.5-2, onetbb-2022.0.0-1, qt5-xmlpatterns-5.15.16-3, libnet-2:1.3-1, unixodbc-2.3.12-2, net-tools-2.10-3, libraw-0.21.3-1, embree-4.3.3-1, hunspell-1.7.2-2, woff2-1.0.2-5, hyphen-2.8.8-6, qt5-sensors-5.15.16-3
Sync Make Dependency (5): gendesk-1.0.10-1, qt5-doc-5.15.16-3, ruby-3.3.5-2, gperf-3.1-5, ruby-erb-4.0.4-6
:: PKGBUILD up to date, skipping download: matlab-support
:: PKGBUILD up to date, skipping download: matlab-meta
:: PKGBUILD up to date, skipping download: qt5-webkit
  3 matlab-support                           (Build Files Exist)
  2 matlab-meta                              (Build Files Exist)
  1 qt5-webkit                               (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
  3 matlab-support                           (Build Files Exist)
  2 matlab-meta                              (Build Files Exist)
  1 qt5-webkit                               (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
==> Making package: matlab-support 9.14.0-1 (Fri 13 Dec 2024 02:07:52 PM EET)
==> Retrieving sources...
==> WARNING: Skipping verification of source file PGP signatures.
==> Making package: matlab-meta 9.14.0.2239454-1 (Fri 13 Dec 2024 02:07:53 PM EET)
==> Retrieving sources...
==> WARNING: Skipping verification of source file PGP signatures.
==> Making package: qt5-webkit 5.212.0alpha4-26 (Fri 13 Dec 2024 02:07:55 PM EET)
==> Retrieving sources...
  -> Found qtwebkit-5.212.0-alpha4.tar.xz
  -> Found qtwebkit-cstdint.patch
  -> Found qtwebkit-fix-build-gcc14.patch
  -> Found webkit-offlineasm-warnings-ruby27.patch
  -> Found qt5-webkit-icu75.patch
  -> Found icu68.patch
  -> Found glib-2.68.patch
  -> Found qt5-webkit-python-3.9.patch
  -> Found qt5-webkit-bison-3.7.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    qtwebkit-5.212.0-alpha4.tar.xz ... Passed
    qtwebkit-cstdint.patch ... Passed
    qtwebkit-fix-build-gcc14.patch ... Passed
    webkit-offlineasm-warnings-ruby27.patch ... Passed
    qt5-webkit-icu75.patch ... Passed
    icu68.patch ... Passed
    glib-2.68.patch ... Passed
    qt5-webkit-python-3.9.patch ... Passed
    qt5-webkit-bison-3.7.patch ... Passed
:: Remove make dependencies after install? [y/N]
:: (1/3) Parsing SRCINFO: matlab-support
:: (2/3) Parsing SRCINFO: matlab-meta
:: (3/3) Parsing SRCINFO: qt5-webkit
 -> Failed to install layer, rolling up to next layer.error:error installing repo packages
 -> Failed to install layer, rolling up to next layer.error:error installing repo packages
 -> error installing repo packages
error installing repo packages
error installing repo packages

Offline

#7 2024-12-13 16:28:50

seth
Member
Registered: 2012-09-03
Posts: 60,859

Re: Matlab visual environment can't render

yay -s matlab

Is wrong. And yay is stupid.
https://bbs.archlinux.org/viewtopic.php?id=291007

Please read up https://wiki.archlinux.org/title/Arch_User_Repository and build the package using makepkg.
You can use an AUR helper if and when you know what you're doing to make life easier.
Hoping for them to spare you from having to learn things is futile.

Offline

Board footer

Powered by FluxBB