Installation probelms R2012b on Ubuntu 12.10 quantal

3 visualizzazioni (ultimi 30 giorni)
I am having difficulty to install matlab R2012b on Ubuntu 12.10 machine. I have chmod +x both the install and java files and now when I run "sudo ./install" I recieve the following error:
Preparing installation files ... Installing ... Exception in thread "main" com.google.inject.ProvisionException: Guice provision errors:
1) Error in custom provider, java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.mathworks.wizard.WizardModule.provideDisplayProperties(WizardModule.java:60) while locating com.mathworks.instutil.DisplayProperties at com.mathworks.wizard.ui.components.ComponentsModule.provid
and so on...
any thoughts?
  3 Commenti
Evan
Evan il 20 Dic 2012
Modificato: Walter Roberson il 13 Dic 2015
when running with the -v option I see:
Preparing installation files ... -> DVD = /tmp/Mathlab R2012b Linux -> ARCH = glnxa64 -> DISPLAY = :0.0 -> TESTONLY = 0 -> JRE_LOC = /tmp/mathworks_4551/sys/java/jre/glnxa64/jre -> LD_LIBRARY_PATH = /tmp/mathworks_4551/bin/glnxa64
Command to run: /tmp/mathworks_4551/sys/java/jre/glnxa64/jre/bin/java -Xmx512m -splash:"/tmp/Mathlab R2012b Linux/java/splash.png" -Djava.ext.dirs=/tmp/mathworks_4551/sys/java/jre/glnxa64/jre/lib/ext:/tmp/mathworks_4551/java/jar:/tmp/mathworks_4551/java/jarext:/tmp/mathworks_4551/java/jarext/axis2/:/tmp/mathworks_4551/java/jarext/guice/:/tmp/mathworks_4551/java/jarext/webservices/ com/mathworks/professionalinstaller/Launcher -root "/tmp/Mathlab R2012b Linux" -tmpdir "/tmp/mathworks_4551"
Installing ... Exception in thread "main" com.google.inject.ProvisionException: Guice provision errors:
1) Error in custom provider, java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

Accedi per commentare.

Risposte (2)

Ferenc Pal
Ferenc Pal il 17 Feb 2013
I had the same problem on Kubuntu 12.04. I could solve based on the following forum, entry #7: http://ubuntuforums.org/showthread.php?t=1762405
The problem is that in the [matlab/install/dir]/bin/glnxa64/ a symbolic link is converted into a text file and doesn't behave as a link anymore. It must be replaced by a new one.
cd bin/glnxa64
rm libstdc++.so.6
ln -s libstdc++.so.6.0.13 libstdc++.so.6
Regards Feri
  3 Commenti
Carlos Manuel García Algora
This solution solved my problem too. Thank you very much for your help!

Accedi per commentare.


Jason Ross
Jason Ross il 20 Dic 2012
Modificato: Jason Ross il 20 Dic 2012
Try installing from a directory without spaces -- it looks like your installation media is in "/tmp/Mathlab R2012b Linux"
If that doesn't work, I suggest contacting installation support.
  2 Commenti
