| 1 |
How to install: |
| 2 |
|
| 3 |
$ ./configure |
| 4 |
$ make install |
| 5 |
$ hash |
| 6 |
$ ctorrent -h |
| 7 |
|
| 8 |
If SSL support is not found, the public-domain SHA1 code will be used. |
| 9 |
To force the use of this code, specify: |
| 10 |
--with-ssl=no |
| 11 |
as a parameter to the configure script. |
| 12 |
To give configure a hint about where to find SSL on your system, specify: |
| 13 |
--with-ssl=DIR |
| 14 |
where DIR is the common directory under which sha.h and the SSL libraries |
| 15 |
are located. For example, if the files are located at: |
| 16 |
/opt/include/openssl/sha.h |
| 17 |
/opt/lib/libcrypto.a |
| 18 |
use: |
| 19 |
--with-ssl=/opt |
| 20 |
There are several combinations of subdirectories that will be tried by |
| 21 |
the configure script. If all else fails, create symbolic links for |
| 22 |
sha.h and the applicable library (libssl.a, libcrypto.a, libcrypt.a, or |
| 23 |
libmd.a) in a single directory and specify that. |
| 24 |
|
| 25 |
Or set the CPPFLAGS environment variable to "-Idir" (where "dir" is the |
| 26 |
directory in which sha.h resides) and the LDFLAGS environment variable |
| 27 |
to "-Ldir" (where "dir" is the directory in which the library containing |
| 28 |
SHA1 support resides), then re-run configure. |
| 29 |
|
| 30 |
Check the documentation or man page for your shell to determine how to |
| 31 |
set an environment variable. |
| 32 |
Example using csh/tcsh: |
| 33 |
setenv CPPFLAGS "-I/usr/local/include" |
| 34 |
|
| 35 |
Hint: You can use the "strings" command to help determine whether SHA1 |
| 36 |
support is present in a library, as in: |
| 37 |
strings libcrypto.a | grep SHA1_Init |
| 38 |
|