Problems Installing on CentOS 7

Any questions? Need some help?
Post Reply
DarellCraighead
Posts: 22
Joined: 29 Nov 2014, 20:39

Problems Installing on CentOS 7

Post by DarellCraighead »

So I am doing a new install of FB on a CentOS 7 server I built to run Plex (moving Plex/FB away from Synology to standalone).

I downloaded the portable version as well as the native libraries. I unziped FB into /opt/filebot and placed fpcalc and the .so files there as well. When I run sysinfo I see several errors. I have tried several things - but to no avail.

It appears there is a problem with libjnidispatch.so, I tried to run execstack - but got command not found. I am not sure what it means link it with -z...

Then Java throws an error against the same file.

And another from libmediainfo.so

It says fpcalc is not found - expect I need a symlink? How/where does it go?

Looks like the rest is okay?

Code: Select all

[darellcraighead@plexmediaserver filebot]$ ./filebot.sh -script fn:sysinfo
FileBot 4.7.7 (r4678)
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /opt/filebot/libjnidispatch.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path ([file:/opt/filebot/FileBot.jar])
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Script Bundle: 2017-01-03 (r469)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_112
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 21 MB Used Memory
OS: Linux (amd64)
Package: PORTABLE
Data: /opt/filebot/data
uname: Linux plexmediaserver.darellcraighead.com 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Here is the file structure:

Code: Select all

[darellcraighead@plexmediaserver filebot]$ pwd
/opt/filebot
[darellcraighead@plexmediaserver filebot]$ ls -al
total 91900
drwxr-xr-x. 3 darellcraighead darellcraighead     4096 Jan  3 15:56 .
drwxr-xr-x. 3 root            root                4096 Jan  3 15:53 ..
drwxrwxrwx. 5 darellcraighead darellcraighead       52 Jan  3 15:56 data
-rwxrwxrwx. 1 darellcraighead darellcraighead      571 Jan  3 01:22 filebot.cmd
-rwxrwxrwx. 1 darellcraighead darellcraighead 81762630 Jan  3 11:12 FileBot.jar
-rwxrwxrwx. 1 darellcraighead darellcraighead    53696 Jan  3 01:22 filebot.portable.launcher.exe
-rwxrwxrwx. 1 darellcraighead darellcraighead      921 Jan  3 01:22 filebot.portable.launcher.l4j.ini
-rwxrwxrwx. 1 darellcraighead darellcraighead     1664 Jan  3 01:22 filebot.sh
-rwxrwxrwx. 1 darellcraighead darellcraighead  2256028 Jan  3 15:55 fpcalc
-rwxrwxrwx. 1 darellcraighead darellcraighead  2569346 Jan  3 15:55 lib7-Zip-JBinding.so
-rwxrwxrwx. 1 darellcraighead darellcraighead    97429 Jan  3 15:55 libjnidispatch.so
-rwxrwxrwx. 1 darellcraighead darellcraighead  7019308 Jan  3 15:55 libmediainfo.so
-rwxrwxrwx. 1 darellcraighead darellcraighead   310364 Jan  3 15:55 libzen.so
-rwxrwxrwx. 1 darellcraighead darellcraighead     1408 Nov 14 08:41 update-filebot.sh
Can you advise how to clear these errors, please?
User avatar
rednoah
The Source
Posts: 23132
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Problems Installing on CentOS 7

Post by rednoah »

Installing dependencies is different for different distributions. The Linux libraries in the FileBot repository are only tested with Debian/Ubuntu so they might not work for CentOS.

A short Google search reveals that you may be able to use existing packages. I don't use CentOS so you're mostly on your own if you want to figure this out.

JNA for libjnidispatch.so:

Code: Select all

yum install jna
fpcalc:

Code: Select all

yum install chromaprint-fpcalc
:idea: Please read the FAQ and How to Request Help.
DarellCraighead
Posts: 22
Joined: 29 Nov 2014, 20:39

Re: Problems Installing on CentOS 7

Post by DarellCraighead »

hey rednoah, thanks for the usual quick response. yeah, all my fault. i downloaded the *wrong* version of the native libraries. here is the solution that worked:

deleted everything in /opt/filebot/
unziped the portable.tar.xz into /opt/filebot/
downloaded the correct (amd64) native binaries and placed them in /opt/filebot/
chmod +x fpcalc
ln -s /usr/local/bin/filebot /opt/filebot/filebot.sh
ln -s /usr/local/bin/fpcalc /opt/filebot/fpcalc
chown -R user:group /opt/filebot/

now it all appears to be working:

Code: Select all

[darellcraighead@plexmediaserver ~]$ filebot -script fn:sysinfo
FileBot 4.7.7 (r4678)
JNA Native: 4.0.1
MediaInfo: 0.7.91
Apache Commons VFS: [zip, rar]
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2017-01-05 (r470)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_112
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 15 MB Used Memory
OS: Linux (amd64)
Package: PORTABLE
Data: /opt/filebot/data
uname: Linux plexmediaserver.darellcraighead.com 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Looks good, right?

next trick: sharing my download folder (nfs) from my Synology NAS (already have media folders shared and working) then run filebot from the media server and manage it all from there - let the NAS be a NAS and the server do some work :)
Post Reply