INSTALLATION
OF NS-3 IN CENTOS 7
(1)
INSTLATION OF gcc-c++.4.9 compiler installation
Internet must be working on the same System......
Download gcc compiler version 4.9 from https://ftp.gnu.org/gnu/gcc/gcc-4.9.2/ and
copy gcc-4.9.2.tar.gz
file to /opt location.
#
tar zxf gcc-4.9.2.tar.gz
#
cd gcc-4.9.2
#
./contrib/download_prerequisites
#
./configure --disable-multilib –enable-languages=c,c++
#
make -j 4
// It will take at-least 2 hours.//
#
make install
(2)
INSTLATION OF TOOLS,OPEN THE TERMINAL, TYPE THE COMMAND
Download and install rpmforge rpm
from http://repoforge.org/use/ and install it...........
# yum install rpmforge
#
yum install unrar* mercurial* bzr* cmake p7z* cvs*
(3) Download NS-3.27.tar.bz2 file
PASTE
IT IN THE LOCATION /opt FOLDER
(3)
UNTAR THE THE FILE USING COMMAND, OPEN THE TERMINAL AND TYPE
# cd /opt
# tar zxvf ns-allinone-3.27.tar.bz2
(4)
BROWSE TO THE LOCATION
# cd ns-allinone-3.2
# cd bake
# ./bake.py check
//If
everything is ok then go to the Step 5.//
(5)
INSTALL THE SOFTWARE
#
cd ..
#
pwd
//Check current directory...//
Answer
should be /opt/ns-allinone-3.27
#
./build.py --enable-examples --enable-test
#
cd ns-3.27
#
./waf --build-profile=debug --enable-examples --enable-tests
configure
#
./waf
#
./test.py -c core
#
./waf --run hello-simulator
No comments:
Post a Comment