-
Notifications
You must be signed in to change notification settings - Fork 85
Building
The README.md file in the source code provides some examples for configure script arguments for a number of Linux distributions. This page will show all the steps required primarily for Ubuntu 16.04 (and later) to build and install NetworkManager-l2tp, although it also has notes that are interspersed that are applicable for other Linux distributions or versions.
Note: the backslash character \
that appears in the below examples is the shell line continuation character and is safe to copy and paste to the command-line.
- Prerequisites
- Obtain the source code
- Configuration
- Building
- Installation
Issue the following on the command-line to install the prerequisite build-time and run-time packages :
sudo apt install \
git \
intltool \
libtool \
network-manager-dev \
libnm-util-dev \
libnm-glib-dev \
libnm-glib-vpn-dev \
libnm-gtk-dev \
libnm-dev \
libnma-dev \
ppp-dev \
libdbus-glib-1-dev \
libsecret-1-dev \
libgtk-3-dev \
libglib2.0-dev \
xl2tpd \
strongswan
Note: libnma is only available and needed on NetworkManager 1.2 and later based Linux distributions.
We'll use Git to obtain the latest copy of the source code and then cd
into the top level directory (which the subsequent examples assume) :
git clone https://github.com/nm-l2tp/network-manager-l2tp.git
cd network-manager-l2tp.git
Note: if you are using a NetworkManager 0.9 or 1.0 based Linux distribution, switch to the nm-1-0
branch with the following:
git checkout nm-1-0
As mentioned in the README.md file, issue the following for Ubuntu or Debian:
./autogen.sh
./configure \
--disable-static --prefix=/usr \
--sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu \
--libexecdir=/usr/lib/NetworkManager \
--localstatedir=/var \
--with-pppd-plugin-dir=/usr/lib/pppd/2.4.7
Note: if you are using 32bit Linux, remove --libdir=/usr/lib/x86_64-linux-gnu
from the above.
Issue the following :
make
Issue the following :
sudo make install