Can't install any toolboxes because can't write to /usr/local/MATLAB/R2017
Afficher commentaires plus anciens
I have not been able to install any toolboxes because the installation runs into PermissionDenieds on /usr/local/MATLAB/R2017/. I've included a logfile /tmp/mathworks_pjhellemn.log below which includes the error. I tried running Matlab with sudo, but my license is only for user pjhellemn and not for root, so Matlab would exit with a License Manager Error -9. I also ran "sudo chmod -R 777 *" at /usr/local/MATLAB/ before trying to install the toolbox, but then ended up getting "java.io.IOException: Error 1 setting permissions for /usr/local/MATLAB/R2017a/toolbox/local/pathdef.m. Operation not permitted" (also in the logfile below, but nearer to the bottom).
I am running Ubuntu 16.04. I'm using R2017 and trying to install the Bioinformatics toolbox right now, but I've had this same issue with R2016 and the Statistics and Machine Learning Toolbox. I am installing Matlab by downloading the zip, extracting it, and then running "sudo ./install" in the proper directory, and using all defaults in the installation.
Since trying "chmod 777" I have deleted the Matlab installation directory ("sudo rm -rf /usr/local/MATLAB/") and freshly installed, but am running into the same problems.
How do I get around these permission / licensing errors?
Log file:
(Apr 10, 2017 21:04:42) ##################################################################
(Apr 10, 2017 21:04:42) #
(Apr 10, 2017 21:04:42) # Today's Date:
(Apr 10, 2017 21:04:42) Mon Apr 10 21:04:42 CDT 2017
(Apr 10, 2017 21:04:42)
(Apr 10, 2017 21:04:42) System Info
(Apr 10, 2017 21:04:42) OS: Linux 4.4.0-72-generic
(Apr 10, 2017 21:04:42) Arch: amd64
(Apr 10, 2017 21:04:42) Data Model: 64
(Apr 10, 2017 21:04:42) Language: en
(Apr 10, 2017 21:04:42) Java Vendor: Oracle Corporation
(Apr 10, 2017 21:04:42) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 10, 2017 21:04:42) Java Version: 1.7.0_60
(Apr 10, 2017 21:04:42) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 10, 2017 21:04:42) Java Class Path: Skipped
(Apr 10, 2017 21:04:42) User Name: pjhellemn
(Apr 10, 2017 21:04:42) Current Directory: /usr/local/MATLAB/R2017a/bin
(Apr 10, 2017 21:04:42) Total upgradeable support packages found = 0
(Apr 11, 2017 04:26:37) ##################################################################
(Apr 11, 2017 04:26:37) #
(Apr 11, 2017 04:26:37) # Today's Date:
(Apr 11, 2017 04:26:37) Tue Apr 11 04:26:37 CDT 2017
(Apr 11, 2017 04:26:37)
(Apr 11, 2017 04:26:37) System Info
(Apr 11, 2017 04:26:37) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 04:26:37) Arch: amd64
(Apr 11, 2017 04:26:37) Data Model: 64
(Apr 11, 2017 04:26:37) Language: en
(Apr 11, 2017 04:26:37) Java Vendor: Oracle Corporation
(Apr 11, 2017 04:26:37) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 04:26:37) Java Version: 1.7.0_60
(Apr 11, 2017 04:26:37) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 04:26:37) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 04:26:37) User Name: pjhellemn
(Apr 11, 2017 04:26:37) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 04:26:37) Input arguments:
(Apr 11, 2017 04:26:37) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:26:37) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:26:37) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 04:26:37) addonMode trialMode
(Apr 11, 2017 04:26:37) entitlementId 3284817
(Apr 11, 2017 04:26:37) Argument not logged
(Apr 11, 2017 04:26:37) basecode.BI true
(Apr 11, 2017 04:26:37) standalone true
(Apr 11, 2017 04:26:38) Starting local product/component search in download directory
(Apr 11, 2017 04:26:38) Searching for archives...
(Apr 11, 2017 04:26:38) /home/pjhellemn/Downloads/MathWorks/R2017a/archives doesn't exist ... skipping.
(Apr 11, 2017 04:26:39) Archive search complete. 0 total files found.
(Apr 11, 2017 04:26:39) Completed local product/component search
(Apr 11, 2017 04:26:41) Contacting MathWorks
*(Apr 11, 2017 04:26:47) Error: Unable to write to
/usr/local/MATLAB/R2017a.*
Select a different folder.
(Apr 11, 2017 04:26:54) The installation is not complete. If you quit now, you will need to restart the installation from the beginning.
Do you really want to quit now?
(Apr 11, 2017 04:26:57) Exiting with status -1
(Apr 11, 2017 04:26:58) End - Unsuccessful.
(Apr 11, 2017 04:28:37) ##################################################################
(Apr 11, 2017 04:28:37) #
(Apr 11, 2017 04:28:37) # Today's Date:
(Apr 11, 2017 04:28:37) Tue Apr 11 04:28:37 CDT 2017
(Apr 11, 2017 04:28:37)
(Apr 11, 2017 04:28:37) System Info
(Apr 11, 2017 04:28:37) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 04:28:37) Arch: amd64
(Apr 11, 2017 04:28:37) Data Model: 64
(Apr 11, 2017 04:28:37) Language: en
(Apr 11, 2017 04:28:37) Java Vendor: Oracle Corporation
(Apr 11, 2017 04:28:37) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 04:28:37) Java Version: 1.7.0_60
(Apr 11, 2017 04:28:37) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 04:28:37) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 04:28:37) User Name: pjhellemn
(Apr 11, 2017 04:28:37) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 04:28:37) Input arguments:
(Apr 11, 2017 04:28:37) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:28:37) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:28:37) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 04:28:37) addonMode trialMode
(Apr 11, 2017 04:28:37) entitlementId 3284817
(Apr 11, 2017 04:28:37) Argument not logged
(Apr 11, 2017 04:28:37) basecode.BI true
(Apr 11, 2017 04:28:37) standalone true
(Apr 11, 2017 04:28:38) Starting local product/component search in download directory
(Apr 11, 2017 04:28:38) Searching for archives...
(Apr 11, 2017 04:28:38) /home/pjhellemn/Downloads/MathWorks/R2017a/archives doesn't exist ... skipping.
(Apr 11, 2017 04:28:38) Archive search complete. 0 total files found.
(Apr 11, 2017 04:28:38) Completed local product/component search
(Apr 11, 2017 04:28:41) Contacting MathWorks
(Apr 11, 2017 04:28:46) Error: Unable to write to
/usr/local/MATLAB/R2017a.
Select a different folder.
(Apr 11, 2017 04:29:55) Error: Unable to write to
/usr/local/MATLAB/R2017a.
Select a different folder.
(Apr 11, 2017 04:30:19) Retrieving license data
(Apr 11, 2017 04:30:21) Retrieving product data
(Apr 11, 2017 04:30:23) Verifying account information
(Apr 11, 2017 04:30:26) Completed local product/component search
(Apr 11, 2017 04:30:34) Confirmation Text:
Requested Products:
Bioinformatics Toolbox 4.8
Required Products:
MATLAB 9.2
Statistics and Machine Learning Toolbox 11.1
Required products are automatically included in your trial.
Installation folder:
/usr/local/MATLAB/R2017a
Download Size: 526 MB
Installation Size: 1,301 MB
(Apr 11, 2017 04:30:39) Starting Download: Bioinformatics Toolbox 4.8 : 179,886,072 bytes
(Apr 11, 2017 04:31:17) Starting Download: Statistics and Machine Learning Toolbox 11.1 : 372,455,664 bytes
(Apr 11, 2017 04:32:33) Installing Product: Bioinformatics Toolbox 4.8
*(Apr 11, 2017 04:32:33) java.io.FileNotFoundException: /usr/local/MATLAB/R2017a/bin/glnxa64/libAffymetrixSDK.so (Permission denied)*
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at com.mathworks.instutil.FileIO.copyToFileFromStream(FileIO.java:491)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:166)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:157)
at com.mathworks.install.archive.zip.commonscompress.ArchiveEntryExtractorImpl.extract(ArchiveEntryExtractorImpl.java:37)
at com.mathworks.install.archive.zip.commonscompress.CopyInputStreamToTempZipFileExtractor.extractEntry(CopyInputStreamToTempZipFileExtractor.java:79)
at com.mathworks.install.archive.zip.commonscompress.CopyInputStreamToTempZipFileExtractor.extract(CopyInputStreamToTempZipFileExtractor.java:46)
at com.mathworks.install.archive.DecodeArchiveInputStreamExtractor.extract(DecodeArchiveInputStreamExtractor.java:34)
at com.mathworks.install.input.ArchiveComponentSource.extract(ArchiveComponentSource.java:26)
at com.mathworks.install.InstallableComponentImpl.install(InstallableComponentImpl.java:102)
at com.mathworks.install.ComponentInstallerImpl.installComponent(ComponentInstallerImpl.java:99)
at com.mathworks.install.ComponentInstallerImpl.installComponents(ComponentInstallerImpl.java:58)
at com.mathworks.install.ProductInstallerImpl.installComponents(ProductInstallerImpl.java:225)
at com.mathworks.install.ProductInstallerImpl.installProduct(ProductInstallerImpl.java:211)
at com.mathworks.install.ProductInstallerImpl.installProducts(ProductInstallerImpl.java:88)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:113)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:74)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:24)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Apr 11, 2017 04:32:33) The following error was detected while installing 3p/affymetrixsdk_glnxa64:
*/usr/local/MATLAB/R2017a/bin/glnxa64/libAffymetrixSDK.so (Permission denied)*
Would you like to retry installing 3p/affymetrixsdk_glnxa64? If you press No, the installer will exit without completing the installation. More information can be found at /tmp/mathworks_pjhellemn.log
(Apr 11, 2017 04:38:25) Installing Product: Statistics and Machine Learning Toolbox 11.1
*(Apr 11, 2017 04:38:47) java.io.FileNotFoundException: /usr/local/MATLAB/R2017a/toolbox/local/pathdef.m (Permission denied)*
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at com.mathworks.instutil.FileIO.copyToFileFromStream(FileIO.java:491)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:166)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:157)
at com.mathworks.install.command.PathdefGeneratorCommand.writePathdefFile(PathdefGeneratorCommand.java:285)
at com.mathworks.install.command.PathdefGeneratorCommand.generatePathdef(PathdefGeneratorCommand.java:93)
at com.mathworks.install.command.PathdefGeneratorCommand.execute(PathdefGeneratorCommand.java:59)
at com.mathworks.matlabinstaller.AbstractMatlabInstallConfiguration$3.execute(AbstractMatlabInstallConfiguration.java:489)
at com.mathworks.install.InstallModule$1.installProducts(InstallModule.java:202)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:113)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:74)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:24)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Apr 11, 2017 04:38:47) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at /tmp/mathworks_pjhellemn.log
(Apr 11, 2017 04:40:26) Exiting with status -1
(Apr 11, 2017 04:40:27) End - Unsuccessful.
(Apr 11, 2017 04:42:03) ##################################################################
(Apr 11, 2017 04:42:03) #
(Apr 11, 2017 04:42:03) # Today's Date:
(Apr 11, 2017 04:42:03) Tue Apr 11 04:42:03 CDT 2017
(Apr 11, 2017 04:42:03)
(Apr 11, 2017 04:42:03) System Info
(Apr 11, 2017 04:42:03) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 04:42:03) Arch: amd64
(Apr 11, 2017 04:42:03) Data Model: 64
(Apr 11, 2017 04:42:03) Language: en
(Apr 11, 2017 04:42:03) Java Vendor: Oracle Corporation
(Apr 11, 2017 04:42:03) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 04:42:03) Java Version: 1.7.0_60
(Apr 11, 2017 04:42:03) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 04:42:03) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 04:42:03) User Name: pjhellemn
(Apr 11, 2017 04:42:03) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 04:42:03) Input arguments:
(Apr 11, 2017 04:42:03) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:42:03) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:42:03) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 04:42:03) addonMode trialMode
(Apr 11, 2017 04:42:03) entitlementId 3284817
(Apr 11, 2017 04:42:03) Argument not logged
(Apr 11, 2017 04:42:03) basecode.BI true
(Apr 11, 2017 04:42:03) standalone true
(Apr 11, 2017 04:42:04) Starting local product/component search in download directory
(Apr 11, 2017 04:42:04) Searching for archives...
(Apr 11, 2017 04:42:04) Reading /home/pjhellemn/Downloads/MathWorks/R2017a/archives
(Apr 11, 2017 04:42:04) 84 files found in /home/pjhellemn/Downloads/MathWorks/R2017a/archives
(Apr 11, 2017 04:42:04) Archive search complete. 84 total files found.
(Apr 11, 2017 04:42:04) Completed local product/component search
(Apr 11, 2017 04:42:08) Contacting MathWorks
(Apr 11, 2017 04:42:18) Retrieving license data
(Apr 11, 2017 04:42:19) Assembling product list...
(Apr 11, 2017 04:42:19) Retrieving product data
(Apr 11, 2017 04:42:20) Verifying account information
(Apr 11, 2017 04:42:26) Completed local product/component search
(Apr 11, 2017 04:42:29) Confirmation Text:
Requested Products:
Bioinformatics Toolbox 4.8
Required Products:
MATLAB 9.2
Statistics and Machine Learning Toolbox 11.1
Required products are automatically included in your trial.
Installation folder:
/usr/local/MATLAB/R2017a
Installation Size: 774 MB
(Apr 11, 2017 04:42:32) Installing Product: Bioinformatics Toolbox 4.8
(Apr 11, 2017 04:42:42) Installing Product: Statistics and Machine Learning Toolbox 11.1
*(Apr 11, 2017 04:42:59) java.io.FileNotFoundException: /usr/local/MATLAB/R2017a/toolbox/local/pathdef.m (Permission denied)*
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at com.mathworks.instutil.FileIO.copyToFileFromStream(FileIO.java:491)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:166)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:157)
at com.mathworks.install.command.PathdefGeneratorCommand.writePathdefFile(PathdefGeneratorCommand.java:285)
at com.mathworks.install.command.PathdefGeneratorCommand.generatePathdef(PathdefGeneratorCommand.java:93)
at com.mathworks.install.command.PathdefGeneratorCommand.execute(PathdefGeneratorCommand.java:59)
at com.mathworks.matlabinstaller.AbstractMatlabInstallConfiguration$3.execute(AbstractMatlabInstallConfiguration.java:489)
at com.mathworks.install.InstallModule$1.installProducts(InstallModule.java:202)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:113)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:74)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:24)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Apr 11, 2017 04:42:59) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at /tmp/mathworks_pjhellemn.log
(Apr 11, 2017 04:45:03) Exiting with status -1
(Apr 11, 2017 04:45:04) End - Unsuccessful.
(Apr 11, 2017 04:46:50) ##################################################################
(Apr 11, 2017 04:46:50) #
(Apr 11, 2017 04:46:50) # Today's Date:
(Apr 11, 2017 04:46:50) Tue Apr 11 04:46:50 CDT 2017
(Apr 11, 2017 04:46:50)
(Apr 11, 2017 04:46:50) System Info
(Apr 11, 2017 04:46:50) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 04:46:50) Arch: amd64
(Apr 11, 2017 04:46:50) Data Model: 64
(Apr 11, 2017 04:46:50) Language: en
(Apr 11, 2017 04:46:50) Java Vendor: Oracle Corporation
(Apr 11, 2017 04:46:50) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 04:46:50) Java Version: 1.7.0_60
(Apr 11, 2017 04:46:50) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 04:46:50) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 04:46:50) User Name: pjhellemn
(Apr 11, 2017 04:46:50) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 04:46:50) Input arguments:
(Apr 11, 2017 04:46:50) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:46:50) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 04:46:50) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 04:46:50) addonMode trialMode
(Apr 11, 2017 04:46:50) entitlementId 3284817
(Apr 11, 2017 04:46:50) Argument not logged
(Apr 11, 2017 04:46:50) basecode.BI true
(Apr 11, 2017 04:46:50) standalone true
(Apr 11, 2017 04:46:51) Starting local product/component search in download directory
(Apr 11, 2017 04:46:51) Searching for archives...
(Apr 11, 2017 04:46:51) Reading /home/pjhellemn/Downloads/MathWorks/R2017a/archives
(Apr 11, 2017 04:46:51) 84 files found in /home/pjhellemn/Downloads/MathWorks/R2017a/archives
(Apr 11, 2017 04:46:51) Archive search complete. 84 total files found.
(Apr 11, 2017 04:46:51) Completed local product/component search
(Apr 11, 2017 04:46:53) Contacting MathWorks
(Apr 11, 2017 04:47:01) Retrieving license data
(Apr 11, 2017 04:47:02) Retrieving product data
(Apr 11, 2017 04:47:03) Verifying account information
(Apr 11, 2017 04:47:05) Completed local product/component search
(Apr 11, 2017 04:47:08) Confirmation Text:
Requested Products:
Bioinformatics Toolbox 4.8
Required Products:
MATLAB 9.2
Statistics and Machine Learning Toolbox 11.1
Required products are automatically included in your trial.
Installation folder:
/usr/local/MATLAB/R2017a
Installation Size: 774 MB
(Apr 11, 2017 04:47:14) Installing Product: Bioinformatics Toolbox 4.8
(Apr 11, 2017 04:47:21) Installing Product: Statistics and Machine Learning Toolbox 11.1
*(Apr 11, 2017 04:47:36) java.io.IOException: Error 1 setting permissions for /usr/local/MATLAB/R2017a/toolbox/local/pathdef.m. Operation not permitted*
at com.mathworks.instutil.FilePermissionsUtil.setUnixFilePerms(Native Method)
at com.mathworks.instutil.FilePermissionsUtil.setFilePermissions(FilePermissionsUtil.java:263)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:168)
at com.mathworks.instutil.FileIO.createFileFromStream(FileIO.java:157)
at com.mathworks.install.command.PathdefGeneratorCommand.writePathdefFile(PathdefGeneratorCommand.java:285)
at com.mathworks.install.command.PathdefGeneratorCommand.generatePathdef(PathdefGeneratorCommand.java:93)
at com.mathworks.install.command.PathdefGeneratorCommand.execute(PathdefGeneratorCommand.java:59)
at com.mathworks.matlabinstaller.AbstractMatlabInstallConfiguration$3.execute(AbstractMatlabInstallConfiguration.java:489)
at com.mathworks.install.InstallModule$1.installProducts(InstallModule.java:202)
at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:113)
at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46)
at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:74)
at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:24)
at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(Apr 11, 2017 04:47:36) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at /tmp/mathworks_pjhellemn.log
(Apr 11, 2017 04:48:24) Exiting with status -1
(Apr 11, 2017 04:48:25) End - Unsuccessful.
(Apr 11, 2017 12:32:00) ##################################################################
(Apr 11, 2017 12:32:00) #
(Apr 11, 2017 12:32:00) # Today's Date:
(Apr 11, 2017 12:32:00) Tue Apr 11 12:32:00 CDT 2017
(Apr 11, 2017 12:32:00)
(Apr 11, 2017 12:32:00) System Info
(Apr 11, 2017 12:32:00) OS: Linux 4.4.0-72-generic
(Apr 11, 2017 12:32:00) Arch: amd64
(Apr 11, 2017 12:32:00) Data Model: 64
(Apr 11, 2017 12:32:00) Language: en
(Apr 11, 2017 12:32:00) Java Vendor: Oracle Corporation
(Apr 11, 2017 12:32:00) Java Home: /usr/local/MATLAB/R2017a/sys/java/jre/glnxa64/jre
(Apr 11, 2017 12:32:00) Java Version: 1.7.0_60
(Apr 11, 2017 12:32:00) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Apr 11, 2017 12:32:00) Java Class Path: /usr/local/MATLAB/R2017a/java/config/trialsinstaller/pathlist.jar
(Apr 11, 2017 12:32:00) User Name: pjhellemn
(Apr 11, 2017 12:32:00) Current Directory: /home/pjhellemn/pjh5/stat450/MLSiml/jimmy/demo_GMKL
(Apr 11, 2017 12:32:00) Input arguments:
(Apr 11, 2017 12:32:00) root /usr/local/MATLAB/R2017a
(Apr 11, 2017 12:32:00) libdir /usr/local/MATLAB/R2017a
(Apr 11, 2017 12:32:00) matlabargs "-r "matlab.internal.addons.cdAndShowAddon('BI')""
(Apr 11, 2017 12:32:00) addonMode trialMode
(Apr 11, 2017 12:32:00) entitlementId 3284817
(Apr 11, 2017 12:32:00) Argument not logged
(Apr 11, 2017 12:32:00) basecode.BI true
(Apr 11, 2017 12:32:00) standalone true
(Apr 11, 2017 12:32:01) Starting local product/component search in download directory
(Apr 11, 2017 12:32:01) Searching for archives...
(Apr 11, 2017 12:32:01) /home/pjhellemn/Downloads/MathWorks/R2017a/archives doesn't exist ... skipping.
(Apr 11, 2017 12:32:01) Archive search complete. 0 total files found.
(Apr 11, 2017 12:32:01) Completed local product/component search
(Apr 11, 2017 12:32:03) Contacting MathWorks
(Apr 11, 2017 12:32:08) Error: Unable to write to
/usr/local/MATLAB/R2017a.
Select a different folder.
(Apr 11, 2017 12:32:15) The installation is not complete. If you quit now, you will need to restart the installation from the beginning.
Do you really want to quit now?
(Apr 11, 2017 12:32:16) Exiting with status -1
(Apr 11, 2017 12:32:17) End - Unsuccessful.
Réponses (9)
/path/to/installation/directory is the path to your matlab installation if you type matlabroot the matlab terminal it will tell you e.g

