Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
- # untar the file in the same folder
- tar -zxvf ns-allinone-2.35_gcc5.tar.gz --strip-components 1
- #installing necessary libraries
- sudo echo "deb http://in.archive.ubuntu.com/ubuntu/ xenial main" >> /etc/apt/sources.list
- sudo echo "deb http://in.archive.ubuntu.com/ubuntu/ xenial universe" >> /etc/apt/sources.list
- sudo apt update
- sudo apt install -y gcc-4.8 g++-4.8
- sudo apt install -y build-essential autoconf wget
- sudo apt install -y perl libxt-dev libx11-dev libxmu-dev sgb
- export CC=gcc-4.8 CXX=g++-4.8 && ./install
- cd ns-2.35/ && sudo make install
- cd ../nam-1.15/ && sudo make install
- #x-graph
- cd ../xgraph-12.2 && ./configure
- sudo automake --add-missing
- sudo make
- sudo make install
- #gt-itm
- cd ../gt-itm/src
- sudo ln -s /usr/lib/libgb.a ../lib
- make
- #sgb
- cd ../sgb2ns
- make all
- #final step
- cd ../bin
- sudo cp {edriver,itm,sgb2alt,sgb2comns,sgb2hierns,sgb2ns} /usr/local/bin
- #optional
- #cd ns-2.35 && ./validate
Add Comment
Please, Sign In to add comment