Any questions? Need some help?
phrak9
Posts: 15 Joined: 07 Jul 2018, 19:53
Post
by phrak9 » 23 Feb 2022, 13:56
Been using Filebot on Linux for several years but wanted to give it a go on FreeBSD(13) I'm installing the pkg form of FB and getting an error.
Code: Select all
"/usr/local/share/filebot # filebot.sh -version
Unrecognized option: --illegal-access=permit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit."
Not finding much in the forum or generally searching the Internet about this error, or anything I can do about it anyway.
Steps I took to install:
Code: Select all
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 47 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
adwaita-icon-theme: 40.1.1
argyllcms: 1.9.2_5
at-spi2-atk: 2.34.2
at-spi2-core: 2.36.0
atk: 2.36.0
avahi-app: 0.8
cairo: 1.17.4,3
chromaprint: 1.5.0
colord: 1.3.5_1
cups: 2.3.3op2
dbus: 1.12.20_5
dbus-glib: 0.112
filebot: 4.9.3
gdbm: 1.22
gdk-pixbuf2: 2.40.0
gnome_subr: 1.0
gsettings-desktop-schemas: 41.0
gtk-update-icon-cache: 3.24.26_1
gtk2: 2.24.33
gtk3: 3.24.31
hicolor-icon-theme: 0.17
java-zoneinfo: 2021.e
jna: 5.7.0
libXScrnSaver: 1.2.3_2
libXcursor: 1.2.0
libXdamage: 1.1.5
libXft: 2.3.4
libdaemon: 0.14_1
libepoxy: 1.5.9
libevent: 2.1.12
libgcrypt: 1.9.4
libglvnd: 1.4.0
libgpg-error: 1.43
libpaper: 1.1.28
librsvg2-rust: 2.52.5_1
libxkbcommon: 1.3.1
libxslt: 1.1.34_2
nspr: 4.33
openjdk8: 8.312.07.1
openjfx14: 14.0.2.1+1_4
pango: 1.48.11
pixman: 0.40.0_1
polkit: 0.120_1
shared-mime-info: 2.0_2
sndio: 1.8.1
spidermonkey78: 78.9.0_5
xkeyboard-config: 2.34
Number of packages to be installed: 47
The process will require 841 MiB more space.
250 MiB to be downloaded
Then:
Code: Select all
mount -t fdescfs fdesc /dev/fd
mount -t procfs proc /proc
Then:
Code: Select all
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0
Code: Select all
FileBot relies on OpenJDK 11. You may need to set the following in your profile:
JAVA_HOME=/usr/local/openjdk11
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 23 Feb 2022, 14:53
Unrecognized option: --illegal-access=permit likely means that you are using
Java 8 , or perhaps
Java 17 and above.
FileBot does not have an official FreeBSD package. Can you link the 3rd party package repository that you are using?
Did you follow the instructions that the package maintainer added for you? What does
printenv and
java -version say?
Code: Select all
FileBot relies on OpenJDK 11. You may need to set the following in your profile:
JAVA_HOME=/usr/local/openjdk11
[TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS
phrak9
Posts: 15 Joined: 07 Jul 2018, 19:53
Post
by phrak9 » 23 Feb 2022, 18:59
Ah Ha!
When searching to the origin of the package there was another line I must have missed on this page
https://www.freshports.org/multimedia/filebot
The line being...
You may also wish to use an alias, like:
Code: Select all
alias filebot='JAVA_HOME=/usr/local/openjdk11 LD_LIBRARY_PATH=/usr/local/share/java/classes filebot'
Now I get!
Code: Select all
filebot -version
FileBot 4.9.3 (r8340) / OpenJDK Runtime Environment 11.0.13 / FreeBSD 13.0-RELEASE-p7 (amd64)
Ready to rock! Thanks!
phrak9
Posts: 15 Joined: 07 Jul 2018, 19:53
Post
by phrak9 » 24 Feb 2022, 03:27
Spoke to soon.. only
Code: Select all
filebot -version FileBot 4.9.3 (r8340) / OpenJDK Runtime Environment 11.0.13 / FreeBSD 13.0-RELEASE-p7 (amd64)
does not produce an error.
If I try to run any other command it errors with.. For example
Code: Select all
filebot -script fn:sysinfo
An unexpected error occurred during startup: Access Denied: Cache directory is not writable: /usr/local/share/filebot/data/1000/cache/0
java.nio.file.AccessDeniedException: Cache directory is not writable: /usr/local/share/filebot/data/1000/cache/0
at net.filebot.DiskStore.acquireDiskStore(Unknown Source)
at net.filebot.DiskStore.acquire(Unknown Source)
at net.filebot.Main.main(Unknown Source)
everything in that path owned by root.
Code: Select all
./tar-jdk8.sh
./tar-jdk8.sh: 7: Syntax error: newline unexpected (expecting word)
Code: Select all
printenv
SSH_CLIENT=192.168.1.120 55332 22
LOGNAME=eric
PAGER=less
LANG=C.UTF-8
MAIL=/var/mail/eric
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/eric/bin
EDITOR=vi
ENV=/home/eric/.shrc
OLDPWD=/usr/local/share
PWD=/usr/local/share/filebot
TERM=xterm
SSH_TTY=/dev/pts/0
HOME=/home/eric
USER=eric
SSH_CONNECTION=192.168.1.120 55332 192.168.1.8 22
SHELL=/bin/sh
MM_CHARSET=UTF-8
BLOCKSIZE=K
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 24 Feb 2022, 04:47
Are you using the official TAR generic POSIX package, or the unofficial FreeBSD ports package? You seem to be mixing things up? At first you post filebot -version output from the ports package, but then you also refer to the
tar-jdk8.sh installer script, so no idea what you're trying to do there.
I'd recommending purging the ports package
(which we can't provide support for) and then following the
[TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS instructions to download and install
filebot into your
$HOME folder:
Code: Select all
cd "$HOME"
sh -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/tar-jdk8.sh)"
(make sure you're using bash ; not sure if <<< works with other shells)
phrak9
Posts: 15 Joined: 07 Jul 2018, 19:53
Post
by phrak9 » 24 Feb 2022, 13:52
Trying to get Filebot to operate on FreeBSD 13 is my goal.
I uninstalled the 3rd party pkg and tried the installation script you suggested.
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 24 Feb 2022, 16:07
What shell are you using?
Error message indicates that you're not using bash, but some other shell that doesn't understand <<< so you can either bash, or just download the script and then run it.
phrak9
Posts: 15 Joined: 07 Jul 2018, 19:53
Post
by phrak9 » 24 Feb 2022, 17:08
The default shell in FreeBSD is sh. This document doesn't mention bash as a requirement.
viewtopic.php?t=6057
Possible to provide a more recent doc than the current one(almost 4 years old)? There are apparently a few differences between a Linux and FreeBSD installation of FIlebot. I appreciate your time.
phrak9
Posts: 15 Joined: 07 Jul 2018, 19:53
Post
by phrak9 » 24 Feb 2022, 18:52
In bash shell:
Code: Select all
sh -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/tar.sh)"
+ PACKAGE_VERSION=4.9.5
+ curl -fsSL https://raw.githubusercontent.com/filebot/website/master/get.filebot.net/filebot/FileBot_4.9.5/FileBot_4.9.5-portable.tar.xz.sha256
+ PACKAGE_SHA256=2cdbdf02e78331dd9379d2ba6ea9cd1be27fe188616e651c6bd8b2524a143641
+ PACKAGE_FILE=FileBot_4.9.5-portable.tar.xz
+ PACKAGE_URL=https://get.filebot.net/filebot/FileBot_4.9.5/FileBot_4.9.5-portable.tar.xz
+ curl -o FileBot_4.9.5-portable.tar.xz -z FileBot_4.9.5-portable.tar.xz https://get.filebot.net/filebot/FileBot_4.9.5/FileBot_4.9.5-portable.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
+ echo '2cdbdf02e78331dd9379d2ba6ea9cd1be27fe188616e651c6bd8b2524a143641 *FileBot_4.9.5-portable.tar.xz'
+ sha256sum --check
sh: sha256sum: not found
+ exit 1
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 25 Feb 2022, 01:56
You will need to install the
sha256sum command, or skip that line:
Code: Select all
+ sha256sum --check
sh: sha256sum: not found
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 25 Feb 2022, 02:01
phrak9 wrote: ↑ 24 Feb 2022, 17:08
Possible to provide a more recent doc than the current one(almost 4 years old)? There are apparently a few differences between a Linux and FreeBSD installation of FIlebot. I appreciate your time.
You can install FileBot by pasting and running each line into your shell line by line:
https://github.com/filebot/plugins/blob ... ar-jdk8.sh
<<< is a bash thing, but you won't need it if you execute things line by line yourself. You can skip the
# Check SHA-256 checksum line if you execute things line by line by line by yourself. The script itself is extremely basic and so it will never be outdated.
<<< is just a convenient way of downloading and executing the script from the internet.