A few words on installation on various platforms:
If you haven't installed any software like this before, that is distributed in source form, here are some guidelines to help you install it locally at your account. Please note that a mail to the system administrator may be less work for you.
We assume that you have put the archive (``chktex.tar.gz'') in a subdir of yours, with path ``~/tmp''. We further assume that your shell is ``csh'' or ``tcsh''. Do the following:
> cd ~/tmp > gunzip chktex.tar.gz > tar xf chktex.tar
User defined regular expressions are defined using UserWarnRegex in the ``chktexrc'' file. See warning 44 for more information.
This option needs the path of your elisp directory as argument, e.g. ``-enable-emacs-hack=/home/myself/elisp'' or similar.
You'll also have to add the following line to your ``.emacs'' file:
(require 'chktex)You can now access ChkTeX from the ``Command'' menu in AUCTEX. To cycle through the messages, type
C-x `
.
While more stable than the previous solution, this is also significantly less elegant -- in computing terms, this is the ``brute force'' approach.
This may be useful if you're running short of disk space (the time savings are neglible).
If you are installing the program on your local account, use the following command:
> configure --prefix ~/
Add eventual extra flags as specified above. This command will generate a significant amount of output, this can usually be ignored.
> make > make install
> rehash
To make the remaining parts of your system aware of this, you'll have to log out and re-log in, I'm afraid. However, you should delay this until you've completed this installation procedure.
> make check
Now, I would suggest that you take a peak at the ``OpSys.c'' file, and edit it appropiately, for more comfort. This should not be necessary, though, at least not the first time.
Finally, you may now compile and link all .c
files. Do not
forget to define ``HAVE_CONFIG_H'' to 1 (on the command-line,
for instance). If the ``config.h'' you wish to use has another
name, define ``CONFIG_H_NAME'' to that (in that case, don't
define ``HAVE_CONFIG_H'').
Put the directory path of the ``chktexrc'' file in a environment variable named ``CHKTEXRC''. The files ``deweb.in'' and ``chkweb'' should be moved to a directory in your path. These files may need further setup, as they haven't got the location of perl initialized.
If your compiler/the compiled program complains (or crashes!), you may try the hints listed below. Please note that it only makes sense to try these hints if your compiler fails to produce a working program.