2003-10-07 18:57:18 +02:00
|
|
|
|
2007-10-19 01:14:58 +02:00
|
|
|
Most users who realize that INSTALL files still exist should simply
|
|
|
|
follow the directions at
|
|
|
|
https://www.torproject.org/docs/tor-doc-unix
|
2003-10-07 18:57:18 +02:00
|
|
|
|
2010-12-22 06:54:29 +01:00
|
|
|
If you got the source from git, run "./autogen.sh", which will
|
2008-01-23 20:08:53 +01:00
|
|
|
run the various auto* programs. Then you can run ./configure, and
|
|
|
|
refer to the above instructions.
|
2003-10-07 18:57:18 +02:00
|
|
|
|
2006-03-28 09:28:52 +02:00
|
|
|
If it doesn't build for you:
|
2005-03-29 03:03:07 +02:00
|
|
|
|
2004-11-10 02:20:17 +01:00
|
|
|
If you have problems finding libraries, try
|
2003-10-07 23:27:33 +02:00
|
|
|
CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
|
|
|
|
./configure
|
2006-02-18 02:14:28 +01:00
|
|
|
or
|
|
|
|
./configure --with-libevent-dir=/usr/local
|
2003-10-07 23:27:33 +02:00
|
|
|
rather than simply ./configure.
|
|
|
|
|
2004-08-25 21:07:51 +02:00
|
|
|
If you have mysterious autoconf failures while linking openssl,
|
|
|
|
consider setting your LD_LIBRARY_PATH to the openssl lib directory.
|
|
|
|
For example, "setenv LD_LIBRARY_PATH /usr/athena/lib".
|
|
|
|
|
2006-03-28 09:28:52 +02:00
|
|
|
Lastly, check out
|
2010-12-22 06:54:29 +01:00
|
|
|
https://www.torproject.org/docs/faq#DoesntWork
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2011-03-27 05:29:00 +02:00
|
|
|
How to do static builds of tor:
|
2011-03-10 10:22:32 +01:00
|
|
|
|
2011-03-27 05:29:00 +02:00
|
|
|
Tor supports linking each of the libraries it needs statically. Use the
|
|
|
|
--enable-static-X ./configure option in conjunction with the --with-X-dir
|
|
|
|
option for libevent, zlib, and openssl. For this to work sanely, libevent
|
|
|
|
should be built with --disable-shared --enable-static --with-pic, and
|
|
|
|
OpenSSL should be built with no-shared no-dso.
|
2011-03-10 10:22:32 +01:00
|
|
|
|
2011-03-27 05:29:00 +02:00
|
|
|
If you need to build tor so that system libraries are also statically linked,
|
|
|
|
use the --enable-static-tor ./configure option. This won't work on OS X
|
|
|
|
unless you build the required crt0.o yourself. It is also incompatible with
|
|
|
|
the --enable-gcc-hardening option.
|
|
|
|
|
|
|
|
An example of how to build a mostly static tor:
|
2011-03-10 10:22:32 +01:00
|
|
|
./configure --enable-static-libevent \
|
|
|
|
--enable-static-openssl \
|
|
|
|
--enable-static-zlib \
|
|
|
|
--with-libevent-dir=/tmp/static-tor/libevent-1.4.14b-stable \
|
|
|
|
--with-openssl-dir=/tmp/static-tor/openssl-0.9.8r/ \
|
|
|
|
--with-zlib-dir=/tmp/static-tor/zlib-1.2.5
|
|
|
|
|
2011-03-27 05:29:00 +02:00
|
|
|
An example of how to build an entirely static tor:
|
2011-03-10 10:22:32 +01:00
|
|
|
./configure --enable-static-tor \
|
|
|
|
--with-libevent-dir=/tmp/static-tor/libevent-1.4.14b-stable \
|
|
|
|
--with-openssl-dir=/tmp/static-tor/openssl-0.9.8r/ \
|
|
|
|
--with-zlib-dir=/tmp/static-tor/zlib-1.2.5
|
|
|
|
|