| 1 |
Brief installation instructions for squid |
| 2 |
SRE, Tue Jul 25 08:52:03 2000 |
| 3 |
$CVS Id$ |
| 4 |
________________________________________________________________ |
| 5 |
|
| 6 |
|
| 7 |
Quick start |
| 8 |
--------------- |
| 9 |
For a source distribution (example: squid.tar.gz), on a UNIX system: |
| 10 |
|
| 11 |
gunzip squid.tar.gz Uncompresses the archive. |
| 12 |
tar xf squid.tar Unpacks the archive. |
| 13 |
(makes a new directory, squid) |
| 14 |
cd squid Moves into the distribution toplevel directory. |
| 15 |
./configure Configures the software for your system. |
| 16 |
make Builds the binaries. |
| 17 |
make check (optional) Runs the testsuite. |
| 18 |
make install (optional) Installs the software. |
| 19 |
(You may need to be root to install.) |
| 20 |
make clean (optional) Cleans up. |
| 21 |
make deinstall Deletes SQUID from your system... assuming you |
| 22 |
haven't changed the Makefile since you installed. |
| 23 |
(may need to be root.) |
| 24 |
|
| 25 |
Note that the software doesn't have to be "installed" to run. After |
| 26 |
the "make", it's sitting in the squid directory and you can test it |
| 27 |
out there, or copy any of the executables anywhere you want by hand. |
| 28 |
|
| 29 |
Any failure to install on a UNIX system is a bug. Please report it. |
| 30 |
|
| 31 |
Man pages are provided for some programs; see Man/ subdirectory. |
| 32 |
|
| 33 |
|
| 34 |
---------------------------------------- |
| 35 |
More fancy configuration instructions: |
| 36 |
---------------------------------------- |
| 37 |
The only command you should want to putz around with is the |
| 38 |
./configure; for instance, you may want to change where SQUID is going |
| 39 |
to be installed. The default is to install into /usr/local/bin and |
| 40 |
other /usr/local subdirectories as follows: |
| 41 |
executables in /usr/local/bin |
| 42 |
man pages in /usr/local/man/man1 |
| 43 |
header files in /usr/local/include |
| 44 |
libsquid.a in /usr/local/lib |
| 45 |
scripts in /usr/local/bin |
| 46 |
|
| 47 |
To install in bin, man/man1, include, and lib subdirectories of some |
| 48 |
other directory, reset the prefix in the configuration like this: |
| 49 |
% ./configure prefix=/usr/mylocal |
| 50 |
|
| 51 |
For heterogenous computing environments, also set the exec_prefix, |
| 52 |
which gives you some flexibility for installing architecture dependent |
| 53 |
files (e.g. the programs). For example, the St. Louis installation |
| 54 |
sets prefix=/usr/seshare/ exec_prefix=/usr/seshare/`uname`, and for |
| 55 |
Linux (for example), this results in: |
| 56 |
executables in /usr/seshare/Linux/bin |
| 57 |
man pages in /usr/seshare/man |
| 58 |
header files in /usr/seshare/include |
| 59 |
libsquid.a in /usr/seshare/Linux/lib |
| 60 |
scripts in /usr/seshare/Linux/bin |
| 61 |
|
| 62 |
|
| 63 |
The configure script has a few other options that may be useful; |
| 64 |
./configure --help lists them. An important one is --enable-lfs, which |
| 65 |
turns on optional support for LFS, the Large File Summit, which |
| 66 |
enables squid to deal with >2 GB files if your system is capable of |
| 67 |
it. This is highly recommended, because sequence files can easily |
| 68 |
exceed standard 2 GB filesystem limitations these days |
| 69 |
|
| 70 |
FYI, the configuration incantation here in StL is: |
| 71 |
% env CFLAGS="-O3" ./configure --enable-lfs prefix=/usr/seshare/ exec_prefix=/usr/seshare/`uname` |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|