tar xvf ns-allinone-2.35_gcc5.tar.gz // 2014 - 2017 update.
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/
patch -p0 < FSR_ns235.patch
https://drive.google.com/file/d/0B7S255p3kFXNWE5fOFByZERRS3M/view?usp=sharing
./install
cd ns-2.35/
cp ns ns235-fsr
sudo cp ns235-fsr /usr/local/bin/
--------- Simulation ---------------
ns235-fsr fsr-zigbee.tcl
sudo gdebi compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb
sudo gdebi compat-gcc-34-c++_3.4.6-20_amd64.deb
tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
patch -p0 < FSR_ns235.patch
./install
// Stops with a tools/* error.
cd ns-2.35/
// Edit Makefile, line 37 to: CPP = g++34
make
// 'make' stops with a linker error.
// Edit Makefile:37 to: CPP = g++
make
cd ns-2.35
cp ns ns235-FSR
sudo cp ns235-FSR /usr/local/bin/
Note : If Ubuntu 17**, the build command is :
export CC=gcc-5 CXX=g++-5 && ./install // ( sudo apt install g++-5 )
... and then later g++34
cd Downloads/
sudo gdebi fsr-ns_235-ubuntu12_i386.deb
// some 32bits dependencies will be installed too.
$ g++ -v // Better be 4.8.4 ... I.e. the default gcc / g++ is version 4.8.4 !
$ g++34 -v // Is 3.4.6 : I.e. you are supposed to have at least two g++ versions installed.