Building the CBNSim content-based network simulator
This page contains instructions on how to build the
CBNSim
content-based network simulator and all its dependencies from
source.
Building in a shared directory
These instructions are for building all packages in a shared
directory, which in this example will be /tools/cbn. Of course, you
may use whatever directory you like, including (e.g., /usr/local or
/opt). You may also execute all the following steps by
running
this shell script.
- build and install sff-1.9.4
wget http://www.inf.usi.ch/carzaniga/cbn/forwarding/sff-1.9.4.tar.gz -O - | tar xzf -
mkdir sff-build
cd sff-build
../sff-1.9.4/configure --prefix=/tools/cbn
make
make install
cd ..
- build and install ssbg-1.3.5
wget http://www.inf.usi.ch/carzaniga/cbn/forwarding/ssbg-1.3.5.tar.gz -O - | tar xzf -
mkdir ssbg-build
cd ssbg-build
../ssbg-1.3.5/configure --prefix=/tools/cbn
make
make install
cd ..
- build and install ssim-1.7.5
wget http://www.inf.usi.ch/carzaniga/ssim/ssim-1.7.5.tar.gz -O - | tar xzf -
mkdir ssim-build
cd ssim-build
../ssim-1.7.5/configure --prefix=/tools/cbn
make
make install
cd ..
- build and install ssimp-1.1.5
wget http://www.inf.usi.ch/carzaniga/cbn/forwarding/ssimp-1.1.5.tar.gz -O - | tar xzf -
mkdir ssimp-build
cd ssimp-build
../ssimp-1.1.5/configure --prefix=/tools/cbn CPPFLAGS=-I/tools/cbn/include LDFLAGS=-L/tools/cbn/lib
make
make install
cd ..
- build and install cbnsim-1.2.1
wget http://www.inf.usi.ch/carzaniga/cbn/routing/cbnsim-1.2.1.tar.gz -O - | tar xzf -
mkdir ssimp-build
cd cbnsim-build
../cbnsim-1.2.1/configure --prefix=/tools/cbn CPPFLAGS=-I/tools/cbn/include LDFLAGS=-L/tools/cbn/lib
make
make install
cd ..
Building each package in a separate directory
These instructions are for building each package in a separate
directory. In this case, we put all these directories in the same
base directory /tools. Of course, you may choose completely different
directories for all packages. You may also execute all the following
steps by running
this shell
script.
- build and install sff-1.9.4
wget http://www.inf.usi.ch/carzaniga/cbn/forwarding/sff-1.9.4.tar.gz -O - | tar xzf -
mkdir sff-build
cd sff-build
../sff-1.9.4/configure --prefix=/tools/sff-1.9.4
make
make install
cd ..
- build and install ssbg-1.3.5
wget http://www.inf.usi.ch/carzaniga/cbn/forwarding/ssbg-1.3.5.tar.gz -O - | tar xzf -
mkdir ssbg-build
cd ssbg-build
../ssbg-1.3.5/configure --prefix=/tools/ssbg-1.3.5
make
make install
cd ..
- build and install ssim-1.7.5
wget http://www.inf.usi.ch/carzaniga/ssim/ssim-1.7.5.tar.gz -O - | tar xzf -
mkdir ssim-build
cd ssim-build
../ssim-1.7.5/configure --prefix=/tools/ssim-1.7.5
make
make install
cd ..
- build and install ssimp-1.1.5
wget http://www.inf.usi.ch/carzaniga/cbn/forwarding/ssimp-1.1.5.tar.gz -O - | tar xzf -
mkdir ssimp-build
cd ssimp-build
../ssimp-1.1.5/configure --prefix=/tools/ssimp-1.1.5 --with-sff=/tools/sff-1.9.4
make
make install
cd ..
- build and install cbnsim-1.2.1
wget http://www.inf.usi.ch/carzaniga/cbn/routing/cbnsim-1.2.1.tar.gz -O - | tar xzf -
mkdir ssimp-build
cd cbnsim-build
../cbnsim-1.2.1/configure --prefix=/tools/cbnsim-1.2.1 --with-sff=/tools/sff-1.9.4 --with-ssbg=/tools/ssbg-1.3.5 --with-ssim=/tools/ssim-1.7.5 --with-ssimp=/tools/ssimp-1.1.5
make
make install
cd ..