English Norwegian Bokmål
Part II. Common Tasks
Chapter 10. Linux® Binary Compatibility
Linux(R) Binary Compatibility
FreeBSD provides binary compatibility with Linux(R), allowing users to install and run most Linux(R) binaries on a FreeBSD system without having to first modify the binary. It has even been reported that, in some situations, Linux(R) binaries perform better on FreeBSD than they do on Linux(R).
However, some Linux(R)-specific operating system features are not supported under FreeBSD. For example, Linux(R) binaries will not work on FreeBSD if they overly use i386(TM) specific calls, such as enabling virtual 8086 mode.
Support for 64-bit binary compatibility with Linux(R) was added in FreeBSD 10.3.
After reading this chapter, you will know:
How to enable Linux(R) binary compatibility on a FreeBSD system.
How to install additional Linux(R) shared libraries.
How to install Linux(R) applications on a FreeBSD system.
The implementation details of Linux(R) compatibility in FreeBSD.
Before reading this chapter, you should:
Know how to install crossref:ports[ports,additional third-party software].
Configuring Linux(R) Binary Compatibility
By default, Linux(R) libraries are not installed and Linux(R) binary compatibility is not enabled. Linux(R) libraries can either be installed manually or from the FreeBSD Ports Collection.
Before attempting to build the port, load the Linux(R) kernel module, otherwise the build will fail:
# kldload linux
For 64-bit compatibility:
# kldload linux64