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

Anybody here have already get this error ? Thank you !

install linux_base

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


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 ?