Segmentation fault while installing matlab in ubuntu server 22.04

조회 수: 52 (최근 30일)
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
Ciaran McAndrew
Ciaran McAndrew 2022년 12월 12일
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
Arevalo Arboleda Juan Camilo 2022년 12월 14일
Dear @Ciaran McAndrew, thank you for your comment. Indeed, I tested the method suggested and I confirm it works perfectly.

댓글을 달려면 로그인하십시오.

채택된 답변

Jestzer
Jestzer 2022년 12월 9일
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.
  댓글 수: 1
Arevalo Arboleda Juan Camilo
Arevalo Arboleda Juan Camilo 2022년 12월 14일
Dear @Jestzer, thank you for your answer. I have tested the method suggested and as reported by @Ciaran McAndrew, it works perfectly.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by