View previous topic :: View next topic |
Author |
Message |
ImErina n00b

Joined: 10 Feb 2022 Posts: 51
|
Posted: Sat Sep 09, 2023 10:04 am Post subject: [Solved] MATLAB install hangs |
|
|
When I run the install script, matlab hangs indefinitely, with or without sudo.
Trying to run bin/glnxa64/MATLABWindow exits with an error, but I don't think things have progressed so far.
Triggering bin/glnxa64/MathWorksProductInstaller (which is supposed to be launched by the script) does the same.
How should I solve this?
Edit: the errors thrown by MATLABWindow is as follows:
Code: |
[0909/174852.763481:INFO:client_app.cpp(383)] Dealing with user ID
[0909/174852.763550:INFO:client_app.cpp(390)] Process is not running as root
[0909/174852.765431:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174852.765458:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174852.766717:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174852.766748:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174852.822959:INFO:client_app.cpp(383)] Dealing with user ID
[0909/174852.822961:INFO:client_app.cpp(383)] Dealing with user ID
[0909/174852.823025:INFO:client_app.cpp(390)] Process is not running as root
[0909/174852.823027:INFO:client_app.cpp(390)] Process is not running as root
[0909/174852.886887:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174852.886924:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174852.913379:ERROR:egl_util.cc(44)] Failed to load GLES library: /mnt/bin/glnxa64/libGLESv2.so: libwayland-client.so.0: cannot open shared object file: No such file or directory
[0909/174852.941161:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0909/174853.136745:INFO:gtk_util.cpp(90)] In NativeWindowGtk::setWindowPosition with x= 0, y= 0, width= 800, height= 600
[0909/174853.137821:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174853.137843:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174853.138788:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174853.138816:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174853.166648:ERROR:egl_util.cc(44)] Failed to load GLES library: /mnt/bin/glnxa64/libGLESv2.so: libwayland-client.so.0: cannot open shared object file: No such file or directory
[0909/174853.168383:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0909/174853.183690:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174853.183729:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174853.183934:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174853.183962:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174853.192752:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174853.192787:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174853.202366:INFO:client_app.cpp(383)] Dealing with user ID
[0909/174853.202424:INFO:client_app.cpp(390)] Process is not running as root
[0909/174853.222709:ERROR:egl_util.cc(44)] Failed to load GLES library: /mnt/bin/glnxa64/libGLESv2.so: libwayland-client.so.0: cannot open shared object file: No such file or directory
[0909/174853.224193:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0909/174853.226851:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174853.226880:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174853.234157:ERROR:egl_util.cc(44)] Failed to load GLES library: /mnt/bin/glnxa64/libGLESv2.so: libwayland-client.so.0: cannot open shared object file: No such file or directory
[0909/174853.235550:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0909/174853.238018:INFO:client_app.cpp(440)] In ClientApp::OnBeforeChildProcessLaunch
[0909/174853.238045:INFO:client_app.cpp(446)] Not appending enable-binary-transport
[0909/174853.245661:WARNING:vaapi_wrapper.cc(644)] VAAPI video acceleration not available for disabled
[0909/174853.245825:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is
[0909/174854.023058:ERROR:nss_util.cc(232)] Error initializing NSS with a persistent database (sql:/home/erina/.pki/nssdb): /mnt/bin/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib64/libicuuc.so.73)
[0909/174854.023123:ERROR:nss_util.cc(124)] Error initializing NSS without a persistent database: NSS error code: -5925
[0909/174854.023139:FATAL:nss_util.cc(126)] nss_error=-5925, os_error=0
[1] 6054 trace trap bin/glnxa64/MATLABWindow
[0909/174854.031948:ERROR:ssl_client_socket_impl.cc(983)] handshake failed; returned -1, SSL error code 1, net_error -3
|
I don't know why it tries to load libwayland-client and if it really matters, I use X and no wayland-related libraries have been installed.
Last edited by ImErina on Sun Sep 10, 2023 1:38 pm; edited 1 time in total |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23552
|
Posted: Sat Sep 09, 2023 2:50 pm Post subject: Re: MATLAB install hangs |
|
|
The only MATLAB package I see in Portage is an Emacs major mode, which does not seem like what you are using. From where did you get this? ImErina wrote: | When I run the install script, | What install script? With what options? ImErina wrote: | with or without sudo. | You should not sudo non-Portage install scripts without knowing exactly what they do. ImErina wrote: | Code: | [0909/174852.913379:ERROR:egl_util.cc(44)] Failed to load GLES library: /mnt/bin/glnxa64/libGLESv2.so: libwayland-client.so.0: cannot open shared object file: No such file or directory |
| This appears to be an installation error. The package bundles a libGLESv2 that depends on Wayland, but did not bundle any Wayland libraries. It should have done one of:- Not bundle libGLESv2
- Bundle a libGLESv2 that does not require Wayland
- Bundle the requisite Wayland libraries
- Include a check in the installation script that you have working Wayland libraries
Also, this path looks strange. Why is it under /mnt/bin? ImErina wrote: | Code: | [0909/174854.023058:ERROR:nss_util.cc(232)] Error initializing NSS with a persistent database (sql:/home/erina/.pki/nssdb): /mnt/bin/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib64/libicuuc.so.73) |
| This is the most critical problem. The install script bundled a private and apparently outdated libstdc++ and is trying to make MATLAB use that in preference to your system libstdc++. Therefore, when your system icu which needs a modern libstdc++ tries to use the old libstdc++ that MATLAB bundled, it fails. The solution here is for MATLAB to cease incomplete bundling. They should not bundle anything, but if they insist on bundling, they need to either bundle current versions of everything they ship or bundle a self-consistent group of libraries. Bundling some things and not others is an invitation to trouble.
Based on inspecting my libstdc++ installed here, they seem to have bundled a libstdc++ from gcc-11 or earlier. Your icu needs one from gcc-12 or later. |
|
Back to top |
|
 |
