Skip to content

Commit

Permalink
Merge pull request FRRouting#305 from opensourcerouting/build-doc-upd…
Browse files Browse the repository at this point in the history
…ates

doc: Update for the Building_FRR docs to include new requirements
  • Loading branch information
donaldsharp authored Mar 30, 2017
2 parents 821260f + ae32b15 commit 023dd1a
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 36 deletions.
11 changes: 5 additions & 6 deletions doc/Building_FRR_on_CentOS6.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add packages:

sudo yum install git autoconf automake libtool make gawk readline-devel \
texinfo net-snmp-devel groff pkgconfig json-c-devel pam-devel \
flex pytest
flex c-ares-devel epel-release

Install newer version of bison (CentOS 6 package source is too old) from
CentOS 7
Expand Down Expand Up @@ -48,16 +48,16 @@ Install newer version of autoconf and automake (Package versions are too old)

Install `Python 2.7` in parallel to default 2.6 (needed for `make check` to
run unittests).
Pick correct EPEL based on CentOS version used. Then install current `pytest`
Make sure you've install EPEL (`epel-release` as above). Then install current
`python2.7` and `pytest`

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh https://centos6.iuscommunity.org/ius-release.rpm
yum install python27 python27-pip
yum install python27 python27-devel python27-pip
pip2.7 install pytest

Please note that `CentOS 6` needs to keep python pointing to version 2.6
for `yum` to keep working, so don't create a symlink for python2.7 to python

Get FRR, compile it and install it (from Git)
---------------------------------------------

Expand All @@ -80,7 +80,6 @@ them if you are not building on a x86_64 architecture

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
./configure \
--sysconfdir=/etc/frr \
Expand Down
9 changes: 6 additions & 3 deletions doc/Building_FRR_on_CentOS7.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ CentOS 7 restrictions:

Install required packages
-------------------------

Add packages:

sudo yum install git autoconf automake libtool make gawk readline-devel \
texinfo net-snmp-devel groff pkgconfig json-c-devel pam-devel \
bison flex pytest
bison flex pytest c-ares-devel python-devel

To build from git (in difference to building from distribution tar.gz as created by `make dist`), the python development libraries are needed. (Make sure you've installed EPEL libraries as shown above for this to work)

yum install python34-devel

Get FRR, compile it and install it (from Git)
---------------------------------------------
Expand All @@ -39,7 +43,6 @@ them if you are not building on a x86_64 architecture

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
./configure \
--sysconfdir=/etc/frr \
Expand Down
5 changes: 2 additions & 3 deletions doc/Building_FRR_on_Debian8.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Debian 8 restrictions:

Install required packages
-------------------------

Add packages:

sudo apt-get install git autoconf automake libtool make gawk \
libreadline-dev texinfo libjson-c-dev pkg-config bison flex \
python-pip
python-pip libc-ares-dev python3-dev

Install newer pytest (>3.0) from pip

Expand All @@ -41,7 +41,6 @@ an example.)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
./configure \
--enable-exampledir=/usr/share/doc/frr/examples/ \
Expand Down
4 changes: 2 additions & 2 deletions doc/Building_FRR_on_Fedora24.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Add packages:

sudo dnf install git autoconf automake libtool make gawk \
readline-devel texinfo net-snmp-devel groff pkgconfig \
json-c-devel pam-devel perl-XML-LibXML pytest
json-c-devel pam-devel perl-XML-LibXML c-ares-devel \
python3-devel

Get FRR, compile it and install it (from Git)
---------------------------------------------
Expand All @@ -32,7 +33,6 @@ them if you are not building on a x86_64 architecture

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
./configure \
--sysconfdir=/etc/frr \
Expand Down
3 changes: 1 addition & 2 deletions doc/Building_FRR_on_FreeBSD10.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add packages:
install and asked)

pkg install git autoconf automake libtool gmake gawk json-c pkgconf \
bison flex py27-pytest
bison flex py27-pytest c-ares python3

Make sure there is no /usr/bin/flex preinstalled (and use the newly
installed in /usr/local/bin):
Expand All @@ -43,7 +43,6 @@ an example)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
export MAKE=gmake
export LDFLAGS="-L/usr/local/lib"
Expand Down
3 changes: 1 addition & 2 deletions doc/Building_FRR_on_FreeBSD11.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add packages:
install and asked)

pkg install git autoconf automake libtool gmake gawk json-c pkgconf \
bison flex py27-pytest
bison flex py27-pytest c-ares python3

Make sure there is no /usr/bin/flex preinstalled (and use the newly
installed in /usr/local/bin):
Expand All @@ -43,7 +43,6 @@ an example)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
export MAKE=gmake
export LDFLAGS="-L/usr/local/lib"
Expand Down
11 changes: 9 additions & 2 deletions doc/Building_FRR_on_FreeBSD9.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Add packages:
install and asked)

pkg install -y git autoconf automake libtool gmake gawk \
pkgconf texinfo json-c bison flex py27-pytest
pkgconf texinfo json-c bison flex py27-pytest c-ares \
python3

Make sure there is no /usr/bin/flex preinstalled (and use the newly
installed in /usr/local/bin):
Expand All @@ -25,6 +26,13 @@ takes preference in path)

