general/other ELF binary type "0" not known : ./ferdi: Exec format error. Binary file not executable.

Hello.

I'm trying to run Ferdi on FreeBSD, but I suspect that the executable is for Linux. Is there a parameter that I can set to emulate it on FreeBSD? Thanks. This is the error that I get when I try :

Code:
mario@lozio:/opt/Ferdi # ./ferdi


ELF binary type "0" not known.
./ferdi: Exec format error. Binary file not executable.
 
Last edited:
Hello,

to run this suspected linux executable you need to enable/load first the linux modules with

Temporary: kldload linux && kldload linux64

Permanent: linux_enable="YES" in /etc/rc.conf

After that, the installation of linux packages:

There are many Linux CentOS 7 packages but emulators/linux-c7 should be good to go.

After the installation of the packages you get hints that you have to mount some points. If you are on FreeBSD 13 or higher you can put linux_mounts_enable="YES" in /etc/rc.conf or use the old method (for FreeBSD 12 and older) and put them in the /etc/fstab.

If everything is done you can execute the executable like you have shown.

For more information see: https://docs.freebsd.org/en/books/handbook/linuxemu/
 
Code:
mario@lozio:~ # kldload linux64

LINUXTODO: linux_vdso_install: fix linux_kplatform

Excuse me, I forgot to say that I'm using FreeBSD for arm64. Probably the Linux emulator does not work for this platform? Infact :
Code:
mario@lozio:~ # pkg install emulators/linux_base-c7
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'emulators/linux_base-c7' have been found in the repositories
 
Last edited:
i tried to run ferdi on amd64. This is the error that I've got :

./ferdi: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory
 
I saw this thread here because I am facing the exact same problem with ferdi. The current package for freebsd comes packaged with libffmpeg. And still ferdi is complaining that it cannot find libffmpeg. What am I missing? Maybe op can comment on that? What was his solution? It would be very helpful I suppose...
 
Success! I got Ferdi (or rather Ferdium) to launch. But I took a different approach. I don't have the time right now to describe all the steps, but I will soon. Basic idea was to use linux-browser-installer to create a chroot with ubuntu. Then chroot into it, wget the ferdium package for ubuntu from github, install it via apt, then adapt the linux-browser-installer wrapper for the newly installed ferdium binary. And then it launches.

I'm gonna write a little howto some time in the coming days. Maybe make a little script based on linux-browser-installer for the latest ferdium-nightly and put it on my github.

(I should say: it launches, I haven't tried anything else yet. So no idea what works and what doesn't yet)
 
I actually don't know how much of a difference there is. Ferdium is a fork of Ferdi. Ferdi has some internal project issues it appears. No idea if it is going down entirely. Maybe check the r/getferdi on reddit for more.
 
why don't you try to run Franz with the linuxulator or even better Rambox ? They are better than Ferdi.
 
Afaik neither Franz nor Rambox are open source. And the free tier on both has limitations which are a bit artificial. I personally just want something that runs Discord, Whatsapp, Telegram and possibly a few other things, independently of my browsers. And that doesn't require me to have yet another account with cloud sync somewhere. I think ferdium might just do that.

I'm gonna follow up with a little tutorial in a few days.

Feel free to apply it to any software you desire to run!
 
Back
Top