1 Building FRR on OmniOS (OpenSolaris) from Git Source
2 ====================================================
7 - MPLS is not supported on `OmniOS` or `Solaris`. MPLS requires a Linux
8 Kernel (4.5 or higher). LDP can be built, but may have limited use
11 ### Enable IP & IPv6 forwarding
13 routeadm -e ipv4-forwarding
14 routeadm -e ipv6-forwarding
16 Install required packages
17 -------------------------
22 developer/build/autoconf \
23 developer/build/automake \
24 developer/lexer/flex \
25 developer/parser/bison \
26 developer/object-file \
28 developer/library/lint \
29 developer/build/gnu-make \
32 library/idnkit/header-idnkit \
34 system/library/math/header-math \
35 git libtool gawk pkg-config
37 Add additional Solaris packages:
39 pkgadd -d http://get.opencsw.org/now
40 /opt/csw/bin/pkgutil -U
41 /opt/csw/bin/pkgutil -y -i texinfo
42 /opt/csw/bin/pkgutil -y -i perl
43 /opt/csw/bin/pkgutil -y -i libjson_c_dev
44 /opt/csw/bin/pkgutil -y -i python27 py_pip python27_dev
46 Add libjson to Solaris equivalent of ld.so.conf
48 crle -l /opt/csw/lib -u
53 cpan[1]> install XML::LibXML
60 Select Python 2.7 as default (required for pytest)
63 ln -s /opt/csw/bin/python2.7 /usr/bin/python
65 Fix PATH for all users and non-interactive sessions. Edit `/etc/default/login`
66 and add the following default PATH:
68 PATH=/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/csw/bin
70 Edit `~/.profile` and add the following default PATH:
72 PATH=/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/csw/bin
74 Get FRR, compile it and install it (from Git)
75 ---------------------------------------------
77 **This assumes you want to build and install FRR from source and not using
80 ### Add frr group and user
82 sudo groupadd -g 93 frr
83 sudo groupadd -g 94 frrvty
84 sudo useradd -g 93 -u 93 -G frrvty -c "FRR suite" \
85 -d /nonexistent -s /bin/false frr
87 (You may prefer different options on configure statement. These are just
90 git clone https://github.com/frrouting/frr.git frr
92 git checkout stable/3.0
95 export LDFLAGS="-L/opt/csw/lib"
96 export CPPFLAGS="-I/opt/csw/include"
97 export PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig
99 --sysconfdir=/etc/frr \
100 --enable-exampledir=/usr/share/doc/frr/examples/ \
101 --localstatedir=/var/run/frr \
102 --sbindir=/usr/lib/frr \
105 --enable-ospfclient=yes \
106 --enable-ospfapi=yes \
107 --enable-multipath=64 \
110 --enable-vty-group=frrvty \
111 --enable-configfile-mask=0640 \
112 --enable-logfile-mask=0640 \
115 --with-pkg-git-version \
116 --with-pkg-extra-version=-MyOwnFRRVersion
121 ### Enable IP & IPv6 forwarding
123 routeadm -e ipv4-forwarding
124 routeadm -e ipv6-forwarding