MATLAB R2024a Silent Installation Issue - Unable to Load Product Files

55 visualizaciones (últimos 30 días)
Yu
Yu el 24 de Mayo de 2024
Comentada: John el 21 de Jun. de 2024
I am facing a problem while attempting to install MATLAB R2024a on my Linux server (Ubuntu 22.04.4 LTS) using the silent installation method. Despite following the provided instructions and specifying the necessary parameters in the installer_input.txt file, the installation process fails with an error indicating that the installer is unable to load the product files.
Setup Details:
- Server Operating System: Ubuntu 22.04.4 LTS
- MATLAB Version: R2024a
- Installation Method: Silent installation using installer_input.txt file
- Path to the installer file: ~/matlab_R2024a_Linux
The error message I receive during the installation process is as follows:
```
(May 23, 2024 23:54:26) Unable to load product files. Product files must be in the same folder as the input file. For help getting the product files, see the installation documentation on <a HREF="https://www.mathworks.com/pi_noprode_mpi_R2024a_glnxa64">MATLAB Answer</a>.
```
I have confirmed that the MATLAB product files (contents of the "archives" directory) are located in the same directory as the installer_input.txt file. I have also verified that the installer_input.txt file does not contain any explicit line specifying the product files folder, as the installer assumes the product files are in the same directory by default.
The installation command I am using is:
```
./install -mode silent -inputFile installer_input.txt -logFile installation_log.txt
```
I have reviewed the installation_log.txt file, but it does not provide any additional information beyond the error message mentioned above.
To assist you in investigating this issue further, please find the following information:
- Path to the directory containing the installer_input.txt file: ~/matlab_R2024a_Linux
- List of files and directories present in the same directory as the installer_input.txt file:
```
drwxrwxr-x 8 yugao yugao 4096 May 24 00:15 ./
drwxr-x--- 33 yugao yugao 12288 May 24 00:53 ../
drwxrwxr-x 4 yugao yugao 4096 May 24 00:15 archives/
drwxrwxr-x 4 yugao yugao 4096 May 24 00:15 bin/
drwxrwxr-x 3 yugao yugao 4096 May 24 00:15 cefclient/
-r-xr-xr-x 1 yugao yugao 11147 Nov 19 2023 install*
-rw-r--r-- 1 yugao yugao 9313 May 24 00:17 installer_input.txt
-r--r--r-- 1 yugao yugao 83813 Jan 23 01:57 license_agreement.txt
-r--r--r-- 1 yugao yugao 777345 Apr 21 11:07 mathworks_installation_help_de.pdf
-r--r--r-- 1 yugao yugao 765184 Apr 20 11:01 mathworks_installation_help_es.pdf
-r--r--r-- 1 yugao yugao 779814 Apr 21 10:52 mathworks_installation_help_fr.pdf
-r--r--r-- 1 yugao yugao 772296 Apr 21 10:35 mathworks_installation_help_it.pdf
-r--r--r-- 1 yugao yugao 652022 Apr 20 10:53 mathworks_installation_help_ja_JP.pdf
-r--r--r-- 1 yugao yugao 769398 Apr 20 10:53 mathworks_installation_help_ko_KR.pdf
-r--r--r-- 1 yugao yugao 760789 Apr 20 10:54 mathworks_installation_help.pdf
-r--r--r-- 1 yugao yugao 874129 Apr 20 10:53 mathworks_installation_help_zh_CN.pdf
-r--r--r-- 1 yugao yugao 9021 Nov 19 2023 readme.txt
drwxrwxr-x 12 yugao yugao 4096 May 24 00:15 resources/
drwxrwxr-x 4 yugao yugao 4096 May 24 00:15 sys/
drwxrwxr-x 3 yugao yugao 4096 May 24 00:15 ui/
-r--r--r-- 1 yugao yugao 310 May 2 12:28 VersionInfo.xml
```
I would greatly appreciate your guidance in resolving this silent installation issue and successfully installing MATLAB R2024a on my Ubuntu server. If you require any additional information or have specific troubleshooting steps you would like me to follow, please let me know.
Thank you for your attention to this matter and your assistance.
  2 comentarios