sudo chown -R $LOGNAME: /usr/local/MATLAB/R2017b
change the path accordingly to matlabroot's output
Thats it
56 commentaires
Teo Protoulis
le 2 Avr 2018
Thank you! Just doing this solved my issue completely.
Maxandre Jacqueline
le 10 Nov 2018
Thank you! This solved my issue too!
Xu Ma
le 3 Déc 2018
Thank you very much. It helps me a lot.
Juan Antonio Barragan
le 5 Août 2019
Thank You, solved all the problems I was having
Pradheep Krishna M P
le 2 Oct 2019
Thanks! For me in ubuntu 16.04, it worked without the colon inbetween logname and /usr
sudo chown -R $LOGNAME /usr/local/MATLAB/R2019a
Thomas Dehaeze
le 15 Oct 2019
Thanks, this worked perfectly
Gordon North Piegan
le 7 Nov 2019
I'm having the problem still
Sarita Hedaya
le 13 Fév 2020
worked perfectly on 18.04
David Oort Alonso
le 16 Fév 2020
worked on 18.04
Kai Wang
le 17 Fév 2020
problem solved, bionic r2019b. Thank you.
Rakesh Halder
le 10 Mar 2020
Worked with R2019B, thanks.
Darya Tikhonova
le 11 Mar 2020
Worked with 2018b!Thank you very much!!!!!!
Stefan Schweng
le 26 Mar 2020
Thaaanks! Also worked for MacOS (R2019b)
Fernando Martins
le 15 Avr 2020
works pesfectly with 2019b! Thanks
Shishir A S
le 28 Avr 2020
Works on R2020a as well, thanks!
Xin Zhao
le 4 Mai 2020
Thanks, works great with R2020a
nicola busato
le 9 Mai 2020
work like a charm
john
le 20 Juin 2020
how can i do this on windows 10 can someone please help?
Yannis He
le 27 Sep 2020
Works on R2020b, Thanks!
Miguel Murillo
le 25 Nov 2020
Cómo
Matteo Totaro
le 9 Déc 2020
Worked on Ubuntu 20.04 with Matlab R2020b!
Thanks a lot
seongheon kim
le 18 Déc 2020
you are the best !
it worked on R2020b
Carlo Brignoli
le 22 Déc 2020
It works also for me on ubuntu 20.04 with Matlab 2020b.
Thanks a lot.
Natesh Tyagi
le 5 Mar 2021
Worked like a charm. Thanks!
Zuhui Wang
le 8 Mar 2021
WORKED ON 2020b, great job.
Jordi Segura
le 16 Mar 2021
worked on 2021 :)
S Rout
le 24 Mar 2021
Worked on Ubuntu 20.10 with version 2020b! Thanks so much.
Sanchit sharma
le 25 Mar 2021
worked great thanks
Victor Olivero
le 31 Mar 2021
For me work this: sudo chmod -R o+rw /usr/local/MATLAB/R2020b
Ubuntu 20.04.2 LTS
msilvav
le 31 Mar 2021
This worked for me!
I'm using Ubuntu 18.04 and Matlab R2020b.
Thanks!
Pasquale Marra
le 9 Avr 2021
Also for me, i'm using Ubuntu 20.04 and Matlab R2021a
M A Muktadir
le 24 Juin 2021
it solved my probelm, my version is R2019a
liu
le 1 Juil 2021
It solved my problem too, my version is R2021a
Shirish BOSE
le 25 Juil 2021
It worked Version R2021a.
Mohd Al Sumaim
le 9 Août 2021
Thank you so much, it worked
Ada Görgün
le 14 Sep 2021
Thank you so much, it worked for me too
amir-nejati
le 22 Sep 2021
thanks a lot it works
vladimir bratasiuk
le 3 Déc 2021
thank you it helps me
SRIKRISHNA NEELAKANTAN
le 25 Jan 2022
it helped me as well tysm
Alma Herrera
le 15 Fév 2022
great! worked for matlab 2021b on ubuntu 18.04
Pierre Klintefors
le 21 Fév 2022
Thank you! worked for matlab 2021b on ubuntu 20.04
Srivatsa Grama Satyanarayana
le 8 Mar 2022
This Worked, MATLAB 2020b on Ubuntu 20.04
Jeano Joseph
le 27 Mar 2022
Modifié(e) : Jeano Joseph
le 27 Mar 2022
Works. Can confirm for Ubuntu 20, MATLAB R2020a
Philip Mccoll Albuja
le 16 Avr 2022
yo! works like a charm Ubuntu 20.04 and MatLab R2022a
Sreya Gadepally
le 2 Mai 2022
Thanks a lot! It worked!
Carlos
le 21 Sep 2022
This worked, MATLAB R2022A on ubuntu 22.04
ALESSANDRO
le 22 Sep 2022
Thank you! It worked
MATLAB R2022B on Ubuntu 22.04
Kavita Varma
le 20 Oct 2022
This works!
Caroline Haoud
le 24 Oct 2022
when i type matlabroot, i get the following output in my terminal:
matlabroot: command not found
Walter Roberson
le 24 Oct 2022
matlabroot is a MATLAB command that would hae to be executed inside MATLAB. If you are operating inside MATLAB but the command fails, then you likely need to reinstall MATLAB.
matlabroot reports back the directory that MATLAB was installed into. If you are operating outside of MATLAB, there might be other ways to determine that information.
Jim Jiancong Huang
le 15 Déc 2023
It work on ubuntu 20
Qian-Qian
le 3 Avr 2024
Thank you! it work on ubuntu 22.
Xin Niu
le 30 Avr 2024
It works on Mac OS 13.5.1 (22G90) too.
Ridwanullah Adeyinka
le 2 Août 2024
Modifié(e) : Ridwanullah Adeyinka
le 2 Août 2024
Thank you! It works on Ubuntu 20 and MATLAB R2021b.
迪
le 13 Nov 2024
Thanks! It solves my problem.
菪
le 21 Nov 2024
Thanks! It works for me on Ubuntu 24.04.1 LTS and MATLAB R2024b.
Avinash Singh
le 19 Mai 2017
Modifié(e) : Avinash Singh
le 19 Mai 2017
44 votes
Had a similar problem. Try Running it as a superuser: sudo Matlab
Then run the add on manager and download the ones you want.
If this does not work, you can try changing permissions of the installation folder using
sudo chmod -R o+rw /usr/local/Matlab/R2017X
(careful with this step, reading about permissions in Ubuntu recommended)
15 commentaires
JoanManBar
le 30 Mar 2018
This helped me. Thank you very much!
Long Wang
le 16 Mar 2020
This helped me, thank you!
Karim Ghezali
le 30 Avr 2020
this helped me too, thank you !
for the last version of matlab it's :
sudo chmod -R o+rw /usr/local/MATLAB/R2020a
Caio Gomes
le 6 Mai 2020
This helped me a lot. Thank you!
Ulisses Gtz
le 4 Juin 2020
This helped me too, thank you!!
Juan Sebastian
le 27 Nov 2020
Modifié(e) : Juan Sebastian
le 27 Nov 2020
It worked, thanks!
Wele Gedara Chaminda Bandara
le 14 Juin 2021
Thank you, this worked for me.
Xuanwei Zhu
le 19 Juil 2021
Thank you for your help!
Abhijit Dey
le 17 Août 2021
Thank you!! it worked for me.
Utkarsh Ranjan
le 29 Août 2021
Thanks it worked
Walter Nieminen
le 6 Sep 2022
Thanks. The chmod worked with Ubuntu 20.04.5 LTS and MATLAB R2022a
fernandes_420
le 4 Déc 2022
Thanks a lot! Worked on Ubuntu 22.04.1 LTS and Matlab R2020b
Rahul
le 9 Déc 2022
Thanks a lot. It worked for me too on Ubuntu 22.04.1 LTS and Matlab R2022b.
Jerusalem Teklu
le 13 Fév 2023
Thanks a lot! It works for me as well.
S Ashish
le 2 Juin 2023
THANKS A TON !!!!!!!!!!!!!!!!!! IT WORKED LIKE A CHARM. YOU ARE A LIFE SAVER. APPRECIATE IT !!! GOD BLESS !!!
Levi Vande Kamp
le 18 Oct 2021
18 votes
If you want to avoid messing with folder permissions, here's what worked for me:
- Add an addon like normal until you get the permission error.
- Open a terminal and run "ps -eo cmd | grep AddOnProductInstaller | head -n 1"
- You should see AddOnProductInstaller from your installation dir with (very) long cmd line arguments.
- Run this as sudo
10 commentaires
Chang Chang
le 17 Nov 2021
it doesn't work. the terminal will get stuck
Levi Vande Kamp
le 17 Nov 2021
Could you be more descriptive?
hongbo wang
le 24 Nov 2021
Nice job! It works and doesn't effect any other setting. Genious idea!!!
Averil Ignatious
le 2 Déc 2021
Thank you
Felipe Galarza Jimenez
le 14 Fév 2022
This is the only way I could make it to work. Thanks!
Ross Lawrence
le 12 Avr 2022
Works on Ubuntu 20.04 4 LTS and MATLAB R2020b
Edoardo
le 25 Jan 2023
Manually changing permissions for me worked too. As simple as it is. Ubuntu 22.04 LTS MATLAB R2022b.
Ian
le 4 Août 2023
2023a update: AddOnProductInstaller has been renamed to AddOnInstaller
updated command: `ps -eo cmd | grep AddOnInstaller | head -n 1`
Silvia Talavera Marcos
le 7 Nov 2023
Thanks a lot guys
Phil McMillan
le 20 Nov 2023
This is a great method Levi.
Luigi Avallone
le 21 Mar 2020
9 votes
I have the same problem with Ubuntu 19.04 and matlab R2019b, for the installation I succed using sudo ./install instead of only ./install. But becasue the add-ones are installed trough matlab and not terminal I'm not able to use the sudo command. I tried all the solution proposed in this page but they weren't useful for me.
What should I do?
7 commentaires
Wahab Shah
le 27 Mai 2020
Type the following in the terminal:
sudo chmod -R o+rw /usr/local/MATLAB/R2020a
replace 'R2020a' with whatever version you are using.
Luigi Avallone
le 27 Mai 2020
thanks, it worked
Felipe Morales Torres
le 11 Fév 2022
This worked for me, thank you!
Ali Moussa
le 26 Sep 2022
Brilliant, worked for me on Arch Linux, thanks!
Lisseth Abigail
le 16 Fév 2023
this is the only one that worked for me, I'm in 2022B matlab on pop_os! (ubuntu based) thank you!
Ioan
le 27 Juin 2023
thanks a lot it worked
Warren
le 17 Juil 2023
worked great!
Nupur
le 28 Nov 2023
If you are running the Matlab in container and if this issue is persistent then this is how I solved the problem.
sudo chmod -R o+rw /opt/matlab/R2022b
sudo chown -R matlab:matlab /opt/matlab/R2022b
Then restart the Matlab and hope the problem is solved.
1 commentaire
Aqsa Hassan
le 7 Déc 2023
Thanks, it worked for me!
Rollin Baker
le 14 Avr 2017
1 vote
Hi Paul,
For any installation issues, you will want to contact MathWorks Technical Support. They will likely be able to help resolve this faster than waiting for a response on this forum!
Anubhav Halder
le 10 Jan 2020
0 votes
Thanks all of you this discussion helped me a lot too.. same problem I had too
Sreeshma K
le 2 Mar 2022
0 votes
I also have similair problem. I installed matlabR2021b in ubuntu 21.04. But instead of sudo ./install just ./install worked for me. I installed MATLAB in home folder. But when I type matlab in terminal it is showing that matlab command not found. I have tried all of the above solutions and nothing worked for me.Plz help me.
3 commentaires
Levi Vande Kamp
le 3 Mar 2022
If I understand your problem, it doesn't seem to be related to installing toolboxes. You just want to start MATLAB by running it from the terminal?
When you type a command into the terminal, it looks for a program in one of the folders in your PATH environment variable. If you want to run MATLAB from the terminal, you will have to add a symbolic link to one of these folders if the installer did not. For example, if MATLAB installed in ~/.local/
ln -s ~/.local/MATLAB/R2021b/bin/matlab ~/.local/bin/matlab
would hopefully get you what you want.
Hasan
le 10 Déc 2022
I recommend that you try installing toolboxes with administrative privileges. For instance:
sudo /usr/local/matlab/R2020a/bin/matlab
Madalena Ferreira
le 4 Avr 2024
this worked for me, thank you !!
Walter Nieminen
le 6 Sep 2022
0 votes
So I had this battle today with ubuntu 20.04 and matlabR2022a. Tried everythin I found searching the internet but nothing seemed to work.
I ended up installing the needed toolboxes with the matlab installer
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!