Arduino IDE BSD problem

Hi guys,

Currently, i'm trying to install Arduino IDE on freeBSD. I've installed it by ports but when i try to launch it, i got this error :

$ arduino
ELF binary type "0" not known.
/usr/local/arduino/arduino: readlink: Exec format error
ELF binary type "0" not known.
/usr/local/arduino/arduino: dirname: Exec format error
Error: Could not find or load main class processing.app.Base

Anybody here have already get this error ? Thank you !

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html

install linux_base

options COMPAT_LINUX to core or linux_load="YES" in /boot/loader.conf

then

brandelf -t Linux arduino

Thank you, my IDE is now Working but when i try to upload some code the IDE say stk500 and don't find my arduino uno.

I've tried to install uarduno but it won't compile. Can you help me ?