c19f09c6484631bc1ef1d970517dcbd10bec513c
[platform/upstream/openconnect.git] / www / building.xml
1 <PAGE>
2         <VAR match="VAR_ORIGIN" replace="" />
3         <VAR match="VAR_CVSID" replace=""/>
4         <INCLUDE file="inc/header.tmpl" />
5
6         <VAR match="VAR_SEL_STARTED" replace="selected" />
7         <VAR match="VAR_SEL_BUILDING" replace="selected" />
8         <PARSE file="menu1.xml" />
9         <PARSE file="menu2-started.xml" />
10         
11         <INCLUDE file="inc/content.tmpl" />
12
13         <h1>Building OpenConnect</h1>
14
15 <p>Unless you need to test the very latest version, you should not
16 need to build OpenConnect for yourself. Your operating system should
17 have a <a href="packages.html">prepackaged</a> version which you can
18 install; if it does not then file a bug or enhancement request asking for
19 one.</p>
20
21 <h2>Requirements</h2>
22 <p>To build OpenConnect from its source code, you will need the following
23 libraries and tools installed:</p>
24
25 <ul>
26   <li><b><tt>libxml2</tt></b></li>
27   <li><b><tt>zlib</tt></b></li>
28   <li>Either <b><tt>OpenSSL</tt></b> or <b><tt>GnuTLS</tt></b></li>
29   <li><b><tt>pkg-config</tt></b></li>
30 </ul>
31 And <em>optionally</em> also:
32 <ul>
33   <li><b><a href="http://code.google.com/p/libproxy/">libproxy</a></b></li>
34 </ul>
35 <p>OpenConnect supports the use of HTTP and SOCKS proxies to connect to the
36 AnyConnect service, even without using libproxy. You may wish to use libproxy
37 if you want OpenConnect to automatically use the appropriate proxies for your
38 environment, without having to manually give it the <tt>--proxy</tt> argument
39 on the command line.</p>
40
41 <h2>Install vpnc-script</h2>
42  <p>Since version 3.17, The <a href="vpnc-script.html">vpnc-script</a> that OpenConnect
43  uses to configure the network is no longer optional, so it needs to be told at compile
44  time where to find that script.</p>
45  <p>The <tt>configure</tt> script will check whether <tt>/etc/vpnc/vpnc-script</tt>
46  exists and can be executed, and will fail if not. If you don't already have
47  a copy then you should install one. It might be in a separate <tt>vpnc-script</tt>
48  package for your operating system, it might be part of their <tt>vpnc</tt> package,
49  and there's one linked from from the <a href="vpnc-script.html">vpnc-script page</a>,
50  if you need to download it manually. Install it as <tt>/etc/vpnc/vpnc-script</tt>.</p>
51
52 <p>If you do not want to use the standard location, you can configure OpenConnect to
53  use a different location by default. When running the <tt>./configure</tt> script
54  in the instructions below, you can append an argument such as <tt>--with-vpnc-script=<i>/where/I/put/vpnc-script</i></tt> to its command line. Note that the path you give will not be checked; the script doesn't have to be present when you <b>build</b> OpenConnect. But of course OpenConnect won't work very
55 well without it, so you'll still have to install it later.</p>
56
57
58 <h2>Building OpenConnect</h2>
59
60 <p>If you checked the source code out from git rather from a release tarball
61   then run this command first to prepare the build system:</p>
62   <ul>
63     <li><tt>./autogen.sh</tt></li>
64   </ul>
65   <p>Then to build it, run the following commands:</p>
66   <ul>
67     <li><tt>./configure</tt></li>
68     <li><tt>make</tt></li>
69     <li><tt>make install</tt> <i>(If you want to install it)</i></li>
70   </ul>
71
72 <p>Note that OpenConnect will attempt to use the OpenSSL library by default.
73 If you want it to use GnuTLS instead, then add <tt>--with-gnutls</tt> to the
74 <tt>./configure</tt> command above.</p>
75
76 <p>If compilation fails, please make sure you have a working compiler and the
77 <b>development</b> packages for all the required libraries mentioned above. If
78 it still doesn't build, please send the full output in a plain-text mail to the
79 <a href="mail.html">mailing list</a>.</p>
80
81 <h2>TUN/TAP driver</h2>
82
83 <p>Mac OS X users will also need to install the
84 <a href="http://tuntaposx.sourceforge.net/">Mac OS X tun/tap driver</a>, and Solaris/OpenIndiana users will need the <a href="http://www.whiteboard.ne.jp/~admin2/tuntap/">Solaris one</a>. Note that for IPv6 support, the Solaris tun/tap driver from 16th Nov 2009 or newer is required.</p>
85
86         <INCLUDE file="inc/footer.tmpl" />
87 </PAGE>
88