source: doc/INSTALL @ 6f383ee

mei_rt2mei_rt2_fix_1
Last change on this file since 6f383ee was 09531ca, checked in by Mei <mei@…>, 12 years ago

1) add config check for perl thread, and optional jni.h
2) tweak for freebsd8

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[c0bdce8]1For Java installation instructions, see doc/java_install.
2
[9806e76]3Prior to building libabac
4   you may need to install flex, bison, and GNU readline library
5   you must install YAP and libstrongswan
[e205b49]6   Please check doc/dependencies for other software dependencies
[9806e76]7
8Download yap-6.2.2 from www.dcc.fc.up.pt
9    http://www.dcc.fc.up.pt/~vsc/Yap/yap-6.2.2.tar.gz
10
[671c065]11$./configure --enable-dynamic-loading --enable-use-malloc=yes
[9806e76]12$make
13$make library
14$sudo make install_library
[02888af]15
[671c065]16(Note: If you ever run into the OOOPS message when installing Yap,
17manually clear out all traces of Yap from your /usr/local especially
18/usr/local/share)
19
[d7abe40]20
21You can also install yap on Ubuntu using
22$ sudo apt-get install yap
23
[137b55f]24Download strongswan-4.6.4 from strongswan.org:
25    http://download.strongswan.org/strongswan-4.6.4.tar.bz2
[02888af]26
[b84753b]27
[09531ca]28FreeBSD users: add --enable-kernel-pfkey --enable-kernel-pfroute
29--disable-kernel-netlink --disable-tools --disable-scripts
30--disable-pluto --with-group=wheel to strongswan ./configure
[6aac9f8]31
[3f8f00f]32Linux users: add --disable-gmp --enable-openssl to strongswan ./configure
33to avoid long credential creation times. The entropy sources
34libstrongswan uses by default gather entropy slowly on Linux.  These
35flags allow it to gather entropy from the same sources as openssl, which
[137b55f]36is noticeably faster. The internal strongswan libraries and plugins
37are installed in /usr/local/lib/ipsec by default unless
38--with-ipseclibdir and --with-plugindir are set otherwise.
[3f8f00f]39
[137b55f]40$ tar xjvf strongswan-4.6.4.tar.bz2
41$ cd strongswan-4.6.4
[3f8f00f]42$ # see note above about configure flags
43$ ./configure --enable-monolithic
[02888af]44$ cd src/libstrongswan
45$ make && sudo make install
46
[f675a89]47Be sure to make note of the directory into which you've untarred
[137b55f]48strongswan-4.6.4.tar.bz2. You will use this in the next step.
[02888af]49
50BUILDING LIBABAC
51
[b84753b]52FreeBSD users will need to install flex-2.5.35 or greater from ports and
53use --with-flex=/usr/local/bin/flex --with-extra-includes=/usr/local/include
54on ./configure in addition to --with-strongswan
55
[137b55f]56$ STRONGSWAN_SRC_DIR=path/to/strongswan-4.6.4
57$ STRONGSWAN_LIB_DIR=path/to/strongswan-ipseclibdir (or /usr/local/lib/ipsec)
58$ ./configure --with-strongswan=$STRONGSWAN_SRC_DIR --with-strongswan-ld-path=$STRONSWAN_LIB_DIR
[acd277a]59$ make
60$ sudo make install
[43478b1]61
Note: See TracBrowser for help on using the repository browser.