Segmentation fault while installing matlab in ubuntu server 22.04

52 views (last 30 days)
Dear community,
I was wondering if anyone could help me with a question I have. I would really appreciate any advice or suggestions. I have been trying to install matlab on ubuntu server 22.04 (no GUI) but it always ends up with a segmentation fault. In the beginning, I though was a problem with the license, however, it seems not to be the case. This is what I have done so far:
Download the license and matlab
  1. I went to the license center and clicked on activate a new license. I selected version R2022b, linux, used server eno1 mac address as hostid, and used the user name in the system as the computer login name. Once done, I said I didn't install the software yet to get the FIK. I copy it and downloaded the license file.
  2. I downloaded the installation zip and decompress it.
  3. decompress as well the archaives/glnxa64/Network_License_Manager111621_glnxa64.zip
Configuration matlab installer_input.txt
  1. paste the FIK
  2. write the path for license file(license.lic) and destination folder (/usr/local/R2022b)
  3. agree to license, uncomment all the products (my license should have access to all of them), and set up a log file
now, once I run the sudo ./install -inputFile installer_input.txt it shows in the terminal Segmentation fault. logs show the following:
End of the file installer_input.txt
(Dic 09, 2022 13:56:09) Session key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
(Dic 09, 2022 13:56:09) Product Files Folder: /home/xxxxxx/matlab_installer/archives
(Dic 09, 2022 13:56:09) License Agreement validation is successful.
(Dic 09, 2022 13:56:09) FIK validation is successful.
(Dic 09, 2022 13:56:09) License File validation is successful.
Linux journal doesn't show any error related to this, so I run the MathWorksProductInstaller in the bin/glnxa64 with gdb as follows:
sudo gdb --args MathWorksProductInstaller -inputFile /home/xxxxx/matlab_installer/installer_input.txt
The program finished with the segmentation fault in
f1:i18n:to_string(std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t> > const&) () from /home/xxxxxx/matlab_installer/bin/glnxa64/libmwi18n.so
Did anyone have this problem or know how to solve it?
Thank you in advance for any help you can provide. I look forward to hearing from you.
Sincerely,
Camilo Arevalo
  2 Comments
Ciaran McAndrew
Ciaran McAndrew on 12 Dec 2022
Hi @Arevalo Arboleda Juan Camilo - I want to confirm that I am also having the exact same fault. I have duplicated your steps and got the same outputs.
I have used the method recommended by @Jestzer - using mpm - and it worked perfectly.
Arevalo Arboleda Juan Camilo
Dear @Ciaran McAndrew, thank you for your comment. Indeed, I tested the method suggested and I confirm it works perfectly.

Sign in to comment.

Accepted Answer

Jestzer
Jestzer on 9 Dec 2022
This could be caused by lots of different things and without more information, I don't know what's causing it, but you may be able to overcome this error by installing MATLAB with MATLAB Package Manager. It only works if you have an internet connection, but you may be able to overcome your error with this method.
If you're using the traditional installer, you need an offline version of it to use the -installer_input.txt file, otherwise, it won't work, regardless of you the error you're getting.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!