tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/
./install
cd ns-2.35/
cp ns ns235-fsr
sudo cp ns235-fsr /usr/local/bin/cd Download/
sudo gdebi compat-gcc34_3.4.6-ubuntu15_i386.deb
sudo gdebi compat-g++34_3.4.6-ubuntu10_i386.debtar 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
// ( g++41 may work too )
make
// 'make' stops with a linker error. Edit Makefile:37 to: CPP = g++
make
cp ns ns235-fsr
sudo cp ns235-fsr /usr/local/bin/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
// ( g++41 may work too )
make
// 'make' stops with a linker error. Edit Makefile:37 to: CPP = g++
make
cp ns ns235-fsr
sudo cp ns235-fsr /usr/local/bin/ Selection Path Priority Status------------------------------------------------------------ 0 /usr/bin/gcc-4.6 20 auto mode* 1 /usr/bin/gcc-3.4 10 manual mode 2 /usr/bin/gcc-4.6 20 manual mode Selection Path Priority Status------------------------------------------------------------ 0 /usr/bin/g++-4.6 20 auto mode* 1 /usr/bin/g++-3.4 10 manual mode 2 /usr/bin/g++-4.6 20 manual modechecking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/fsr/ns-allinone-2.35/tcl8.5.10/unix':
configure: error: C compiler cannot create executables/*
* Eduardo Bezerra Valentin.
*
* Implementação de Agente para recepção com adição de atraso fixo.
*
*/
#include "agent.h"
#include "config.h"
#include "tclcl.h"
#include "packet.h"
#include "rtp.h"
#include "ip.h" // Adicionado por Laercio em 20/10/2006
#include "adaptive-receiver.h"
#include "IeFactor.H"
#include <hash_map.h>
#include <pthread.h>
#ifndef WIN32
// VC 5.0 doesn't have this
#include <sys/time.h>
#endif
.........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
// ( g++41 may work too )
make
// 'make' stops with a linker error. Edit Makefile:37 to: CPP = g++
make
cp ns ns235-fsr
sudo cp ns235-fsr /usr/local/bin/cd ns-2.35
ns ns-fsrNs-allinone package has been installed successfully.Here are the installation places:tcl8.5.10: /home/fsr/ns-allinone-2.35/{bin,include,lib}tk8.5.10: /home/fsr/ns-allinone-2.35/{bin,include,lib}otcl: /home/fsr/ns-allinone-2.35/otcl-1.14tclcl: /home/fsr/ns-allinone-2.35/tclcl-1.20ns: /home/fsr/ns-allinone-2.35/ns-2.35/nsnam: /home/fsr/ns-allinone-2.35/nam-1.15/namgt-itm: /home/fsr/ns-allinone-2.35/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
root@fsr-VirtualBox:/home/fsr/ns-allinone-2.35# cd ns-2.35/
root@fsr-VirtualBox:/home/fsr/ns-allinone-2.35/ns-2.35# ns ns-fsrThe program 'ns' is currently not installed. You can install it by typing:apt-get install ns2root@fsr-VirtualBox:/home/fsr/ns-allinone-2.35/ns-2.35#
cd ns-2.35
cp ns ns235-fsr
sudo cp ns235-fsr /usr/local/bin/Then I got this error:
Ns-allinone package has been installed successfully.
root@fsr-VirtualBox:/home/fsr/fsr-examples-11.17# ns235-fsr 10.tclnum_nodes is set 10INITIALIZE THE LIST xListHeadchannel.cc:sendUp - Calc highestAntennaZ_ and distCST_highestAntennaZ_ = 1.5, distCST_ = 550.0SORTING LISTS ...DONE![wpan/p802_15_4phy.cc::PD_DATA_request][5.088567](node 0) Invalid PSDU/MPDU length: type = message, src = 0, dst = -1, uid = 0, mac_uid = 989, size = 135[wpan/p802_15_4phy.cc::PD_DATA_request][5.111943](node 1) Invalid PSDU/MPDU length: type = message, src = 1, dst = -1, uid = 0, mac_uid = 995, size = 135[wpan/p802_15_4phy.cc::PD_DATA_request][5.139770](node 7) Invalid PSDU/MPDU length: type = message, src = 7, dst = -1, uid = 0, mac_uid = 1000, size = 135[wpan/p802_15_4phy.cc::PD_DATA_request][5.180776](node 4) Invalid PSDU/MPDU length: type = message, src = 4, dst = -1, uid = 0, mac_uid = 1009, size = 163[wpan/p802_15_4phy.cc::PD_DATA_request][10.113284](node 3) Invalid PSDU/MPDU length: type = message, src = 3, dst = -1, uid = 0, mac_uid = 2191, size = 175[wpan/p802_15_4phy.cc::PD_DATA_request][10.138722](node 5) Invalid PSDU/MPDU length: type = message, src = 5, dst = -1, uid = 0, mac_uid = 2199, size = 175[wpan/p802_15_4phy.cc::PD_DATA_request][10.159135](node 2) Invalid PSDU/MPDU length: type = message, src = 2, dst = -1, uid = 0, mac_uid = 2205, size = 211[wpan/p802_15_4phy.cc::PD_DATA_request][10.163068](node 6) Invalid PSDU/MPDU length: type = message, src = 6, dst = -1, uid = 0, mac_uid = 2207, size = 175[wpan/p802_15_4phy.cc::PD_DATA_request][10.164988](node 9) Invalid PSDU/MPDU length: type = message, src = 9, dst = -1, uid = 0, mac_uid = 2206, size = 175ns: stop: couldn't execute "nam": no such file or directory while executing"exec nam 10.nam &" (procedure "stop" line 7) invoked from within"stop"