Installing matlab runtime compiler without GUI

17 Ansichten (letzte 30 Tage)
John Griffiths
John Griffiths am 9 Feb. 2016
Beantwortet: Kiran am 12 Feb. 2016
I am trying to install MCR on an linux hpc grid which does not support graphics.
I used the following line:
./install -mode silent -agreeToLicense yes -destinationFolder <folder>
And got the following error straight away
Preparing installation files ...
^[[AInstalling ...
(Feb 09, 2016 08:54:29) ##################################################################
(Feb 09, 2016 08:54:29) #
(Feb 09, 2016 08:54:29) # Today's Date:
(Feb 09, 2016 08:54:29) Tue Feb 09 08:54:29 EST 2016
(Feb 09, 2016 08:54:29)
(Feb 09, 2016 08:54:29) System Info
(Feb 09, 2016 08:54:29) OS: Linux 2.6.32-504.16.2.el6.x86_64
(Feb 09, 2016 08:54:29) Arch: amd64
(Feb 09, 2016 08:54:29) Data Model: 64
(Feb 09, 2016 08:54:29) Language: en
(Feb 09, 2016 08:54:29) Java Vendor: Sun Microsystems Inc.
(Feb 09, 2016 08:54:29) Java Home: /tmp/mathworks_4356/sys/java/jre/glnxa64/jre
(Feb 09, 2016 08:54:29) Java Version: 1.6.0_17
(Feb 09, 2016 08:54:29) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Feb 09, 2016 08:54:29) Java Class Path: .
(Feb 09, 2016 08:54:29) User Name: hpc3230
(Feb 09, 2016 08:54:29) Current Directory: /home/hpc3230/Software/MCR
(Feb 09, 2016 08:54:29) Input arguments:
(Feb 09, 2016 08:54:29) root /home/hpc3230/Software/MCR
(Feb 09, 2016 08:54:29) tmpdir /tmp/mathworks_4356
(Feb 09, 2016 08:54:29) mode silent
(Feb 09, 2016 08:54:29) agreeToLicense yes
(Feb 09, 2016 08:54:29) destinationFolder /home/hpc3230/Software/MCR
(Feb 09, 2016 08:54:29) standalone true
(Feb 09, 2016 08:54:29) connectionMode OFFLINE_ONLY
Could not find ':' in DISPLAY:
(Feb 09, 2016 08:54:30) java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(Unknown Source)
at sun.awt.X11GraphicsEnvironment$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at sun.awt.X11.XToolkit.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.Toolkit$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
at java.awt.Toolkit.getEventQueue(Unknown Source)
at java.awt.EventQueue.isDispatchThread(Unknown Source)
at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)
at com.mathworks.wizard.WizardUtilities.doNowOnEDT(WizardUtilities.java:14)
at com.mathworks.wizard.WizardFactoryImpl.createWorkflowSteps(WizardFactoryImpl.java:39)
at com.mathworks.wizard.WizardLauncher.startWizard(WizardLauncher.java:165)
at com.mathworks.wizard.WizardLauncher.startSilentWizard(WizardLauncher.java:113)
at com.mathworks.wizard.WizardLauncher.start(WizardLauncher.java:66)
at com.mathworks.wizard.AbstractLauncher.launch(AbstractLauncher.java:27)
at com.mathworks.wizard.AbstractLauncher.launchStandalone(AbstractLauncher.java:18)
at com.mathworks.mcrinstaller.MCRInstallLauncher.main(MCRInstallLauncher.java:28)
(Feb 09, 2016 08:54:30) 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_hpc3230.log
(Feb 09, 2016 08:54:30) Exiting with status -1
(Feb 09, 2016 08:54:30) End -
I think the key problem here is, as I said, the system does not support X11 display stuff. Can I get it to install without needing input from a GUI?
Thanks,
john

Antworten (1)

Kiran
Kiran am 12 Feb. 2016
This issue occurs if you do not have an X Server installed and you have the DISPLAY environment variable set. This variable should not be set if you do not have an X Server installed.
To resolve this issue you can unset the DISPLAY variable and restart the installer. The installer should then complete successfully.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by