Thornleyware logo

Providing customized source code control with CVS

Compiling CVS

Decisions:

You need to decide if you have a special place in the directory tree to put cvs, and if you wish to use Kerberos for authentication and encryption. I recommend leaving CVS in the normal place, and using methods other than Kerberos, so you will not normally need the compilation options.

Process:

It is usually easy to compile and install CVS on Unix. Unfortunately, there are problems that can come up, and it is beyond the scope of this web site to troubleshoot. Since most people will not be compiling their own CVS, and most who do compile their own will find it easy, this is unlikely to happen to any specific user. Note that this is very similar to how most open source software is compiled and installed.

1. Unpack What you have downloaded is probably a file ending with ".tar.gz" or ".tgz", indicating that this has been compressed for faster downloading with gzip after having numerous files packed into one with tar. To unpack these:

  1. gunzip <file name> This may take a minute or so, and will change the compressed file into another one.
  2. tar xf <file name> This will usually run fast, and will normally create a directory of the download contents. Do everything else in that directory.

2. configure This is usually as simple as typing in ./configure. There are options you might need to use:

This step will take several minutes, and print out a long list of what you have installed in libraries, details of how your C compiler works, and so forth.

If you ever want to return to this step, type make distclean to clear out the results and start over.

3. make Type make. This will compile all of the files and can take some time. If it doesn't seem to finish correctly, there may be a problem with dependency tracking, and you should start over again with
make distclean
./configure --disable-dependency-tracking
make

4. Install You need to do this as the root user, so type su and enter the root password. Then you type make install, and stop being the root user with exit.

Next: Configuring CVS

All contents of these pages Copyright 2002 by David H. Thornley. Permission granted for verbatim copying and use within an organization.


Contact: webmaster@thornleyware.com