Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
java errors while installing Matlab R2012a
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
equaeghe
Apprentice
Apprentice


Joined: 22 Feb 2005
Posts: 258

PostPosted: Sun May 13, 2012 11:41 am    Post subject: java errors while installing Matlab R2012a Reply with quote

Hi, I'm trying to install Matlab R2012a 64bit on my mostly stable amd64
system. Almost immediately I get the java errors shown at the end of this post. I'm using the following jre:

Code:

$ eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea-bin-6  system-vm user-vm



Anybody have an idea what might be wrong?

Code:

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.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_3746/bin/glnxa64/libinstutil.so: /tmp/mathworks_3746/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_3746/bin/glnxa64/libinstutil.so: /tmp/mathworks_3746/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
Back to top
View user's profile Send private message
vaxbrat
Guru
Guru


Joined: 05 Oct 2005
Posts: 407
Location: DC Burbs

PostPosted: Sun May 20, 2012 2:42 am    Post subject: install the sun-jdk Reply with quote

Looks like your Matlab is hitting something different between icedtea and the sun-jdk. I called Mathworks a number of years back asking what sort of dependencies they had since I was installing it in a gentoo system. They pretty much only cited a major version of glibc and fessed up that they built the source on an RHEL4 system. This would have been around Matlab 2003a or b and when RHEL5 was just out or under 5.2 or so.

If you bring things forward to modern times, Matlab is probably built against RHEL5 now that RHEL6 is out. It also is probably built using the sun-jdk since that's what the "enterprise" uses for production java work.
Back to top
View user's profile Send private message
equaeghe
Apprentice
Apprentice


Joined: 22 Feb 2005
Posts: 258

PostPosted: Sun May 20, 2012 1:05 pm    Post subject: Re: install the sun-jdk Reply with quote

vaxbrat wrote:
Looks like your Matlab is hitting something different between icedtea and the sun-jdk.

No such luck; changing to sun-jre-bin-1.6 gives the same error.

vaxbrat wrote:
I called Mathworks a number of years back asking what sort of dependencies they had since I was installing it in a gentoo system.

I guess I'll go to the matlab newsgroup and see what comes out of that...

Thanks for your reply,

Erik
Back to top
View user's profile Send private message
sera
Developer
Developer


Joined: 29 Feb 2008
Posts: 961
Location: CEST

PostPosted: Sun May 20, 2012 2:11 pm    Post subject: Reply with quote

Code:
Caused by: java.lang.UnsatisfiedLinkError: /tmp/mathworks_3746/bin/glnxa64/libinstutil.so: /tmp/mathworks_3746/bin/glnxa64/libstdc++.so.6: file too short

My first guess is you mounted /tmp noexec. Set java.io.tmpdir to something different, you can abuse _JAVA_OPTIONS for that, or simply remount /tmp exec.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum