diff --git a/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml b/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml index 077e1c777e..c2a1904be6 100644 --- a/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml @@ -4,25 +4,48 @@ $FreeBSD$ --> - - &linux; Binary Compatibility + + + + &linux; Binary Compatibility + - JimMockRestructured and parts updated by + + + Jim + Mock + + Restructured and parts updated by + + - Brian N.HandyOriginally contributed by - RichMurphey + + + Brian N. + Handy + + Originally contributed by + + + + + Rich + Murphey + + - - Synopsis - Linux binary - compatibility + + Linux binary compatibility + binary compatibility Linux @@ -43,6 +66,7 @@ calls, such as enabling virtual 8086 mode. After reading this chapter, you will know: + How to enable &linux; binary compatibility on a &os; @@ -93,12 +117,12 @@ &prompt.root; cd /usr/ports/emulators/linux_base-f10 &prompt.root; make install distclean - Once the port is installed, enable &linux; binary - compatibility by loading the linux - module. Type the following as - root: + Once the port is installed, enable &linux; binary + compatibility by loading the linux module. + Type the following as + root: - &prompt.root; kldload linux + &prompt.root; kldload linux In order for &linux; compatibility to always be enabled at boot time, add the following line to @@ -120,26 +144,26 @@ Id Refs Address Size Name Users who prefer to statically link &linux; binary - compatibility into the kernel should add options - COMPAT_LINUX to the custom kernel configuration - file. Compile and install the new kernel as described in . + compatibility into the kernel should add + options COMPAT_LINUX to the custom kernel + configuration file. Compile and install the new kernel as + described in . Installing Libraries Manually While using the Ports Collection is recommended, &linux; libraries can be installed manually. The &linux; shared - libraries required by a program and the runtime linker - should be copied to /compat/linux. Any shared - libraries opened by &linux; programs run under &os; will - look in this directory first. For example, if a &linux; - program loads /lib/libc.so, &os; will - first try to open - /compat/linux/lib/libc.so, and if that - does not exist, it will then try - /lib/libc.so. Shared libraries should - be installed to /compat/linux/lib rather than - to the paths that the &linux; ld.so + libraries required by a program and the runtime linker should + be copied to /compat/linux. Any shared + libraries opened by &linux; programs run under &os; will look + in this directory first. For example, if a &linux; program + loads /lib/libc.so, &os; will first try + to open /compat/linux/lib/libc.so, and if + that does not exist, it will then try + /lib/libc.so. Shared libraries should be + installed to /compat/linux/lib rather + than to the paths that the &linux; ld.so reports. Generally, one will need to look for the shared @@ -152,13 +176,16 @@ Id Refs Address Size Name How to Install Additional Shared Libraries - shared libraries + + shared libraries + If the linux_base port is installed and an application still complains about missing shared - libraries, there are two methods root - can use to determine which shared libraries the &linux; - binaries need. + libraries, there are two methods + root can use to + determine which shared libraries the &linux; binaries + need. If a &linux; system is available, determine which shared libraries the application needs, and copy them to the &os; @@ -175,7 +202,9 @@ libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0 libX11.so.3 (DLL Jump 3.1) => /usr/X11/lib/libX11.so.3.1.0 libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29 - symbolic links + + symbolic links + Copy all the files in the last column into /compat/linux on the &os; system, with the names in the first column as @@ -256,7 +285,9 @@ Abort &prompt.user; brandelf -t Linux my-linux-elf-binary - GNU toolchain + + GNU toolchain + Since the GNU toolchain places the appropriate branding information into ELF binaries automatically, this step is usually not necessary. @@ -271,7 +302,8 @@ Abort In order to install a &linux; RPM-based application, first install the archivers/rpm2cpio package or - port. Once installed, root can use this + port. Once installed, + root can use this command to install a .rpm as follows: @@ -298,22 +330,24 @@ Abort order hosts, bind multi on - This order specifies that - /etc/hosts is searched first and DNS - is searched second. When + This order specifies that /etc/hosts + is searched first and DNS is searched second. When /compat/linux/etc/host.conf does not exist, &linux; applications use /etc/host.conf and complain about the - incompatible &os; syntax. Remove - bind if a name server is not configured - using /etc/resolv.conf. + incompatible &os; syntax. Remove bind if a + name server is not configured using + /etc/resolv.conf. - @@ -332,11 +366,11 @@ multi on Mathematica - This section describes the process of installing the - &linux; version of &mathematica; 9.X - onto a &os; system. &mathematica; - is a commercial, computational software program used in - scientific, engineering, and mathematical fields. A 30 day trial version is + This section describes the process of installing the &linux; + version of &mathematica; 9.X onto a + &os; system. &mathematica; is a + commercial, computational software program used in scientific, + engineering, and mathematical fields. A 30 day trial version is available for download from wolfram.com/mathematica. @@ -347,11 +381,11 @@ multi on textproc/linux-f10-aspell package or port is installed and that the &man.linprocfs.5; file system is mounted. - + &prompt.root; sysctl kern.fallback_elf_brand=3 - &os; will now assume that unbranded ELF binaries - use the &linux; ABI which should allow the + &os; will now assume that unbranded ELF binaries use the + &linux; ABI which should allow the installer to execute from the CDROM. The downloaded file will be saved to @@ -375,7 +409,6 @@ Enter the installation directory, or press ENTER to select /usr/local/Wolfram/Ma Now installing... *********************** Installation complete. - @@ -387,8 +420,7 @@ Installation complete. fonts to be installed locally. This means that these fonts need to be copied from the CDROM or from a host with &mathematica; installed to the - local machine. These fonts are normally stored in - /cdrom/Unix/Files/SystemFiles/Fonts on the CDROM, or /usr/local/mathematica/SystemFiles/Fonts @@ -441,9 +473,9 @@ Installation complete. --> - +