Clear Filters
Clear Filters

"Error: Unable to find installation candidates for these products" using ./mpm in command line terminal

11 views (last 30 days)
I managed to install MATLAB R2023b using ./mpm in command line terminal on my ubuntu machine. However, I am having problems with installing MATLAB_5G_Toolbox and other associated toolboxes (Communication_Toolbox, Signal_Blocks, Singal_Toolbox) using the same method.
The license is a Designate Computer, and when I open Matlab R2023 and run license, it recognises the correct license number for this license, so in terms of license it should be good.
However, when I close Matlab and run
'./mpm install --release=R2023b --destination /usr/local/MATLAB --products MATLAB_5G_Toolbox'
it complains 'Error: Unable to find installation candidates for these products: MATLAB_5G_Toolbox'. This happens to the other three toolboxes too. Even with 'sudo', it still doesn't work.
I expect when I run ./mpm, the programme fetches the installation from the internet and install the toolbox. But it does't work.
What's the problem here?
BR, Taihai

Answers (1)

Kojiro Saito
Kojiro Saito on 14 Feb 2024
The command should be the following.
'./mpm install --release=R2023b --destination /usr/local/MATLAB --products MATLAB 5G_Toolbox Communications_Toolbox DSP_System_Toolbox Signal_Processing_Toolbox'
You can find the product names in mpm_input_r2023b.txt.
Kojiro Saito
Kojiro Saito on 14 Feb 2024
Currently, mpm command does not support uninstall. So, you can delete directory using Linux command.
I've found the hint from here.
The following remove /usr/local/MATLAB/* except for /usr/local/MATLAB/R2022b directory.
cd /usr/local/MATLAB
find ./ -mindepth 1 ! -regex '^./R2022b\(/.*\)?' -delete
Then, you can install with mpm again.
About matlab command, I think it is because of PATH environment. After reinstalling R2023b, you need to add MATLAB path to PATH.
For example of bash, the following command would work.
export PATH=$PATH:/usr/local/MATLAB/R2023b/bin
If you want to keep this environment variable, you need to add ~/.bashrc or some file.

Sign in to comment.


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




Community Treasure Hunt

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

Start Hunting!