John
John el 18 de Jun. de 2024
Hello there! I am an IT System Engineer and am also having the same issue. I need to create an application package to put into SCCM to push out to a few thousand devices and can not seem to get the setup.exe file to run with the parameters set by the Installer_input.txt file. I have been messing around with this for two days now and can not get powershell to use the Installer-Input.txt file properly when silently installing MatLab. It works just fine with the Matlab 2023 version. But with the 2024 installer_input.txt file it keeps telling me that it is either empty or can't be read. I have followed everything to a T and I have not done anything differently from the 2023 application package that I created. I went from using basic code to VERY advanced code trying to figure out why this is not working. And it almost seems like the setup.exe file is not wanting to use the Installer_input.txt file to read parameters from. This is the code from my applicaiton package that I created for the Matlab 2023a version that works great. Code:
# Specifying the path to setup.exe
$setupExePath = "C:\Temp\MatLabPSApp\setup.exe"
# Specify the arguments to be passed to setup.exe
$arguments1 = @("-inputFile", "C:\Temp\MatLabPSApp\installer_input.txt")
# Executing the process using the Execute-Process function
$result = Execute-Process -Path "$setupExePath" -Parameters "$arguments1" -WindowStyle "Normal"
# Waits to finish the command
$exitCode = $result.ExitCode
if ($result -ne $null){
Write-Log -Message "MatLab has been successfully installed on this device."
} else {
Write-Log -Message "The Installation was Unsuccessful.."
}
And this works great from the MatLab 2023 version. Just not the 2024.
John
John el 21 de Jun. de 2024
I was finally able to get the installer_input.txt file to work. I had to download the .iso file and extract everything. After it was all extracted I also had to put the license file in the same spot. Then changed all the settings to the correct setting in the installer_input.txt. And I used this code to get it to work properly. Code:
# Specify the path to setup.exe
$setupExePath = "C:\Temp\MatLab-2024a\Files\MatLabFiles\AllFiles\setup.exe"
# Specify the path to the installer input file
$inputFilePath = "C:\Temp\MatLab-2024a\Files\MatLabFiles\AllFiles\installer_input.txt"
# Specify the path to the license file
$licenseFilePath = "C:\Temp\MatLab-2024a\Files\MatLabFiles\AllFiles\license.lic"
# Check if setup.exe exists
if (Test-Path -Path $setupExePath -PathType Leaf) {
Write-Log -Message "Setup.exe found at $setupExePath"
} else {
Write-Log -Message "Setup.exe not found at $setupExePath"
Exit 1
}
# Check if installer_input.txt exists
if (Test-Path -Path $inputFilePath -PathType Leaf) {
Write-Log -Message "Installer input file found at $inputFilePath"
} else {
Write-Log -Message "Installer input file not found at $inputFilePath"
Exit 1
}
# Check if license.lic exists
if (Test-Path -Path $licenseFilePath -PathType Leaf) {
Write-Log -Message "License file found at $licenseFilePath"
} else {
Write-Log -Message "License file not found at $licenseFilePath"
Exit 1
}
# Specify the arguments to be passed to setup.exe
$arguments = "-inputFile `"$inputFilePath`" -licensePath `"$licenseFilePath`""
# Execute the process
Write-Log -Message "Starting MATLAB installation..."
$process = Start-Process -FilePath $setupExePath -ArgumentList $arguments -Wait -PassThru
# Wait for the process to complete and capture the exit code
$exitCode = $process.ExitCode
if ($exitCode -eq 0) {
Write-Log -Message "MATLAB has been successfully installed on this device."
} else {
Write-Log -Message "MATLAB installation failed with exit code $exitCode."
Write-Log -Message "Check MATLAB installer logs for more details."
}

Iniciar sesión para comentar.

Respuestas (1)

Prateekshya
Prateekshya el 4 de Jun. de 2024
Hello Yu,
Given the information you have provided, it seems you've taken the correct initial steps for a silent installation of MATLAB R2024a on Ubuntu 22.04.4 LTS. The error message suggests an issue with the installer not correctly identifying the location of the product files, despite them being in the expected directory. Here is how you can debug the issue:
  • Please ensure that the installer and all the files within the directory, especially within the "archives" folder, have the correct permissions. You can set the permissions recursively using the following command:
chmod -R 755 ~/matlab_R2024a_Linux
  • Please check the "installer_input.txt" file for any syntax errors or misplaced options that might cause the installer to behave unexpectedly.
  • Try modifying the "installer_input.txt" file to include absolute paths for the installation directory and any other file or directory paths it references.
I hope this helps you in resolving the issue.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by