Compiling Cumulus Quagga?

  • 1
  • Question
  • Updated 2 years ago
How to compile Cumulus Quagga on your debian system:

1) Grab source from our github tree:
git clone -b cm_2.5 https://github.com/CumulusNetworks/quagga.git

2) Install necessary debian packages

apt-get install build-essential gawk automake autoconf libtool texinfo stgit binutils libreadline6-dev libjson0-dev libjson0-dbg debhelper dh-autoreconf dejagnu

3) Build debian package

dpkg-buildpackage -us -uc -d -b

4) Or Build by hand:
./bootstrap.sh
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=\${prefix}/lib/quagga --disable-maintainer-mode --enable-dependency-checking --enable-exampledir=/usr/share/doc/quagga/examples/ --localstatedir=/var/run/quagga --sbindir=/usr/lib/quagga --sysconfdir=/etc/quagga --enable-vtysh --enable-isisd --enable-watchquagga --enable-ospf-te --enable-opaque-lsa --enable-ipv6 --enable-ospfclient=yes --enable-ospfapi=yes --enable-multipath=64 --enable-user=quagga --enable-group=quagga --enable-vty-group=quaggavty --enable-configfile-mask=0640 --enable-logfile-mask=0640 --enable-rtadv --enable-werror --enable-gcc-rdynamic --with-libpam
make -j10

Then you can do a make install to install
Photo of Donald Sharp

Donald Sharp, Employee

  • 182 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Andrius Benokraitis

Andrius Benokraitis, Alum

  • 362 Points 250 badge 2x thumb
Do you have this for a Fedora/CentOS box per chance?
Photo of Donald Sharp

Donald Sharp, Employee

  • 182 Points 100 badge 2x thumb
Stanley put together a rpm that builds rpm's from our source I believe.  I have not attempted it, but knowing Stanley it kick's ass and chew's bubblegum.  The above instructions 'build by hand' should work as well.

https://community.cumulusnetworks.com/cumulus/topics/source-rpm-of-the-github-version-of-cumulus-net...
Photo of Donald Sharp

Donald Sharp, Employee

  • 182 Points 100 badge 2x thumb
Updated the Cumulus github repository to 2.5.6 in addition I pushed a patch that removes some debian dependencies packages that are not necessary for running on the host.
Photo of Dylan Lusk

Dylan Lusk

  • 60 Points
A bit off-topic, but has anyone tried to x-compile cumulus quagga for ARM using qemu.  I have a small fleet of B+ raspberrys that I would like to use as endpoints.  Found a post for the x-compile effort, using x86_64 architecture to build ARM images, but ran into trouble when I followed the above "build by hand" method.  (BTW - instructions worked fine for an x86_64 build on debian jessie.).
Photo of Scott Suehle

Scott Suehle, Alum

  • 3,772 Points 3k badge 2x thumb
Dylan,

Can you share your configure line? Sounds like you have a missing or incorrect config in it.