views:

95

answers:

3
+3  A: 

You can run a lot of Linux programs on FreeBSD, see http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html.

If this doesn't work, the easiest solution would be to recompile your program on FreeBSD.

Bastien Léonard
Thank you. This means, I don't have some magic solution, which allows to build FreeBSD binaries with GCC on my Ubuntu computer?
Alex Farber
It's possible (it's called cross-compiling), but it's not necessarily the easiest solution. Maybe there's a package which installs GCC for FreeBSD; I can't realy help you here.
Bastien Léonard
+1  A: 

A large number of linux programs can be compiled on BSD systems however they are not the same operating system. A binary compiled on an Ubuntu Box will not run on a BSD box. Your best bet is always to compile on the system you plan to run on.

Mimisbrunnr
+1  A: 

Try branding the executable as a linux executable using brandelf (you still need all the dependent libraries setup though, or try linking it statically

http://www.freebsd.org/cgi/man.cgi?query=brandelf&apropos=0&sektion=0&manpath=FreeBSD+8.0-RELEASE&format=html

Gautham Ganapathy