"Error: Unable to find installation candidates for these products" using ./mpm in command line terminal
14 次查看(过去 30 天)
显示 更早的评论
Hello,
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
0 个评论
回答(1 个)
Kojiro Saito
2024-2-14
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'
4 个评论
Kojiro Saito
2024-2-14
Currently, mpm command does not support uninstall. So, you can delete directory using Linux command.
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!