Linux libzen & libmediainfo not found
#1
Hi,

I'm having problems running tmm on my RPi2 under Raspbian (a Debian Wheezy port). Most things are working except I can't resolve the missing libzen & libmediainfo (see the log below). What I did was:
  1. Download tmm_2.6.5_r1840_linux.tar.gz from FossHub
  2. Extract the archive to a separate directory /home/tmm
  3. Execute the tinyMediaManagerUpdater.sh

The standard splash screen appears, the program is updated to the latest version (2.6.6 r1933) and then the program is re-launched. The error log file however contains the following:
Code:
23:56:02.778 ERROR org.tinymediamanager.thirdparty.MediaInfo - Failed to preload libzen
23:56:02.868 ERROR org.tinymediamanager.thirdparty.MediaInfo - Failed to load mediainfo
java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-arm/libmediainfo.so) not found in resource path ([file:/home/tmm/tmm.jar, file:/home/tmm/lib/DJNativeSwing-SWT.jar, file:/home/tmm/lib/DJNativeSwing.jar, file:/home/tmm/lib/JSplitButton.jar, file:/home/tmm/lib/JTattoo.jar, file:/home/tmm/lib/LightBox.jar, file:/home/tmm/lib/Scaling-bin.jar, file:/home/tmm/lib/api-common.jar, file:/home/tmm/lib/asm.jar, file:/home/tmm/lib/betterbeansbinding-core.jar, file:/home/tmm/lib/betterbeansbinding-el.jar, file:/home/tmm/lib/betterbeansbinding-swingbinding.jar, file:/home/tmm/lib/commons-codec.jar, file:/home/tmm/lib/commons-io.jar, file:/home/tmm/lib/commons-lang3.jar, file:/home/tmm/lib/core.jar, file:/home/tmm/lib/fanarttvapi.jar, file:/home/tmm/lib/forms.jar, file:/home/tmm/lib/glazedlists.jar, file:/home/tmm/lib/gson.jar, file:/home/tmm/lib/httpclient.jar, file:/home/tmm/lib/httpcore.jar, file:/home/tmm/lib/httpmime.jar, file:/home/tmm/lib/image-viewer.jar, file:/home/tmm/lib/imgscalr-lib.jar, file:/home/tmm/lib/jackson-annotations.jar, file:/home/tmm/lib/jackson-core.jar, file:/home/tmm/lib/jackson-databind.jar, file:/home/tmm/lib/jcl-over-slf4j.jar, file:/home/tmm/lib/jdom.jar, file:/home/tmm/lib/jgoodies-common.jar, file:/home/tmm/lib/jmte-unbundled.jar, file:/home/tmm/lib/jna.jar, file:/home/tmm/lib/joda-time.jar, file:/home/tmm/lib/json-20131018.jar, file:/home/tmm/lib/jsoup.jar, file:/home/tmm/lib/jtidy.jar, file:/home/tmm/lib/log4j-over-slf4j.jar, file:/home/tmm/lib/logback-classic.jar, file:/home/tmm/lib/logback-core.jar, file:/home/tmm/lib/objectdb.jar, file:/home/tmm/lib/platform.jar, file:/home/tmm/lib/quaqua-filechooser-only.jar, file:/home/tmm/lib/resources.jar, file:/home/tmm/lib/retrofit.jar, file:/home/tmm/lib/rottentomatoesapi.jar, file:/home/tmm/lib/slf4j-api.jar, file:/home/tmm/lib/themoviedbapi.jar, file:/home/tmm/lib/thetvdbapi.jar, file:/home/tmm/lib/trakt-java.jar, file:/home/tmm/lib/twinkle.jar, file:/home/tmm/lib/xmlrpc-client.jar, file:/home/tmm/lib/swt.jar, file:/home/tmm/locale/*, file:/home/tmm/lib/swt.jar, file:/home/tmm/locale/*, file:/home/tmm/lib/swt.jar, file:/home/tmm/locale/*])
    at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271) ~[jna.jar:4.1.0 (b4)]
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398) ~[jna.jar:4.1.0 (b4)]
    at com.sun.jna.Library$Handler.<init>(Library.java:147) ~[jna.jar:4.1.0 (b4)]
    at com.sun.jna.Native.loadLibrary(Native.java:412) ~[jna.jar:4.1.0 (b4)]
    at org.tinymediamanager.thirdparty.MediaInfoLibrary.<clinit>(MediaInfoLibrary.java:38) ~[tmm.jar:2.6.6 (r1933)]
    at org.tinymediamanager.thirdparty.MediaInfo.staticOption(MediaInfo.java:498) [tmm.jar:2.6.6 (r1933)]
    at org.tinymediamanager.thirdparty.MediaInfo.staticOption(MediaInfo.java:484) [tmm.jar:2.6.6 (r1933)]
    at org.tinymediamanager.thirdparty.MediaInfo.version(MediaInfo.java:446) [tmm.jar:2.6.6 (r1933)]
    at org.tinymediamanager.TinyMediaManager$1.run(TinyMediaManager.java:277) [tmm.jar:2.6.6 (r1933)]
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312) [na:1.7.0_65]
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) [na:1.7.0_65]
    at java.awt.EventQueue.access$200(EventQueue.java:103) [na:1.7.0_65]
    at java.awt.EventQueue$3.run(EventQueue.java:694) [na:1.7.0_65]
    at java.awt.EventQueue$3.run(EventQueue.java:692) [na:1.7.0_65]
    at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_65]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) [na:1.7.0_65]
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) [na:1.7.0_65]
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) [na:1.7.0_65]
23:56:02.875 ERROR org.tinymediamanager.TinyMediaManager - could not load MediaInfo!

Both libzen.so & libmediainfo.so exist in the /home/tmm/native/linux-arm/ directory, so they do exist.

How do I resolve these issues?

Thanks

Dave
#2
hmm... have no clue yet.
Maybe we might need some different binaries for that...

Since i'm an PI2 owner myself, i will try to reproduce that...
Thanks for reporting!
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#3
did you execute tmm from inside the /home/tmm folder or anywhere else?

best try would be to cd into /home/tmm and then exec ./tinyMediaManager.sh

we have a cd into the dir inside the start script, but I am unsure how java behaves, when relaunching tmm after the update happens

could you also post your launcher.log if cd into /home/tmm does not solve the issue?
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#4
I've tried launching from a terminal window by cd /home/tmm & executing ./tinyMediaManger.sh and the same error appears in the error log. Here's a copy of launcher.log

Code:
2015/03/13 14:17:38:917 INFO r.a: ------------------ VM Info ------------------
2015/03/13 14:17:38:930 INFO r.a: -- OS Name: Linux
2015/03/13 14:17:38:931 INFO r.a: -- OS Arch: arm
2015/03/13 14:17:38:932 INFO r.a: -- OS Vers: 3.18.7-v7+
2015/03/13 14:17:38:932 INFO r.a: -- Java Vers: 1.7.0_65
2015/03/13 14:17:38:933 INFO r.a: -- Java Home: /usr/lib/jvm/java-7-openjdk-armhf/jre
2015/03/13 14:17:38:933 INFO r.a: -- User Name: root
2015/03/13 14:17:38:934 INFO r.a: -- User Home: /root
2015/03/13 14:17:38:935 INFO r.a: -- Cur dir: /home/tmm
2015/03/13 14:17:38:935 INFO r.a: ---------------------------------------------
2015/03/13 14:17:39:103 INFO r.a: ---------------- Proxy Info -----------------
2015/03/13 14:17:39:104 INFO r.a: -- Proxy Host: null
2015/03/13 14:17:39:105 INFO r.a: -- Proxy Port: null
2015/03/13 14:17:39:105 INFO r.a: ---------------------------------------------
2015/03/13 14:17:39:118 INFO r.a: Skipping [quals=windows, osname=linux, osarch=arm, key=resource, value=[windows] tinyMediaManager.new]
2015/03/13 14:17:39:120 INFO r.a: Skipping [quals=windows, osname=linux, osarch=arm, key=resource, value=[windows] tinyMediaManagerUpd.new]
2015/03/13 14:17:39:121 INFO r.a: Skipping [quals=windows, osname=linux, osarch=arm, key=resource, value=[windows] tinyMediaManagerCMD.new]
2015/03/13 14:17:39:122 INFO r.a: Skipping [quals=mac os x, osname=linux, osarch=arm, key=resource, value=[mac os x] tinyMediaManagerOSX.sh]
2015/03/13 14:17:39:123 INFO r.a: Skipping [quals=mac os x, osname=linux, osarch=arm, key=resource, value=[mac os x] JavaApplicationStub.new]
2015/03/13 14:17:39:124 INFO r.a: Skipping [quals=mac os x, osname=linux, osarch=arm, key=resource, value=[mac os x] Info.plist]
2015/03/13 14:17:39:129 INFO r.a: Skipping [quals=linux-amd64, osname=linux, osarch=arm, key=resource, value=[linux-amd64] native/linux-amd64/libmediainfo.so]
2015/03/13 14:17:39:130 INFO r.a: Skipping [quals=linux-amd64, osname=linux, osarch=arm, key=resource, value=[linux-amd64] native/linux-amd64/libzen.so]
2015/03/13 14:17:39:132 INFO r.a: Skipping [quals=linux-i386, osname=linux, osarch=arm, key=resource, value=[linux-i386] native/linux-i386/libmediainfo.so]
2015/03/13 14:17:39:133 INFO r.a: Skipping [quals=linux-i386, osname=linux, osarch=arm, key=resource, value=[linux-i386] native/linux-i386/libzen.so]
2015/03/13 14:17:39:134 INFO r.a: Skipping [quals=linux-i686, osname=linux, osarch=arm, key=resource, value=[linux-i686] native/linux-i686/libmediainfo.so]
2015/03/13 14:17:39:135 INFO r.a: Skipping [quals=linux-i686, osname=linux, osarch=arm, key=resource, value=[linux-i686] native/linux-i686/libzen.so]
2015/03/13 14:17:39:136 INFO r.a: Skipping [quals=mac os x-x86_64, osname=linux, osarch=arm, key=resource, value=[mac os x-x86_64] native/mac-x86_64/libmediainfo.dylib]
2015/03/13 14:17:39:136 INFO r.a: Skipping [quals=mac os x-i386, osname=linux, osarch=arm, key=resource, value=[mac os x-i386] native/mac-i386/libmediainfo.dylib]
2015/03/13 14:17:39:137 INFO r.a: Skipping [quals=windows-amd64, osname=linux, osarch=arm, key=resource, value=[windows-amd64] native/windows-amd64/MediaInfo.dll]
2015/03/13 14:17:39:138 INFO r.a: Skipping [quals=windows-x64, osname=linux, osarch=arm, key=resource, value=[windows-x64] native/windows-x64/MediaInfo.dll]
2015/03/13 14:17:39:139 INFO r.a: Skipping [quals=windows-x86, osname=linux, osarch=arm, key=resource, value=[windows-x86] native/windows-x86/MediaInfo.dll]
2015/03/13 14:17:39:140 INFO r.a: Skipping [quals=windows-x86, osname=linux, osarch=arm, key=resource, value=[windows-x86] native/windows-x86/mingwm10.dll]
2015/03/13 14:17:39:141 INFO r.a: Skipping [quals=mac os x-x86_64, osname=linux, osarch=arm, key=resource, value=[mac os x-x86_64] native/mac-x86_64/libquaqua.jnilib]
2015/03/13 14:17:39:142 INFO r.a: Skipping [quals=mac os x-x86_64, osname=linux, osarch=arm, key=resource, value=[mac os x-x86_64] native/mac-x86_64/libquaqua64.jnilib]
2015/03/13 14:17:39:143 INFO r.a: Skipping [quals=mac os x-x86_64, osname=linux, osarch=arm, key=resource, value=[mac os x-x86_64] native/mac-x86_64/libquaqua64.dylib]
2015/03/13 14:17:39:144 INFO r.a: Skipping [quals=mac os x-i386, osname=linux, osarch=arm, key=resource, value=[mac os x-i386] native/mac-i386/libquaqua.jnilib]
2015/03/13 14:17:39:147 INFO r.a: Skipping [quals=mac os x, osname=linux, osarch=arm, key=jvmarg, value=[mac os x] -Dapple.awt.graphics.UseQuartz=true]
2015/03/13 14:17:39:148 INFO r.a: Skipping [quals=mac os x, osname=linux, osarch=arm, key=jvmarg, value=[mac os x] -Xdock:name=tinyMediaManager]
2015/03/13 14:17:39:153 INFO r.a: remove verification files? true
2015/03/13 14:17:39:212 INFO r.a: Able to lock for updates: true
2015/03/13 14:17:39:213 INFO r.a: Launching without update!
2015/03/13 14:17:39:595 INFO r.a: Dropping status 'm.launching'.
2015/03/13 14:17:39:614 INFO r.a: Didn't find any custom environment variables, not setting any.
2015/03/13 14:17:39:615 INFO r.a: Running /usr/lib/jvm/java-7-openjdk-armhf/jre/bin/java
  -classpath
  /home/tmm/./tmm.jar:/home/tmm/./lib/DJNativeSwing-SWT.jar:/home/tmm/./lib/DJNativeSwing.jar:/home/tmm/./lib/JSplitButton.jar:/home/tmm/./lib/JTattoo.jar:/home/tmm/./lib/LightBox.jar:/home/tmm/./lib/Scaling-bin.jar:/home/tmm/./lib/api-common.jar:/home/tmm/./lib/asm.jar:/home/tmm/./lib/betterbeansbinding-core.jar:/home/tmm/./lib/betterbeansbinding-el.jar:/home/tmm/./lib/betterbeansbinding-swingbinding.jar:/home/tmm/./lib/commons-codec.jar:/home/tmm/./lib/commons-io.jar:/home/tmm/./lib/commons-lang3.jar:/home/tmm/./lib/core.jar:/home/tmm/./lib/fanarttvapi.jar:/home/tmm/./lib/forms.jar:/home/tmm/./lib/glazedlists.jar:/home/tmm/./lib/gson.jar:/home/tmm/./lib/httpclient.jar:/home/tmm/./lib/httpcore.jar:/home/tmm/./lib/httpmime.jar:/home/tmm/./lib/image-viewer.jar:/home/tmm/./lib/imgscalr-lib.jar:/home/tmm/./lib/jackson-annotations.jar:/home/tmm/./lib/jackson-core.jar:/home/tmm/./lib/jackson-databind.jar:/home/tmm/./lib/jcl-over-slf4j.jar:/home/tmm/./lib/jdom.jar:/home/tmm/./lib/jgoodies-common.jar:/home/tmm/./lib/jmte-unbundled.jar:/home/tmm/./lib/jna.jar:/home/tmm/./lib/joda-time.jar:/home/tmm/./lib/json-20131018.jar:/home/tmm/./lib/jsoup.jar:/home/tmm/./lib/jtidy.jar:/home/tmm/./lib/log4j-over-slf4j.jar:/home/tmm/./lib/logback-classic.jar:/home/tmm/./lib/logback-core.jar:/home/tmm/./lib/objectdb.jar:/home/tmm/./lib/platform.jar:/home/tmm/./lib/quaqua-filechooser-only.jar:/home/tmm/./lib/resources.jar:/home/tmm/./lib/retrofit.jar:/home/tmm/./lib/rottentomatoesapi.jar:/home/tmm/./lib/slf4j-api.jar:/home/tmm/./lib/themoviedbapi.jar:/home/tmm/./lib/thetvdbapi.jar:/home/tmm/./lib/trakt-java.jar:/home/tmm/./lib/twinkle.jar:/home/tmm/./lib/xmlrpc-client.jar:lib/swt.jar:locale/*
  -Dcom.threerings.getdown=true
  -Xms64m
  -Xmx512m
  -Xss512k
  -splash:splashscreen.png
  -Djava.net.preferIPv4Stack=true
  -Dfile.encoding=UTF-8
  -XX:CompileCommand=exclude,ca/odell/glazedlists/impl/filter/TextMatchers,matches
  -XX:CompileCommand=exclude,ca/odell/glazedlists/impl/filter/BoyerMooreCaseInsensitiveTextSearchStrategy,indexOf
  -Djna.nosys=true
  org.tinymediamanager.TinyMediaManager

Not sure if it's relevant but on initial installation of tmm from the .tar.gz file, the directory /home/tmm/native/linux-arm doesn't exist (along with the libzen.so & libmediainfo.so files). But these are created on first-run during the update.
CuBox i4Pro & RPi2 running Helix 14.1/Aeon Nox 5/OpenElec 5 both controlled with PS3 BD Media Remote, 2x 6TB D-Link NAS, tinyMediaManager
#5
Just out of interest, I copied the /home/tmm/native/linux-arm files (libzen.so & libmediainfo.so) to /home/tmm to check whether it's just a missing path and I now get the following errors in the error log:

Code:
14:40:45.793 ERROR org.tinymediamanager.thirdparty.MediaInfo - Failed to preload libzen
14:40:46.132 ERROR org.tinymediamanager.thirdparty.MediaInfo - Failed to load mediainfo
java.lang.UnsatisfiedLinkError: /home/tmm/libmediainfo.so: cannot open shared object file: No such file or directory
    at com.sun.jna.Native.open(Native Method) ~[jna.jar:4.1.0 (b4)]
    at com.sun.jna.Native.open(Native.java:1759) ~[jna.jar:4.1.0 (b4)]
    at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:260) ~[jna.jar:4.1.0 (b4)]
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398) ~[jna.jar:4.1.0 (b4)]
    at com.sun.jna.Library$Handler.<init>(Library.java:147) ~[jna.jar:4.1.0 (b4)]
    at com.sun.jna.Native.loadLibrary(Native.java:412) ~[jna.jar:4.1.0 (b4)]
    at org.tinymediamanager.thirdparty.MediaInfoLibrary.<clinit>(MediaInfoLibrary.java:38) ~[tmm.jar:2.6.6 (r1933)]
    at org.tinymediamanager.thirdparty.MediaInfo.staticOption(MediaInfo.java:498) [tmm.jar:2.6.6 (r1933)]
    at org.tinymediamanager.thirdparty.MediaInfo.staticOption(MediaInfo.java:484) [tmm.jar:2.6.6 (r1933)]
    at org.tinymediamanager.thirdparty.MediaInfo.version(MediaInfo.java:446) [tmm.jar:2.6.6 (r1933)]
    at org.tinymediamanager.TinyMediaManager$1.run(TinyMediaManager.java:277) [tmm.jar:2.6.6 (r1933)]
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312) [na:1.7.0_65]
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) [na:1.7.0_65]
    at java.awt.EventQueue.access$200(EventQueue.java:103) [na:1.7.0_65]
    at java.awt.EventQueue$3.run(EventQueue.java:694) [na:1.7.0_65]
    at java.awt.EventQueue$3.run(EventQueue.java:692) [na:1.7.0_65]
    at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_65]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) [na:1.7.0_65]
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) [na:1.7.0_65]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) [na:1.7.0_65]
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) [na:1.7.0_65]
14:40:46.139 ERROR org.tinymediamanager.TinyMediaManager - could not load MediaInfo!

Perhaps this might help
CuBox i4Pro & RPi2 running Helix 14.1/Aeon Nox 5/OpenElec 5 both controlled with PS3 BD Media Remote, 2x 6TB D-Link NAS, tinyMediaManager



Logout Mark Read Team Forum Stats Members Help
libzen & libmediainfo not found0
This forum uses Lukasz Tkacz MyBB addons.