tar
file which was compressed using gzip
. The code can be extracted
into a directory unpackdir using
cd unpackdir gunzip gnats-4.1.999.tar.gz tar xvf gnats-4.1.999.tar
The sources reside in a directory called gnats-4.1.999 when unpacked. We call this the top level of the source directory, or srcdir. The sources for the gnats tools are in the subdirectory gnats-4.1.999/gnats/*. Lists of files included in the distribution are in each directory in the file MANIFEST.
You may wish to alter the installation directory for the Emacs lisp
files. If your Emacs lisp library is not in
prefix/share/emacs/site-lisp, edit the file
srcdir/gnats/Makefile.in
. Change the variable
lispdir
from prefix/emacs/site-lisp to the
directory containing your Emacs lisp library. For information on
prefix, see prefix.
gnats
user. You can actually name this
user whatever you want to, as long as it is a valid username on your
system, but we strongly recommend that you call the user gnats
.
If you do decide to give it some other name, remember to use the option
--enable-gnats-user
when running configure
below. Below, we
will anyway refer to this user by the name gnats
.
This user must have an entry in the file /etc/passwd. As for
ordinary users, create a standard home directory for the gnats
user. The default PATH
for this user should contain
exec-prefix/bin and
exec-prefix/libexec/gnats. The exec-prefix value
is configurable with the --exec-prefix
configure option described
below, but for standard installations, these two directories correspond
to /usr/local/bin and /usr/local/libexec/gnats.
configure
. You can nearly always run configure
with
the simple command
./configure
and the “Right Thing” happens:
-d
databasename or --directory=
databasename, or
set the GNATSDB environment variable to point to some other database.
The most common options to configure
are listed below:
configure [ --prefix=prefix ] [ --exec-prefix=exec-prefix ] [ --enable-gnats-service=service-name ] [ --enable-gnats-user=username ] [ --enable-gnatsd-user-access-file=path ] [ --enable-gnatsd-host-access-file=path ] [ --enable-gnats-dblist-file=path ] [ --enable-gnats-default-db=path ] [ --with-kerberos ] [ --with-krb4 ] [ --verbose ]
--prefix=
prefix--exec-prefix=
exec-prefix--enable-gnats-service=
service-name
--enable-gnats-user=
username
--enable-gnatsd-user-access-file=
path
--enable-gnatsd-host-access-file=
path
--enable-gnats-dblist-file=
path
Default is prefix/etc/gnats/databases.
--enable-gnats-default-db=
path
-d
or --databasename
option, and when the
GNATSDB envrionment variable hasn't been set. Default is
/prefix/com/gnatsdb.
--with-kerberos
--with-krb4
--verbose
configure
runs.
configure
supports several more options which allow you to
specify in great detail where files are installed. For a complete list
of options, run ./configure --help
in the source directory.
You can build gnats in a different directory (objdir) from the
source code by calling the configure
program from the new
directory, as in
mkdir objdir cd objdir srcdir/configure ...
By default, make
compiles the programs in the same directory
as the sources (srcdir).
make
, then run
make all info
from the directory where configure
created a Makefile
(this is objdir if you used it, otherwise srcdir.) These
targets indicate:
all
info
makeinfo
.