Quagga Installing Quagga Add user and group quagga groupadd quagga useradd -g quagga -s /bin/false quagga Before installing quagga, it is necessary to prepare the quagga directories and files; and change ownership: mkdir /etc/quagga mkdir /var/state/quagga touch /var/log/zebra.log touch /var/log/ospfd.log touch /var/log/bgpd.log chown quagga:quagga /etc/quagga chown quagga:quagga /var/state/quagga Install quagga : ./configure --enable-user=quagga --enable-group=quagga --enable-vty-group=quagga --prefix=/usr --sysconfdir=/etc/quagga -localstatedir=/var/state/quagga make make install ldconfig
/configure --enable-vtysh --enable-user=root --enable-group=root --enable
-vty-group=root
root@gobgp:~/sr-quagga# ./configure -h | grep vtysh --disable-vtysh do not build integrated vty shell for Quagga --with-libpam use libpam for PAM support in vtysh root@gobgp:~/sr-quagga# ./configure -h | grep user --bindir=DIR user executables [EPREFIX/bin] --enable-user=USER user to run Quagga suite as (default quagga) root@gobgp:~/sr-quagga# ./configure --enable-user=root --enable-group=root --enable -vty-group=root configure: error: unrecognized option: `--enable‘ Try `./configure --help‘ for more information root@gobgp:~/sr-quagga# ./configure -h | grep group --enable-group=GROUP group to run Quagga suite as (default quagga) --enable-vty-group=ARG set vty sockets to have specified group as owner root@gobgp:~/sr-quagga#
git clone https://github.com/segment-routing/sr-quagga.git
1、bootstrap.sh
2、 apt-get install autoconf automake libtool libc-ares-dev libreadline-dev -y
3、./configure --enable-user=root --enable-group=root --enable-vty-group=root
原文:https://www.cnblogs.com/dream397/p/13542057.html