rm -f /usr/bin/flex

For building with clang (instead of gcc), upgrade clang from 3.4 default to 3.6 *This is needed to build FreeBSD packages as well - for packages clang is default* (Clang 3.4 as shipped with FreeBSD 9 crashes during compile)

pkg install clang36
pkg delete clang34
mv /usr/bin/clang /usr/bin/clang34
ln -s /usr/local/bin/clang36 /usr/bin/clang

Get FRR, compile it and install it (from Git)
---------------------------------------------

Expand All @@ -43,7 +51,6 @@ an example)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
export MAKE=gmake
export LDFLAGS="-L/usr/local/lib"
Expand Down
3 changes: 1 addition & 2 deletions doc/Building_FRR_on_NetBSD6.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Configure Package location:
Add packages:

sudo pkg_add git autoconf automake libtool gmake gawk openssl \
pkg-config json-c p5-XML-LibXML python27 py27-test
pkg-config json-c p5-XML-LibXML python27 py27-test python35

Install SSL Root Certificates (for git https access):

Expand Down Expand Up @@ -47,7 +47,6 @@ an example)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
MAKE=gmake
export LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib"
Expand Down
3 changes: 1 addition & 2 deletions doc/Building_FRR_on_NetBSD7.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Install required packages
-------------------------

sudo pkgin install git autoconf automake libtool gmake gawk openssl \
pkg-config json-c p5-XML-LibXML python27 py27-test
pkg-config json-c p5-XML-LibXML python27 py27-test python35

Install SSL Root Certificates (for git https access):

Expand Down Expand Up @@ -41,7 +41,6 @@ an example)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
MAKE=gmake
export LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib"
Expand Down
6 changes: 3 additions & 3 deletions doc/Building_FRR_on_OmniOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Add additional Solaris packages:
/opt/csw/bin/pkgutil -y -i texinfo
/opt/csw/bin/pkgutil -y -i perl
/opt/csw/bin/pkgutil -y -i libjson_c_dev
/opt/csw/bin/pkgutil -y -i python27 py_pip
/opt/csw/bin/pkgutil -y -i python27 py_pip python27_dev

Add libjson to Solaris equivalent of ld.so.conf

Expand All @@ -61,7 +61,7 @@ Select Python 2.7 as default (required for pytest)

rm -f /usr/bin/python
ln -s /opt/csw/bin/python2.7 /usr/bin/python

Fix PATH for all users and non-interactive sessions. Edit `/etc/default/login`
and add the following default PATH:

Expand Down Expand Up @@ -89,11 +89,11 @@ an example)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
export MAKE=gmake
export LDFLAGS="-L/opt/csw/lib"
export CPPFLAGS="-I/opt/csw/include"
export PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig
./configure \
--sysconfdir=/etc/frr \
--enable-exampledir=/usr/share/doc/frr/examples/ \
Expand Down
1 change: 0 additions & 1 deletion doc/Building_FRR_on_OpenBSD6.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ an example)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
export LDFLAGS="-L/usr/local/lib"
export CPPFLAGS="-I/usr/local/include"
Expand Down
5 changes: 2 additions & 3 deletions doc/Building_FRR_on_Ubuntu1204.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Install required packages
Add packages:

apt-get install git autoconf automake libtool make gawk libreadline-dev \
texinfo libpam0g-dev dejagnu libjson0 pkg-config libpam0g-dev \
libjson0-dev flex python-pip
texinfo libpam0g-dev dejagnu libjson0-dev pkg-config libpam0g-dev \
libjson0-dev flex python-pip libc-ares-dev python3-dev

Install newer bison from 14.04 package source (Ubuntu 12.04 package source
is too old)
Expand Down Expand Up @@ -74,7 +74,6 @@ an example.)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
./configure \
--enable-exampledir=/usr/share/doc/frr/examples/ \
Expand Down
5 changes: 2 additions & 3 deletions doc/Building_FRR_on_Ubuntu1404.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Building FRR on Ubuntu 14.04LTS from Git Source

Install required packages
-------------------------

Add packages:

apt-get install git autoconf automake libtool make gawk libreadline-dev \
texinfo dejagnu pkg-config libpam0g-dev libjson-c-dev bison flex \
python-pytest
python-pytest libc-ares-dev python3-dev

Get FRR, compile it and install it (from Git)
---------------------------------------------
Expand All @@ -34,7 +34,6 @@ an example.)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
./configure \
--enable-exampledir=/usr/share/doc/frr/examples/ \
Expand Down
3 changes: 1 addition & 2 deletions doc/Building_FRR_on_Ubuntu1604.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add packages:

apt-get install git autoconf automake libtool make gawk libreadline-dev \
texinfo dejagnu pkg-config libpam0g-dev libjson-c-dev bison flex \
python-pytest
python-pytest libc-ares-dev python3-dev

Get FRR, compile it and install it (from Git)
---------------------------------------------
Expand All @@ -35,7 +35,6 @@ an example.)

git clone https://github.com/freerangerouting/frr.git frr
cd frr
git checkout stable/2.0
./bootstrap.sh
./configure \
--enable-exampledir=/usr/share/doc/frr/examples/ \
Expand Down

0 comments on commit 023dd1a

Please sign in to comment.