it-swarm-ja.tech

Ubuntu 14.04 LTSでのMatlabインストールエラー

このコマンドを使用してmatlabをインストールしようとするたびに

[email protected]:~/Applications/matlab/forubuntu$ ./install 

コマンドls -l /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.soコマンドのインストールボックスを表示して閉じます。 – ls:コマンドにアクセスできません。:そのようなファイルまたはディレクトリがありませんls:アクセスできません–:そのようなファイルまたはディレクトリがありません-rw-r--r-- 1 root root 10424مارچ27 23:05/usr/lib/x86_64-linux -gnu/gio/modules/libgiolibproxy.so

Preparing installation files ...
->  DVD                 = /home/muhammad/Applications/matlab/forubuntu
->  Arch                = glnxa64
->  DISPLAY             = :0
->  TESTONLY            = 0
->  JRE_LOC             = /tmp/mathworks_8893/sys/Java/jre/glnxa64/jre
->  LD_LIBRARY_PATH     = /tmp/mathworks_8893/bin/glnxa64

Command to run:
/tmp/mathworks_8893/sys/Java/jre/glnxa64/jre/bin/Java -Xmx512m  -splash:"/home/muhammad/Applications/matlab/forubuntu/Java/splash.png" -Djava.ext.dirs=/tmp/mathworks_8893/sys/Java/jre/glnxa64/jre/lib/ext:/tmp/mathworks_8893/Java/jar:/tmp/mathworks_8893/Java/jar/ja_JP/:/tmp/mathworks_8893/Java/jar/zh_CN/:/tmp/mathworks_8893/Java/jarext:/tmp/mathworks_8893/Java/jarext/axis2/:/tmp/mathworks_8893/Java/jarext/guice/:/tmp/mathworks_8893/Java/jarext/webservices/ com/mathworks/professionalinstaller/Launcher -root "/home/muhammad/Applications/matlab/forubuntu" -tmpdir "/tmp/mathworks_8893" 

Installing ...
/tmp/mathworks_8893/bin/glnxa64/libstdc++.so.6: file too short
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
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:68)
  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:111)
  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:62)
  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:156)
    at com.mathworks.wizard.WizardLauncher.start(WizardLauncher.Java:71)
    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_8893/bin/glnxa64/libinstutil.so: /tmp/mathworks_8893/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:75)
    ... 59 more
Caused by: Java.lang.UnsatisfiedLinkError: /tmp/mathworks_8893/bin/glnxa64/libinstutil.so: /tmp/mathworks_8893/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)
2
user274475

問題は、[matlab/install/dir]/bin/glnxa64 /でシンボリックリンクがテキストファイルに変換され、リンクとして動作しなくなることです。新しいものに交換する必要があります。

cd bin/glnxa64
rm libstdc++.so.6
ln -s libstdc++.so.6.0.13 libstdc++.so.6
2
user276568

User276568の答えを拡張するために、CDROMからインストールする場合、ファイルシステムは書き込み専用です。

これを回避するには、ディレクトリバインドを使用します。

cp -dR [cdrom path]/bin/glnxa64/ /tmp
cd /tmp/glnxa64
rm libstdc++.so.6
ln -s libstdc++.so.6.* libstdc++.so.6
Sudo mount -o bind /tmp/glnxa64/ [cdrom path]/bin/glnxa64/

CDROMコンテンツを書き込み可能なファイルシステムにコピーすることもできます。

0
xvan