Installation probelms R2012b on Ubuntu 12.10 quantal

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

Are you trying to install on a 32 bit or 64 bit Ubuntu? And are you trying to install the 32 or 64 bit version?
Evan
Evan 2012년 12월 17일
64 bit on 64 bit
Evan
Evan 2012년 12월 20일
편집: Walter Roberson 2015년 12월 13일
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

댓글을 달려면 로그인하십시오.

답변 (2개)

Ferenc Pal
Ferenc Pal 2013년 2월 17일
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

This fixed my issue. Probable cause would be when i downloaded matlab and burn to a CD, the symbolic link was broken as Ferenc pointed out.
This solution solved my problem too. Thank you very much for your help!
it solved my problem too! Thank you

댓글을 달려면 로그인하십시오.

Jason Ross
Jason Ross 2012년 12월 20일
편집: Jason Ross 2012년 12월 20일

0 개 추천

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

Evan
Evan 2012년 12월 20일
편집: Walter Roberson 2015년 12월 13일
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
Towards the end there's this:
"libstdc++.so.6: file too short"
It looks like something may be corrupted in your installation files.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2012년 12월 17일

댓글:

2021년 6월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by