Next: , Previous: , Up: Getting started   [Contents]

2.1 Initial setup

If you have checked out the source tree from the Bazaar repository you will need to create the build files with the following command,

$ ./bootstrap

Before building any packages you will need to run the top-level configure script. There is only one configuration parameter, the installation prefix, specified with --prefix. For example, to install all the compiled packages under /gnu use:

$ ./configure --prefix=/gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for recsel... /usr/bin/recsel
checking for recfmt... /usr/bin/recfmt
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating gsrc
config.status: creating
config.status: creating
config.status: creating GNUmakefile
config.status: creating doc/Makefile

You can optionally install the documentation and the gsrc script (see Finding packages). Note that these are installed to the directory specified in the previous step. Be sure to set your environment to be able to use them (see Setting your environment).

$ make install