Building XFree86® from a Source Distribution : Building and installing the distribution
Previous: Using a shadow directory of symbolic links for the build
Next: Reconfiguring the server (using the source distribution)

## 4. Building and installing the distribution

Before building the distribution, read through your OS-specific documentation in `README` file in `xc/programs/Xserver/hw/xfree86/doc`. After that go to your build directory which will either be the `xc` directory or the shadow tree which was create previously, and run "`make World"`.

It is also advisable to that you redirect standard output stdout and standard error output stderr to `World.Log`, so that you can track down problems that might occur during the build.

With Bourne-like shells (examples include the Bash, the Korn, and `zsh` shells) use the following command:

> `make World > World.log 2>&1`

for C-shell variants (`csh`, `tcsh`, etc), use:

> `make World >& World.log`

You can then follow the progress of the build by running:

> `tail -f World.log`

in a terminal window.

When the build is finished, you should check the `World.Log` file to see if there were any problems. If there were not, then install the binaries. By default "make World" stops when the first error is found. To restart that same build process after correcting the various problems, run just 'make'.

If Imakefiles or part of the build configuration were changed as part of correcting the problem, then either re-run "make World", or run "make Everything".

If instead, you want "make World" to continue past errors, then instead execute it as follows:

for Bourne-like shells:

> `make WORLDOPTS=-k World > World.log 2>&1`

for C-shell variants:

> `make WORLDOPTS=-k World >& World.log`

For installation, run "`make install`" and "`make install.man`" and ensure that there is enough space in the `/usr/X11R6` directory.

If instead you want to install XFree86 on a filesystem other than `/usr`, make a symbolic link to `/usr/X11R6` before running the install process.

Building XFree86® from a Source Distribution : Building and installing the distribution
Previous: Using a shadow directory of symbolic links for the build
Next: Reconfiguring the server (using the source distribution)