centos7 minial 环境下安装pptpd

1、下载pptpd

wget http://ftp.ntua.gr/pub/net/poptop/pptpd/pptpd-1.4.0/pptpd-1.4.0.tar.gz

2、tar -zxvf pptpd-1.4.0.tar.gz

3、cd pptpd-1.4.0

4、./configure

5、make

报错
make  all-am
make[1]: Entering directory `/opt/pptpd-1.4.0'
for d in plugins; do make -w -C $d all; done
make[2]: Entering directory `/opt/pptpd-1.4.0/plugins'
gcc -o pptpd-logwtmp.so -shared -O2 -g -I.. -I../../include -fPIC pptpd-logwtmp.c -lutil
pptpd-logwtmp.c:15:23: fatal error: pppd/pppd.h: No such file or directory
 #include
                       ^
compilation terminated.
make[2]: *** [pptpd-logwtmp.so] Error 1
make[2]: Leaving directory `/opt/pptpd-1.4.0/plugins'
make[1]: *** [all-local] Error 2
make[1]: Leaving directory `/opt/pptpd-1.4.0'
make: *** [all] Error 2

6、yum install ppp-devel

原因是ppp软件包版本和pppd.h 不匹配

7、make && make install

8、pptpd -h

pptpd v1.4.0
Usage: pptpd [options], where options are:

 [-c] [--conf file]        Specifies the config file to read default
                           settings from (default is /etc/pptpd.conf).
 [-d] [--debug]            Turns on debugging (to syslog).
 [-e] [--ppp file]         Use alternate pppd binary, default /usr/sbin/pppd.
 [-f] [--fg]               Run in foreground.
 [-h] [--help]             Displays this help message.
 [-i] [--noipparam]        Suppress the passing of the client's IP address
                           to PPP, which is done by default otherwise.
 [-l] [--listen x.x.x.x]   Specifies IP of local interface to listen to.
 [-o] [--option file]      Specifies the PPP options file to use
                           (default is /etc/ppp/options).
 [-p] [--pidfile file]     Specifies the file to write the process ID to
                           (default is /var/run/pptpd.pid).
 [-s] [--speed baud]       Specifies the baud speed for the PPP daemon
                           (default is 115200).
 [-t] [--stimeout seconds] Specifies the timeout for the first packet. This is a DOS protection
                           (default is 10).
 [-v] [--version]          Displays the pptpd version number.
 [-w] [--logwtmp]          Update wtmp as users login.
 [-C] [--connections n]    Limit on number of connections.
 [-D] [--delegate]         Delegate IP allocation to pppd.



你可能感兴趣的:(运维,系统)