How to install "mpm" command?

Hello,
The Matlab R2023a was successfully installed on Debian 12 and its documents was downloads too. Follow the instruction, the command below didn't run successfully as "mpm: command not found"
mpm install-doc --matlabroot=/home/jomalley/matlab
Error using mpm
This command is not supported when the mpm feature is not enabled. Start MATLAB with the -mpm command line switch.

Antworten (2)

Kojiro Saito
Kojiro Saito am 3 Aug. 2023
Bearbeitet: Kojiro Saito am 3 Aug. 2023

0 Stimmen

There are two MPM, one is in MATLAB installation (with matlab -mpm) and the other is from GitHub. I found that mpm install-doc does not work in MATLAB and works in GitHub version.
For detail, this GitHub page is helpful.
You need the download MPM in Linux terminal.
wget https://www.mathworks.com/mpm/glnxa64/mpm
chmod +x mpm
Then, you need to download docmentation ISO image from here and mount the ISO.
Then, run mpm install-doc from Linux terminal.
./mpm install-doc --matlabroot=/home/username/matlab --source=/path/to/source

6 Kommentare

Then run this in the Linux terminal?
mpm install-doc --matlabroot=/home/jomalley/matlab
Kojiro Saito
Kojiro Saito am 3 Aug. 2023
Then, run the above mpm command in MATLAB's Command Window.
Error using mpm
Unrecognized function or variable 'Error'.
Invalid command: 'install-doc'.
Why should we run this command in Matlab, but from the link, we should run it in the terminal.
Kojiro Saito
Kojiro Saito am 3 Aug. 2023
I've updated the answer.
xingxingcui
xingxingcui am 18 Sep. 2023
xingxingcui
xingxingcui am 18 Sep. 2023
Bearbeitet: xingxingcui am 8 Mär. 2024
Upon investigation, mpm is only suitable for linux terminal command line, not for windows installation
------2024 update-----
good job,now MPM support operating system: Linux | Windows | macOS

Melden Sie sich an, um zu kommentieren.

xingxingcui
xingxingcui am 8 Mär. 2024

0 Stimmen

Good job,now MPM support operating system: Linux | Windows | macOS
Note: The "mountedDocImage/bin/arch" in the offline ISO documentation image already contains the MPM executable, so there is no need to download MPM again.
Once you have downloaded the offline document ISO image, follow the steps below.
For example:
Windows:
cd mountedDocImage/bin/arch
.\mpm install-doc --matlabroot="C:\Program Files\MATLAB\R2024a" --destination="C:\Program Files\MATLAB\R2024a"
Reference:

2 Kommentare

appfr
appfr am 25 Mär. 2024
What does mpm exactly do that could cause "access denied" problems (I tried the admin mode command prompt to no avail)? I remember I had similar trouble with R2023(a/b) and somehow it ended up working if I waited with the ISO loaded as virtual CD for a few hours then retried the command..
xingxingcui
xingxingcui am 30 Mär. 2024
Is destination set to any other directory with write access?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Install Products finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023a

Tags

Gefragt:

am 3 Aug. 2023

Kommentiert:

am 30 Mär. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by