ImErina n00b

Joined: 10 Feb 2022 Posts: 51
|
Posted: Sun Sep 10, 2023 12:56 am Post subject: Re: MATLAB install hangs |
|
|
Hu wrote: |
From where did you get this?
|
I got the installation media from my university. It is an iso file, named R2023a_Linux.iso.
I mounted it under /mnt
Quote: |
What install script? With what options?
|
The "root" of the iso file contains an file(a bash script that decides which install program to run), namely "install".
The install script will (by default) install the files under /usr/local.
Quote: |
Why is it under /mnt/bin
|
Well, it's an iso file, so you may guess.
Quote: |
The install script bundled a private and apparently outdated libstdc++ and is trying to make MATLAB use that in preference to your system libstdc++.
|
This seems to be a long-lasting problem with MATLAB in general, but in the wiki the case appeared after installation(at runtime), which the solution is to make a soft link to override the bundled libstdc++.so.6.
Maybe I should "unzip" the iso and do the same for the installer. (I don't know exactly how, using 7z loses permissions, especially the execute permission.)
The worst thing is. if it really is MATLABWindow that failed me, the installer should print the error instead of hanging, according to some other notes in the troubleshoot section. I don't know where it hangs exactly.
I didn't notice that the libicuuc came from my system. I'll try unzipping and overriding the files. |
|
Back to top |
|
 |
ImErina n00b

Joined: 10 Feb 2022 Posts: 51
|
Posted: Sun Sep 10, 2023 1:38 pm Post subject: |
|
|
Unzipping the files and replace the libstdc++ solved the issue. Marking as solved, I will add a wiki tip for this |
|
Back to top |
|
 |
Naib Watchman


Joined: 21 May 2004 Posts: 6080 Location: Removed by Neddy
|
Posted: Fri Sep 15, 2023 7:20 am Post subject: |
|
|
If you are a MATLAB user AND Wayland... could you try simulink please?
There is something not right with r2023a and Wayland and it segfaults very quickly in trying to browse the simulink lib
Libfreetype is another bundled lib that can cause issues _________________ #define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0; |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|