Error: Failed to create folder (/usr/loca​l/MATLAB/M​ATLAB_Runt​ime/v91)

Hi,
I ran the following command to install the matlab runtime on a network mounted drive
./install -mode silent -agreeToLicense yes
Output:
Preparing installation files ...
cp: cannot stat `/nw/matlab-runtime/help/*': No such file or directory
Installing ...
(Jan 11, 2018 06:36:08) ##################################################################
(Jan 11, 2018 06:36:08) #
(Jan 11, 2018 06:36:08) # Today's Date:
(Jan 11, 2018 06:36:08) Thu Jan 11 06:36:08 PST 2018
(Jan 11, 2018 06:36:08)
(Jan 11, 2018 06:36:08) System Info
(Jan 11, 2018 06:36:08) OS: Linux 2.6.32-279.19.1.el6.x86_64
(Jan 11, 2018 06:36:08) Arch: amd64
(Jan 11, 2018 06:36:08) Data Model: 64
(Jan 11, 2018 06:36:08) Language: en
(Jan 11, 2018 06:36:08) Java Vendor: Oracle Corporation
(Jan 11, 2018 06:36:08) Java Home: /tmp/mathworks_10300/sys/java/jre/glnxa64/jre
(Jan 11, 2018 06:36:08) Java Version: 1.7.0_60
(Jan 11, 2018 06:36:08) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Jan 11, 2018 06:36:08) Java Class Path: /tmp/mathworks_10300/java/config/installagent/pathlist.jar
(Jan 11, 2018 06:36:08) User Name: user
(Jan 11, 2018 06:36:08) Current Directory: /tmp/mathworks_10300
(Jan 11, 2018 06:36:08) Input arguments:
(Jan 11, 2018 06:36:08) root /nw/matlab-runtime
(Jan 11, 2018 06:36:08) libdir /tmp/mathworks_10300
(Jan 11, 2018 06:36:08) mode silent
(Jan 11, 2018 06:36:08) agreeToLicense yes
(Jan 11, 2018 06:36:08) standalone true
(Jan 11, 2018 06:36:08) connectionMode OFFLINE_ONLY
(Jan 11, 2018 06:36:09) Starting local product/component search in download directory
(Jan 11, 2018 06:36:09) Searching for archives...
(Jan 11, 2018 06:36:09) Reading /nw/matlab-runtime/archives
(Jan 11, 2018 06:36:09) Assembling product list...
(Jan 11, 2018 06:36:09) 1573 files found in /nw/matlab-runtime/archives
(Jan 11, 2018 06:36:09) Reading /nw/matlab-runtime
(Jan 11, 2018 06:36:09) 9 files found in /nw/matlab-runtime
(Jan 11, 2018 06:36:09) Archive search complete. 1582 total files found.
(Jan 11, 2018 06:36:24) Completed local product/component search
(Jan 11, 2018 06:36:24) Error: Failed to create folder (/usr/local/MATLAB/MATLAB_Runtime/v91).
(Jan 11, 2018 06:36:24) Exiting with status -2
(Jan 11, 2018 06:36:24) End - Unsuccessful.
Finished
On this box, I do not have root access which means I can not write into "/usr/local/"
Is there a way I can install the runtime without root access?
Regards

6 件のコメント

Sambit Tripathy
Sambit Tripathy 2018 年 1 月 11 日
There is a section which talks about installing the runtime as a non-admin user, but this is applicable for Windows only.
Deidre Mead
Deidre Mead 2018 年 3 月 21 日
I am having a similar problem with installing v91. Is there a way to pass a -tmpdir I can write to into the MCR installer? Installation needs to occur on a Linux box. The installer is defaulting to /tmp, which is locked by security.
Sambit Tripathy
Sambit Tripathy 2018 年 3 月 22 日
please try this command and put all configurations to your installer_input.txt
./install -inputFile /home/<user>/software/matlab/R20XXx_glnxa64_dvd1/installer_input.txt
Please note
  • Sometimes on mounted drives "noexec" flag is enabled, ensure files are present on a drive where "exec" command should work
  • You can specify -tmpdir along with -inputFile
I could install Matlab on a Linux machine with "silent" mode
Nicola Burger
Nicola Burger 2020 年 9 月 19 日
came across the same problem, what solved it for me was to give sudo permission while running the installer shell script:
sudo ./install
Ajinkya Ambatwar
Ajinkya Ambatwar 2022 年 7 月 2 日
For the R2022a version, "sudo ./install" is not doing anything at all, I mean the install window is also not opening
Narendhiran
Narendhiran 2022 年 7 月 15 日
編集済み: Narendhiran 2022 年 7 月 15 日
For the R2022a version, "sudo ./install" is not doing anything at all, I mean the install window is also not opening
Same issue! I am facing
Answers Here!!
xhost +SI:localuser:root
sudo ./install

サインインしてコメントする。

回答 (3 件)

XIN HE
XIN HE 2019 年 5 月 23 日

5 投票

I got the same problem. I got it fixed out with the following
sudo ./install -mode silent -agreeToLicense yes
Then I got it installed sucessfully.

4 件のコメント

Antonio Avilix Hernandez
Antonio Avilix Hernandez 2020 年 2 月 13 日
thaks
Sisir Jena
Sisir Jena 2020 年 7 月 22 日
Thank You
Juan Manuel Martinez Villalobos
Juan Manuel Martinez Villalobos 2020 年 7 月 24 日
Thanks!
Rajendra P
Rajendra P 2026 年 3 月 28 日 10:35
It worked. Thanks

サインインしてコメントする。

DANIEL LOPEZ AIRES
DANIEL LOPEZ AIRES 2020 年 3 月 25 日

5 投票

The problem is that to create folders on/usr, you ahve to be a superuser, so if you do sudo at the begining, you will install it. I have just had the issue, and have solved by typing sudo at the begining :)

4 件のコメント

Juan Manuel Martinez Villalobos
Juan Manuel Martinez Villalobos 2020 年 7 月 24 日
But whey you say "at the beggining" you mean exactly what
i.e.
?
/sh install
?
Aditya Maharana
Aditya Maharana 2020 年 8 月 16 日
sudo ./install
richard worley
richard worley 2022 年 2 月 7 日
sudo ./install wouldn't work for me. I had to:
xhost +SI:localuser:root
sudo ./install
Maria Tsampazi
Maria Tsampazi 2022 年 3 月 8 日
worked for me too
thanks for sharing!

サインインしてコメントする。

Xeno Shen
Xeno Shen 2022 年 11 月 3 日

0 投票

Hi, I have the same problem too. I don't have the root access, is there any way that could install the matlabmcr in local usr directory?
Regards

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2018 年 1 月 11 日

コメント済み:

2026 年 3 月 28 日 10:35

Community Treasure Hunt

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

Start Hunting!

Translated by