Date: Thu, 28 Mar 2024 08:57:43 +0000 (UTC) Message-ID: <1691934061.705.1711616263211@ip-10-30-146-46.us-west-2.compute.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_704_394785511.1711616263208" ------=_Part_704_394785511.1711616263208 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
You only need to follow the instructions on this page, if the compilatio= n of the CPqD software switch failed when following the Installation Guide.
This page was originally created by Jonathan Hart - many thanks!
The CPqD 1.3 software switch cannot be compiled out of the box on recent= versions of Ubuntu (>=3D 13.10 I believe).
In fact, the issue is not with the switch code itself but the netbee lib= rary it depends on which also needs to be compiled. The library cannot be c= ompiled if your bison version is greater than 2.5. Unfortunately, since Ubu= ntu 13.10 the lowest available bison version is greater than 2.5, so the co= mpilation doesn't work.
For more information, see the github issues here:
https://github.com/CPqD/ofsoftswitch13/issues/113
https://github.com/CPqD/ofsoftswitch13/issues/56
So, somehow you have to get an old version of bison on your system. Ther= e are multiple ways to do this, but I've detailed the approach I used below= .
First, use the mininet script to download and try to install the ofsofts= witch13. The compile should fail at some point:
mininet/=
util/install.sh -3f
|
Now we need to downgrade our bison version so that we can finish compili=
ng the code. Add the sources from an old version of ubuntu to your apt sour=
ces. I created a file called raring.list
in/et=
c/apt/sources.list.d/
containing:
deb http=
: //old-releases.ubunt=
u.com/ubuntu/ raring main restricted
deb-src =
http: //old-releases.u=
buntu.com/ubuntu/ raring main restricted
|
Now update your apt cache and install the old version of bison:
sudo apt=
-get update
sudo apt=
-get remove bison libbison-dev
sudo apt=
-get install bison=3D 2 : 2.5 .dfsg-3ubuntu1 libbison-dev=3D : 2.5=
.dfsg-3ubuntu1
|
Double-check you have bison 2.5 installed:
jono bison (G=
NU Bison) 2.5
Written =
by Robert Corbett and Richard Stallman.
...
|
The mininet install script should have placed the netbee source in your = home directory. I'm assuming the directory is ~/nbeesrc-jan-10-2013, but yo= u can adapt if it's different. We'll go there and finish compiling it = (credit to the mininet install script):
export N=
BEESRC=3D~/nbeesrc-jan- 10 - 2013
cd ${NBE=
ESRC}/src
make cle=
an
cmake .<=
/code>
make
sudo cp =
${NBEESRC}/bin/libn*.so /usr/local/lib
sudo ldc=
onfig
sudo cp =
-R ${NBEESRC}/include/ /usr/
|
Now netbee is installed on the system and you can go ahead and compile t= he CPqD software switch. Hopefully the mininet script has already cloned th= e repo for you at ~/ofsoftswitch13:
cd ~/ofs=
oftswitch13
./boot.s=
h
./config=
ure
make
sudo mak=
e install
|
Done.
jono dpctl&nb=
sp; 1.3 .=
0 =
compiled Jul 30 2014 22 20 : 00
|
Optional: if you care, you can upgrade bison back to the latest version.= You may also want to remove the raring.list file you created earlier so th= ere's no chance of accidentally installing old software.
sudo apt=
-get install bison
|