Evan
Evan il 20 Dic 2012
Modificato: Walter Roberson il 13 Dic 2015
unfortunately all the same aerrors... thanks for the tip.
sudo ./install -v -inputfile ./installer_input.txt
Preparing installation files ...
-> DVD = /tmp/MR2012blinux
-> ARCH = glnxa64
-> DISPLAY = :0.0
-> TESTONLY = 0
-> JRE_LOC = /tmp/mathworks_5690/sys/java/jre/glnxa64/jre
-> LD_LIBRARY_PATH = /tmp/mathworks_5690/bin/glnxa64
Command to run:
/tmp/mathworks_5690/sys/java/jre/glnxa64/jre/bin/java -Xmx512m -Djava.ext.dirs=/tmp/mathworks_5690/sys/java/jre/glnxa64/jre/lib/ext:/tmp/mathworks_5690/java/jar:/tmp/mathworks_5690/java/jarext:/tmp/mathworks_5690/java/jarext/axis2/:/tmp/mathworks_5690/java/jarext/guice/:/tmp/mathworks_5690/java/jarext/webservices/ com/mathworks/professionalinstaller/Launcher -root "/tmp/MR2012blinux" -tmpdir "/tmp/mathworks_5690" -inputfile ./installer_input.txt
Installing ...
Exception in thread "main" com.google.inject.ProvisionException: Guice provision errors:
1) Error in custom provider, java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.mathworks.wizard.WizardModule.provideDisplayProperties(WizardModule.java:60)
while locating com.mathworks.instutil.DisplayProperties
at com.mathworks.wizard.ui.components.ComponentsModule.providePaintStrategy(ComponentsModule.java:76)
while locating com.mathworks.wizard.ui.components.PaintStrategy
for parameter 4 at com.mathworks.wizard.ui.components.SwingComponentFactoryImpl.<init>(SwingComponentFactoryImpl.java:110)
while locating com.mathworks.wizard.ui.components.SwingComponentFactoryImpl
while locating com.mathworks.wizard.ui.components.SwingComponentFactory
for parameter 1 at com.mathworks.wizard.ui.WizardUIImpl.<init>(WizardUIImpl.java:65)
while locating com.mathworks.wizard.ui.WizardUIImpl
while locating com.mathworks.wizard.ui.WizardUI annotated with @com.google.inject.name.Named(value=BaseWizardUI)
at com.mathworks.wizard.ui.UIModule.provideWizardUI(UIModule.java:50)
while locating com.mathworks.wizard.ui.WizardUI
for parameter 0 at com.mathworks.wizard.ExceptionHandlerImpl.<init>(ExceptionHandlerImpl.java:22)
while locating com.mathworks.wizard.ExceptionHandlerImpl
while locating com.mathworks.wizard.ExceptionHandler
1 error
at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:767)
at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:793)
at com.mathworks.wizard.WizardLauncher.startWizard(WizardLauncher.java:160)
at com.mathworks.wizard.WizardLauncher.start(WizardLauncher.java:75)
at com.mathworks.wizard.AbstractLauncher.launch(AbstractLauncher.java:27)
at com.mathworks.wizard.AbstractLauncher.launchStandalone(AbstractLauncher.java:18)
at com.mathworks.professionalinstaller.Launcher.main(Launcher.java:21)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:106)
at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:95)
at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at com.google.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at com.google.inject.FactoryProxy.get(FactoryProxy.java:56)
at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at com.google.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at com.google.inject.FactoryProxy.get(FactoryProxy.java:56)
at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at com.google.inject.Scopes$1$1.get(Scopes.java:54)
at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:95)
at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at com.google.inject.Scopes$1$1.get(Scopes.java:54)
at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at com.google.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at com.google.inject.FactoryProxy.get(FactoryProxy.java:56)
at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at com.google.inject.Scopes$1$1.get(Scopes.java:54)
at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:101)
... 54 more
Caused by: com.mathworks.instutil.JNIException: java.lang.UnsatisfiedLinkError: /tmp/mathworks_5690/bin/glnxa64/libinstutil.so: /tmp/mathworks_5690/bin/glnxa64/libstdc++.so.6: file too short
at com.mathworks.instutil.NativeUtility.loadNativeLibrary(NativeUtility.java:39)
at com.mathworks.instutil.NativeUtility.<init>(NativeUtility.java:24)
at com.mathworks.instutil.DisplayPropertiesImpl.<init>(DisplayPropertiesImpl.java:10)
at com.mathworks.wizard.WizardModule.provideDisplayProperties(WizardModule.java:67)
... 59 more
Caused by: java.lang.UnsatisfiedLinkError: /tmp/mathworks_5690/bin/glnxa64/libinstutil.so: /tmp/mathworks_5690/bin/glnxa64/libstdc++.so.6: file too short
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.mathworks.instutil.NativeUtility.loadNativeLibrary(NativeUtility.java:37)
... 62 more
Finished
Jason Ross
Jason Ross il 20 Dic 2012
Towards the end there's this:
"libstdc++.so.6: file too short"
It looks like something may be corrupted in your installation files.

Accedi per commentare.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by