Can't install any toolboxes because can't write to /usr/local/MATLAB/R2017
显示 更早的评论
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.
回答(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 个评论
Teo Protoulis
2018-4-2
Thank you! Just doing this solved my issue completely.
Maxandre Jacqueline
2018-11-10
Thank you! This solved my issue too!
Xu Ma
2018-12-3
Thank you very much. It helps me a lot.
Juan Antonio Barragan
2019-8-5
Thank You, solved all the problems I was having
Pradheep Krishna M P
2019-10-2
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
2019-10-15
Thanks, this worked perfectly
Gordon North Piegan
2019-11-7
I'm having the problem still
Sarita Hedaya
2020-2-13
worked perfectly on 18.04
David Oort Alonso
2020-2-16
worked on 18.04
Kai Wang
2020-2-17
problem solved, bionic r2019b. Thank you.
Rakesh Halder
2020-3-10
Worked with R2019B, thanks.
Darya Tikhonova
2020-3-11
Worked with 2018b!Thank you very much!!!!!!
Stefan Schweng
2020-3-26
Thaaanks! Also worked for MacOS (R2019b)
Fernando Martins
2020-4-15
works pesfectly with 2019b! Thanks
Shishir A S
2020-4-28
Works on R2020a as well, thanks!
Xin Zhao
2020-5-4
Thanks, works great with R2020a
nicola busato
2020-5-9
work like a charm
john
2020-6-20
how can i do this on windows 10 can someone please help?
Yannis He
2020-9-27
Works on R2020b, Thanks!
Miguel Murillo
2020-11-25
Cómo
Matteo Totaro
2020-12-9
Worked on Ubuntu 20.04 with Matlab R2020b!
Thanks a lot
seongheon kim
2020-12-18
you are the best !
it worked on R2020b
Carlo Brignoli
2020-12-22
It works also for me on ubuntu 20.04 with Matlab 2020b.
Thanks a lot.
Natesh Tyagi
2021-3-5
Worked like a charm. Thanks!
Zuhui Wang
2021-3-8
WORKED ON 2020b, great job.
Jordi Segura
2021-3-16
worked on 2021 :)
S Rout
2021-3-24
Worked on Ubuntu 20.10 with version 2020b! Thanks so much.
Sanchit sharma
2021-3-25
worked great thanks
Victor Olivero
2021-3-31
For me work this: sudo chmod -R o+rw /usr/local/MATLAB/R2020b
Ubuntu 20.04.2 LTS
msilvav
2021-3-31
This worked for me!
I'm using Ubuntu 18.04 and Matlab R2020b.
Thanks!
Pasquale Marra
2021-4-9
Also for me, i'm using Ubuntu 20.04 and Matlab R2021a
M A Muktadir
2021-6-24
it solved my probelm, my version is R2019a
liu
2021-7-1
It solved my problem too, my version is R2021a
Shirish BOSE
2021-7-25
It worked Version R2021a.
Mohd Al Sumaim
2021-8-9
Thank you so much, it worked
Ada Görgün
2021-9-14
Thank you so much, it worked for me too
amir-nejati
2021-9-22
thanks a lot it works
vladimir bratasiuk
2021-12-3
thank you it helps me
SRIKRISHNA NEELAKANTAN
2022-1-25
it helped me as well tysm
Alma Herrera
2022-2-15
great! worked for matlab 2021b on ubuntu 18.04
Pierre Klintefors
2022-2-21
Thank you! worked for matlab 2021b on ubuntu 20.04
Srivatsa Grama Satyanarayana
2022-3-8
This Worked, MATLAB 2020b on Ubuntu 20.04
Jeano Joseph
2022-3-27
编辑:Jeano Joseph
2022-3-27
Works. Can confirm for Ubuntu 20, MATLAB R2020a
Philip Mccoll Albuja
2022-4-16
yo! works like a charm Ubuntu 20.04 and MatLab R2022a
Sreya Gadepally
2022-5-2
Thanks a lot! It worked!
Carlos
2022-9-21
This worked, MATLAB R2022A on ubuntu 22.04
ALESSANDRO
2022-9-22
Thank you! It worked
MATLAB R2022B on Ubuntu 22.04
Kavita Varma
2022-10-20
This works!
Caroline Haoud
2022-10-24
when i type matlabroot, i get the following output in my terminal:
matlabroot: command not found
Walter Roberson
2022-10-24
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
2023-12-15
It work on ubuntu 20
Qian-Qian
2024-4-3
Thank you! it work on ubuntu 22.
Xin Niu
2024-4-30
It works on Mac OS 13.5.1 (22G90) too.
Ridwanullah Adeyinka
2024-8-2
编辑:Ridwanullah Adeyinka
2024-8-2
Thank you! It works on Ubuntu 20 and MATLAB R2021b.
迪
2024-11-13
Thanks! It solves my problem.
菪
2024-11-21
Thanks! It works for me on Ubuntu 24.04.1 LTS and MATLAB R2024b.
Avinash Singh
2017-5-19
编辑:Avinash Singh
2017-5-19
44 个投票
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 个评论
JoanManBar
2018-3-30
This helped me. Thank you very much!
Long Wang
2020-3-16
This helped me, thank you!
Karim Ghezali
2020-4-30
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
2020-5-6
This helped me a lot. Thank you!
Ulisses Gtz
2020-6-4
This helped me too, thank you!!
Juan Sebastian
2020-11-27
编辑:Juan Sebastian
2020-11-27
It worked, thanks!
Wele Gedara Chaminda Bandara
2021-6-14
Thank you, this worked for me.
Xuanwei Zhu
2021-7-19
Thank you for your help!
Abhijit Dey
2021-8-17
Thank you!! it worked for me.
Utkarsh Ranjan
2021-8-29
Thanks it worked
Walter Nieminen
2022-9-6
Thanks. The chmod worked with Ubuntu 20.04.5 LTS and MATLAB R2022a
fernandes_420
2022-12-4
Thanks a lot! Worked on Ubuntu 22.04.1 LTS and Matlab R2020b
Rahul
2022-12-9
Thanks a lot. It worked for me too on Ubuntu 22.04.1 LTS and Matlab R2022b.
Jerusalem Teklu
2023-2-13
Thanks a lot! It works for me as well.
S Ashish
2023-6-2
THANKS A TON !!!!!!!!!!!!!!!!!! IT WORKED LIKE A CHARM. YOU ARE A LIFE SAVER. APPRECIATE IT !!! GOD BLESS !!!
Levi Vande Kamp
2021-10-18
18 个投票
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 个评论
Chang Chang
2021-11-17
it doesn't work. the terminal will get stuck
Levi Vande Kamp
2021-11-17
Could you be more descriptive?
hongbo wang
2021-11-24
Nice job! It works and doesn't effect any other setting. Genious idea!!!
Averil Ignatious
2021-12-2
Thank you
Felipe Galarza Jimenez
2022-2-14
This is the only way I could make it to work. Thanks!
Ross Lawrence
2022-4-12
Works on Ubuntu 20.04 4 LTS and MATLAB R2020b
Edoardo
2023-1-25
Manually changing permissions for me worked too. As simple as it is. Ubuntu 22.04 LTS MATLAB R2022b.
Ian
2023-8-4
2023a update: AddOnProductInstaller has been renamed to AddOnInstaller
updated command: `ps -eo cmd | grep AddOnInstaller | head -n 1`
Silvia Talavera Marcos
2023-11-7
Thanks a lot guys
Phil McMillan
2023-11-20
This is a great method Levi.
Luigi Avallone
2020-3-21
9 个投票
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 个评论
Wahab Shah
2020-5-27
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
2020-5-27
thanks, it worked
Felipe Morales Torres
2022-2-11
This worked for me, thank you!
Ali Moussa
2022-9-26
Brilliant, worked for me on Arch Linux, thanks!
Lisseth Abigail
2023-2-16
this is the only one that worked for me, I'm in 2022B matlab on pop_os! (ubuntu based) thank you!
Ioan
2023-6-27
thanks a lot it worked
Warren
2023-7-17
worked great!
Nupur
2023-11-28
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.
Rollin Baker
2017-4-14
1 个投票
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
2020-1-10
0 个投票
Thanks all of you this discussion helped me a lot too.. same problem I had too
Sreeshma K
2022-3-2
0 个投票
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 个评论
Levi Vande Kamp
2022-3-3
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
2022-12-10
I recommend that you try installing toolboxes with administrative privileges. For instance:
sudo /usr/local/matlab/R2020a/bin/matlab
Madalena Ferreira
2024-4-4
this worked for me, thank you !!
Walter Nieminen
2022-9-6
0 个投票
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
类别
在 帮助中心 和 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!