Can't install any toolboxes because can't write to /usr/local/MATLAB/R2017
조회 수: 284 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (9개)
Avinash Singh
2017년 5월 19일
편집: Avinash Singh
2017년 5월 19일
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
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일
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
Luigi Avallone
2020년 3월 21일
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
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일
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!
댓글 수: 0
Anubhav Halder
2020년 1월 10일
Thanks all of you this discussion helped me a lot too.. same problem I had too
댓글 수: 0
Sreeshma K
2022년 3월 2일
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
Hasan
2022년 12월 10일
I recommend that you try installing toolboxes with administrative privileges. For instance:
sudo /usr/local/matlab/R2020a/bin/matlab
Walter Nieminen
2022년 9월 6일
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
댓글 수: 0
참고 항목
카테고리
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!