ns2 - some validation tests failed
Dear all,
After many modifications, I managed to install ns2.28 , but some validation tests failed. I got the following message at the end of validation test: validate overall report: some tests failed: ./test-all-simple ./test-all-tcp ./test-all-testReno ./test-all-newreno ./test-all-sack ./test-all-tcpOptions ./test-all-sack-full ./test-all-tcpVariants ./test-all-LimTransmit ./test-all-aimd ./test-all-greis ./test-all-rfc2581 ./test-all-sctp ./test-all-tcpHighspeed ./test-all-frto ./test-all-friendly ./test-all-srm ./test-all-realaudio ./test-all-ecn ./test-all-ecn-full ./test-all-quickstart ./test-all-hier-routing ./test-all-lan ./test-all-mcast ./test-all-vc ./test-all-mixmode ./test-all-red ./test-all-adaptive-red ./test-all-red-pd ./test-all-rio ./test-all-vq ./test-all-rem ./test-all-gk ./test-all-pi ./test-all-cbq ./test-all-schedule ./test-all-jobs ./test-all-intserv to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME Notice that some tests in webcache will fail on freebsd when -O is turned on. This is due to some event reordering, which will disappear when -g is turned on. I have searched the mailing list for the problem, I found many mails about it, but no reply to the mails. Is it a very silly thing, that people don't bother to reply? I have no idea what to do now. I found something like reporting bug about this. I tried to run the test individually one after another, but that is too time consuming, it prompts for permission after every test and thus runs many test & opens a lot of xgraph window. The tests I run so far individually, agreed with the reference output. Now I am wondering, should I report a bug about it, or should I hire a kid to run those failed 40 tests( which require hitting the ENTER key 1200 times,maybe ) , or what else should I do. Thank you for your time and attention. |
Hire a kid, I must admit that made me laugh.
With the number of tests it says have failed, it may be an idea to do a clean install again. Of course, try using the fix it suggests for BSD systems, see what happens then |
Please tell, which Linux, you are using.
Linux, name, version ( like Ubuntu 9.04, Fedora 10 ...) And you must have a very good reason to use ns-2.28 ? The current version is 2.33 . http://www.linuxquestions.org/linux/...Ask_a_Question http://linuxsilo.net/docs/smart-questions_en.html ..... ..... |
Quote:
Quote:
I am struggling with this thing for months, but no luck. I still could not manage to run 802.11e . I know this forum is not meant for ns2 problems, but I am asking questions after questions everywhere, but only this forum is responsive to the questions. I post questions in the hope that maybe some ns2 expert will see the question and be kind enough to reply. I really do search a lot in Google and the forums before posting the questions, I only try to post when I cannot find the exact similar solution. I don't mean to violate any forum regulation, since this is the only place where I can get solution, if there is any. I know I am posting too many threads, I am sorry about that. |
I have same problem, if u get a result, tell me pleaaaaaaaaaaaaaaaase!
hi i have this problem.helpme please!
Quote:
|
Quote:
|
hi i have this problem.helpme please!
|
@ sharafi12, posts # 6-7 : Welcome to LQ. ... :) ..
Very simple : Just use ns-allinone-2.28 . No problem having several ns2 installs at the same time. Required : Please tell, which Linux, you are using. ... Like Ubuntu 10.04 Lucid, Fedora 13, CentOS5 etc. etc. http://www.linuxquestions.org/linux/...Ask_a_Question http://www.catb.org/~esr/faqs/smart-questions.html .. |
Quote:
|
Fedora 10...13 , ns-allinone-2.28
1 Attachment(s)
Same well tested Ubuntu method as ns-allinone-2.27, using some "ns-allinone-2.34 files".
http://www.linuxquestions.org/questi...10-a-782356/#3 'ns-allinone-2.34/' is required too. EDIT : Fedora, CentOS : Please see post # 55. # yum install compat-gcc-34-c++ libX11-devel libXext-devel libXau-devel \ libXmu-devel xorg-x11-proto-devel gcc-c++ make automake autoconf libtool **** All these commands can also be run as a script : 'sh script_228.txt' : cd ns-allinone-2.28/ mv otcl-1.9/ back-otcl-1.9/ mv tclcl-1.16/ back-tclcl-1.16 mv tcl8.4.5/ back-tcl8.4.5 mv tk8.4.5/ back-tk8.4.5 mv nam-1.11/ back-nam-1.11 ln -s ../ns-allinone-2.34/otcl-1.13/ ln -s ../ns-allinone-2.34/tclcl-1.19/ ln -s ../ns-allinone-2.34/tcl8.4.18/ ln -s ../ns-allinone-2.34/tk8.4.18/ ln -s ../ns-allinone-2.34/nam-1.14/ ln -s otcl-1.13/ otcl-1.9 ln -s tclcl-1.19/ tclcl-1.16 ln -s tcl8.4.18/ tcl8.4.5 ln -s tk8.4.18/ tk8.4.5 ln -s nam-1.14/ nam-1.11 mv nam-1.10/ back-nam-1.10 ln -s ../ns-allinone-2.34/nam-1.14/ ln -s nam-1.14/ nam-1.11 mkdir -p include cd include/ ln -s ../tcl8.4.18/generic/tclInt.h ln -s ../tcl8.4.18/generic/tclIntDecls.h cd ../tk8.4.18/ patch -p0 < tk-8.4-lastevent.patch exit **** Edit ns-allinone-2.28/ns-2.28/Makefile.in, line 36-37 to CC = gcc34 CPP = g++34 cd ns-allinone-2.28/ && ./install ............. ............. And a reasonable "validation". "" validate overall report: some tests failed: ./test-all-newreno ./test-all-tcpHighspeed ./test-all-red ./test-all-cbq ./test-all-xcp "". |
Fedora 12 , ns-allinone-2.28
1 Attachment(s)
A better result was achieved, using the 'ns228-gcc40.patch'.
cd <folder-with ns-allinone-2.28/> patch -p0 < ns228-gcc40.patch Still with the g++34 for ns-allinone-2.28/ns-2.28/. And same method like post # 10. Code:
validate overall report: some tests failed: |
Got it
Quote:
|
ns2.28 installation
Hi all,
I need to install ns2.28 on fedora (either 6 or 10). for those run ns2.28 successfully, could you please share with me your experience in installing and validating ns2.28 so i do it the right way. I have tried to install it on RedHat 5 previously but i got errors. Thank you in advance. |
@ NewStar, post # 13 : Welcome to LQ.
Using the procedure in posts #10, #11 : No errors RH EL5, CentOS5, SL55. EL 5 is based on Fedora 6 : Use the same procedure for Fedora 6. Fedora 10 is included, when you read posts #10, #11. .. The perfect 'validate report' : see post #11. ( Fedora 12.) .. Fedora 10 validate , no patching with 'ns228-gcc40.patch' : validate overall report: some tests failed: ./test-all-newreno ./test-all-tcpHighspeed ./test-all-red ./test-all-cbq ./test-all-xcp Fedora 10, the patch is included : 'patch -p0 < ns228-gcc40.patch No improvement like in Fedora 12. Same result as above. .. |
on redhat 5
Hi knudfl... Thank you for the welcoming and answering.
Below is the errors i got when i did step 1. I am trying it on RedHat 5. ****************************************************************************** [root@localhost ns-allinone-2.34]# yum install compat-gcc-34-c++ libX11-devel libXext-devel libXau-devel\libXmu-devel xorg-x11-proto-devel gcc-c++ make automake autoconf libtool Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Parsing package install arguments No package compat-gcc-34-c++ available. No package libX11-devel available. No package libXext-devel available. No package libXau-devellibXmu-devel available. No package xorg-x11-proto-devel available. No package gcc-c++ available. Package 1:make-3.81-3.el5.i386 installed and not available No package automake available. No package autoconf available. No package libtool available. Nothing to do [root@localhost ns-allinone-2.34]# cd [root@localhost ~]# cd Desktop/ns-allinone-2.28 [root@localhost ns-allinone-2.28]# mv otcl-1.9/back-otcl-1.9/ mv: missing destination file operand after `otcl-1.9/back-otcl-1.9/' Try `mv --help' for more information. [root@localhost ns-allinone-2.28]# ************************************************************************************* I appreciate your help. Thank you. |
@ NewStar, post # 15.
Quote:
Redhat EL 5 is commercial : You will have to pay to get packages. Don't want to pay ? Install one of the identical free versions instead : 1) CentOS 5.5 http://www.centos.org/ ISOs http://mirror.centos.org/centos/5/isos/ Or 2) Scientific Linux SL55 https://www.scientificlinux.org/ ISOs https://www.scientificlinux.org/download/ .. |
Quote:
Hi, I am following these steps to install ns2.28 in fedora 10. However when it reaches to : cd ../tk8.4.18/ i get this message: bash : cd: tk8.4.18/: No Such file or directory Thanks a lot for your help. |
# 17. Well, either you have no tk8.4.18/ .
Or you are in the wrong location. Suggest : Use the 'ls' command to tell, what you have. And the 'pwd' command to tell, where you are. The two period ( .. ) means you go one level up. Other comments .. Start with the ns228-gcc40.patch, outside ns-allinone-2.28/ : 'patch -p0 < ns228-gcc40.patch' ( Hit <Enter> twice until it exits.) And move the patch tk-8.4-lastevent.patch into tk8.4.18/ The file list in ns-allinone-2.28/ should be : back-nam-1.11 back-otcl-1.9 back-tcl8.4.5 back-tclcl-1.16 back-tk8.4.5 cweb gt-itm include install INSTALL.WIN32 nam-1.11 -> nam-1.14/ nam-1.14 -> ../ns-allinone-2.34/nam-1.14/ ns-2.28 otcl-1.13 -> ../ns-allinone-2.34/otcl-1.13/ otcl-1.9 -> otcl-1.13/ README sgb tcl8.4.18 -> ../ns-allinone-2.34/tcl8.4.18/ tcl8.4.5 -> tcl8.4.18/ tclcl-1.16 -> tclcl-1.19/ tclcl-1.19 -> ../ns-allinone-2.34/tclcl-1.19/ tk8.4.18 -> ../ns-allinone-2.34/tk8.4.18/ tk8.4.5 -> tk8.4.18/ xgraph-12.1 zlib-1.1.4 .. I will show the result of './validate' in post #14 later. .. P.S. : There is no reason to quote an entire post. Makes the thread difficult to read. Please delete the most. .. |
Can't create file ns-allinone-2.28/nam-1.11/agent.h.orig
Hi,
i applied the above instructions and here is the output: ----------------------------------------------------------------------- [root@localhost ns-allinone-2.28]# ls back-nam-1.11 bin INSTALL.WIN32 ns-2.28 readme tclcl-1.19 back-otcl-1.9 cweb lib ns-2.28_sip sgb tk8.4.18 back-tcl8.4.5 gt-itm man otcl-1.13 tcl8.4.18 tk8.4.5 back-tclcl-1.16 include nam-1.11 otcl-1.9 tcl8.4.5 xgraph-12.1 back-tk8.4.5 install nam-1.14 patch.sip tclcl-1.16 zlib-1.1.4 [root@localhost ns-allinone-2.28]# cd .. [root@localhost Desktop]# patch -p0 < ns228-gcc40.patch patching file ns-allinone-2.28/nam-1.11/agent.h Hunk #1 FAILED at 70. patch: **** Can't create file ns-allinone-2.28/nam-1.11/agent.h.orig : No such file or directory [root@localhost Desktop]# -------------------------------------------------------------------------- I did not add any of ns2.34 files. do i need to replace any files from v2.34 to folder ns2.28? one more thing, I have added SIP patch. just to let you know. i am very thankful to you. |
compat-gcc-34-c++
One more thing might be related .. yum install compat-gcc-34-c++ could not be installed.
i get this when i tried to install it: ----------------------------------------------------------- [root@localhost ~]# yum install compat-gcc-34-c++ Loaded plugins: refresh-packagekit http://download.fedoraproject.org/pu...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')> Trying other mirror. http://download.fedoraproject.org/pu...ta/repomd.xml: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')> Trying other mirror. Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package compat-gcc-34-c++.i386 0:3.4.6-9 set to be updated --> Processing Dependency: compat-gcc-34 = 3.4.6-9 for package: compat-gcc-34-c++ --> Running transaction check ---> Package compat-gcc-34.i386 0:3.4.6-9 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: compat-gcc-34-c++ i386 3.4.6-9 fedora 11 M Installing for dependencies: compat-gcc-34 i386 3.4.6-9 fedora 4.0 M Transaction Summary ================================================================================ Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 15 M Is this ok [y/N]: y Downloading Packages: http://download.fedoraproject.org/pu....6-9.i386.rpm: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')> Trying other mirror. http://download.fedoraproject.org/pu....6-9.i386.rpm: [Errno 4] IOError: <urlopen error (101, 'Network is unreachable')> Trying other mirror. -------------------------------------------------------------------------------- Total 49 kB/s | 15 MB 05:12 Error Downloading Packages: compat-gcc-34-3.4.6-9.i386: failure: Packages/compat-gcc-34-3.4.6-9.i386.rpm from fedora: [Errno 256] No more mirrors to try. compat-gcc-34-c++-3.4.6-9.i386: failure: Packages/compat-gcc-34-c++-3.4.6-9.i386.rpm from fedora: [Errno 256] No more mirrors to try. [root@localhost ~]# |
2 Attachment(s)
@NewStar, posts # 19, # 20.
Quote:
or /home/<user-name>/ns2/ns-allinone-2.28/ No commands should be done as root ! Will make it difficult to use ns228. Please delete everything and start from scratch. 2) You will need ns-allinone-2.28/ and ns-allinone-2.34/ present in the same location ! Please read post #10 again. 3) Fedora 10 is old. ( Was moved to "The old archive".) Not present at http://download.fedoraproject.org/pub/fedora any more. Use some new repo files for yum to work : fedora.repo fedora-updates.repo ( Location : /etc/yum.repos.d/ ). .. |
Hi, Knudfl
Thank you for your continuing helpful comments.. I have installed ns-allinone-2.28 beside ns-34 on fedora 10.. ns-2.28 is working well, but the nam doesn't work. $ nam bash: nam: command not found -----Also $ ns simple.tcl 210 0.0037499999999999999 running nam... ns: finish: couldn't execute "nam": no such file or directory while executing "exec nam out.nam &" (procedure "finish" line 8) invoked from within "finish" could you plz tell me what's the problem here.. Many thanks |
Post # 22, @ altamimi : Welcome to LQ.
Any 'nam' can be used ( It is a separate application ) cd ns-allinone-2.34/nam-1.14/ su make install Which will copy one file = 'nam' to /usr/local/bin/ Then you will have nam in your path. .. |
NAM error
Hi Knudfl,
I have installed ns-allinone-2.28 on fedora 11... i also have the problem with NAM like post #22. I tried to fix this error with your advice in post #23 but it had the error like this: [nhk@localhost nam-1.14]$ make install /usr/bin/install -c -m 755 nam /usr/local/bin /usr/bin/install: cannot stat `nam': No such file or directory make: *** [install] Error 1 Please help me to fix this error. Thank you so much! |
@astroboy123, post # 24 : Any 'nam' can be used.
If you want a nam "from ns-allinone-2.28" : Edit the ns-allinone-2.28/nam-1.11/Makefile, lines 44-45 to CC = gcc34 CPP = g++34 ... And : cd ns-allinone-2.28/nam-1.11/ && make clean && make Or use "another binary nam" for /usr/local/bin/ : 32bits https://docs.google.com/uc?id=0B7S25...Piyxo&hl=en_US 64bits https://docs.google.com/uc?id=0B7S25...jzIcL&hl=en_US .. |
Thank you for your help,Knudfl!!!
But now i have another error: /home/nhk/ns-allinone-2.28/tclcl-1.16/tclcl-config.h:37:1: warning: this is the location of the previous definition make: *** No rule to make target `VERSION', needed by `gen/version.c'. Stop. Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems. I thinh i have to create the file "version.c" in /tclcl-1.16/gen but i don't know the code for this file.... Can you help me once more time? Thank you. |
Post # 25 :
Quote:
( ns-allinone-2.28/ns-2.28/VERSION , ns-allinone-2.28/nam-1.11/VERSION ). Two file examples "VERSION" are attached to post # 23 here .. http://www.linuxquestions.org/questi...612/page2.html .. |
Everything is ok right now, thank you Knudfl!!!:)
|
what is this tk-8.4-lastevent.patch means
GOt the error /usr/local/work/ns2/ns-allinone-2.28/tk8.4.5/unix/../generic/tkConsole.c:90: warning: (near initialization for ‘consoleChannelType’) make: *** [tkConsole.o] Error 1 tk8.4.5 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com I am using Centos 5.5 |
@kshitiz, post #29.
Easier to manage, when you have the files in your /home/<name>/. Fedora / CentOS 5.x : cd /home/kshitiz/tmp/ && tar xvf ns-allinone-2.28.tar.gz && patch -p0 < ns228-gcc40.patch ( See post #11 ) && cd ns-allinone-2.28/tk8.4.5/ && wget ftp://gentoo.inode.at/portage/dev-la...astevent.patch && patch -p0 < tk-8.4-lastevent.patch && cd ../ && export CC=gcc34 CXX=g++34 && ./install ( Required : # yum install compat-gcc-34-c++ ). .. |
Quote:
patch -p1 < ns228-gcc40.patch under ns-allinone2.28/ && patch -p0 < tk-8.4-lastevent.patch under tk-8.4.5/ Also modified makein file. But still got errors. tclcl-1.16 make failed! Exiting ... No difference. :( Help pls. |
#31, @kh.bagi.
The "install command" is : 'export CC=gcc34 CXX=g++34 && ./install'. Is that what you did ? ? The export command is temporary. Will reset to default, when you exit the terminal. .. |
Quote:
1.cd ns-allinone-2.28/patch -p1 < ns228-gcc40.patch(somehow patch -p0 < ns228-gcc40.patch command didnt work. dont know why. so changed it to p1 instead of p0) 2.cd ns-allinone-2.28/tk8.4.5/patch -p0 < tk-8.4-lastevent.patch 3.Didnt change "/ns-allinone-2.28/ns-2.28/makefile.in" this file 4.cd /ns-allinone-2.28/export CC=gcc34 CXX=g++34 && ./install So installation worked. But i got error with validation as following: alidate overall report: some tests failed: ./test-all-newreno ./test-all-red to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME Notice that some tests in webcache will fail on freebsd when -O is turned on. This is due to some event reordering, which will disappear when -g is turned on. So i manually validate cd/tcl/test/ ./test-all-newreno and ./test-all-red. after this, i tried to validate whole ns2 and got same error above. thanks |
individual validation prompts for permission after every test and thus runs many test & opens a lot of xgraph window. I just pressed ENTER key until its finished
|
#34, #35.
Quote:
Nothing will be different by running some individual tests. .. |
Quote:
|
Hi knudfl...
can i do same steeps on post#10 to install ns-2.28 under fedora core 7 |
Post # 37, @jommas : Welcome to LQ.
The procedure in post #10, and post #11 should do for Fedora 6 .... Fedora 16. |
thansssss alot for quick ans.
|
# 37, @jommas
I'd just remembered this : In Fedora 7 you should be able to use only the patch ns228-gcc40.patch, and omit the complicated (Ubuntu / Debian) method in post #10. |
Hi knudfl >>> i did this in my fedora 7 to install ns-2.28
From post #10: Code:
[root@dhcppc0 ~]# sh script_228.txt Code:
make: *** No rule to make target `VERSION', needed by `gen/version.c'. Stop. gedit ~/.bashrc Code:
# LD_LIBRARY_PATH When i type ns i get "%" but nam i get "command not found" i did like post #23 but i get error like post #24 and i tried post #25 i get : Code:
make: *** No rule to make target `VERSION', needed by `gen/version.c'. Stop. nam-1.11 contain VERSION file with code "1.11" and also ns-2.28 contain VERSION file with code 2.28 i need your suggeestion..... |
# 41. See posts #11 and #37.
Better start from scratch with a new unpacked ns-allinone-2.28.tar.gz : Fedora 6-7-8 etc., building ns-allinone-2.28 : cd <folder-with ns-allinone-2.28/> && patch -p0 < ns228-gcc40.patch && cd ns-allinone-2.28/ && export CC=gcc34 CXX=g++34 && ./install Nam is not important, is a separate application. Any nam can be used. https://docs.google.com/open?id=0B7S...YzNmY4NTI1ZDQ0 > > nam-1.14-fc6.el5.tar.gz > Unpack, and : # cp nam /usr/local/bin/ . |
me again...
i did the patch in post #42 and i get this: Code:
[root@dhcppc0 ~]# cd ns-allinone-2.28/ |
#43
Quote:
i.e. the parent directory for ns-allinone-2.28/ . That's where you must do the patch command. And : root should not be used. Please log in as unprivileged user, and use like /home/<user-name>/ns2/ for your ns-allinone build. And do all commands as <user>, not root. .. |
i did the patch o.k and ns-2, in the end of installation i get:
Code:
Ns-allinone package has been installed successfully. The validate process : Code:
validate overall report: some tests failed: |
#45
Quote:
Posting issues : Please do not use colored text. Is less readable. And : Please edit posts #41 and #43 ( #45 ) to use CODE Tags : Edit > Go Advanced, and use the # button. Or write [/code] at text end, and [code] at code text start. http://www.linuxquestions.org/questi....php?do=bbcode .. |
Yes it work , kndufl you are the best ... Thank you
|
2 Attachment(s)
knudfl im very sory i ask a lot of qustions...
this time new case im tried to install ieee802.11e patch , (i uploaded just rename and delet .txt) and i followed the installation steps in readme file but: in step 7,8 and 9 when im try to open the files (wireless-phy.h , wireless-phy.cc and packet.h) i get: Couldn't disply example for wireless-phy.h file Code:
Couldn't display "/home/shifa/simu/ns-allinone-2.28/ns-2.28/mac/wireless-phy.h". |
# 48
Quote:
Headers like wireless-phy.h are usually used for compiling only. |
installation &validation failed in ns2.31 on ubuntu 10.04 lucid
@ knudfl sir,
Actually me and my friends trying to install ns2.31 on ubuntu 10.04 since 1 month but not good results came yet.this is the error came when i install and validate.... error occur while ./install checking for XShmAttach in -lXext... yes checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking system version (for dynamic loading)... Linux-2.6.32-33-generic No explicit static compilation flag; setting V_STATIC to "" checking for dlopen in -ldl... yes checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile rm -f libotcl.so otcl.o so_locations gcc-4.3 -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/guna/ns-allinone-2.31/include -I/home/guna/ns-allinone-2.31/include -I/home/guna/ns-allinone-2.31/include -I/include otcl.c make: gcc-4.3: Command not found make: *** [libotcl.so] Error 127 otcl-1.13 make failed! Exiting ... See http://www.isi.edu/nsnam/ns/ns-problems.html for problems guna@ubuntu:~/ns-allinone-2.31$ error occur while ./validate Running test full-asymmetric: ../../ns test-suite-delaybox.tcl full-asymmetric QUIET ./test-all-template1: 149: ../../ns: Too many levels of symbolic links Test not implemented All test output agrees with reference output. Fri Dec 30 12:22:30 IST 2011 These messages are NOT errors and can be ignored: warning: using backward compatibility mode This test is not implemented in backward compatibility mode validate overall report: some tests failed: ./test-all-simultaneous to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME Notice that some tests in webcache will fail on freebsd when -O is turned on. This is due to some event reordering, which will disappear when -g is turned on. guna@ubuntu:~/ns-allinone-2.31/ns-2.31$ source ~/.bashrc guna@ubuntu:~/ns-allinone-2.31/ns-2.31$ ns ns: command not found guna@ubuntu:~/ns-allinone-2.31/ns-2.31$ sir, i used so many different installation steps all is failed, currently i used this steps...... How to install NS2 with Ubuntu 10.04 By Noor Zaman This manual will work for NS2 allinone-2.34 with Ubuntu 10.4. As Ubuntus new version 10.04 needs following packages before any further installation, otherwise it will not work with it. Please follow the following steps: 1. Install necessary tools for building: sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3 2. It turns out that otcl does not like the version of gcc installed by default in Lucid. So go ahead and change ns-allinone-2.34/otcl-1.13/Makefile.in. Find the line that says: CC= @CC@ and change it to: CC= gcc-4.3 3. Now follow the following steps for installation of nsallinone 2.34 and it will work with your machine. (copy ns-allinone-2.34.tar.gz) Suppose that there is "ns-allinone-2.33.tar.gz" in current directory (e.g. "~/" for me is "/home/noor"). All steps are done in Terminal, so open a terminal in Accessories/Terminal.To extract the file: tar xvfz ./ns-allinone-2.33.tar.gz 4. Change your directory within terminal as following way $ cd /home/noor$ cd /home/noor/ns-allinone-2.34 5. Download & install some packages from repository if needed (Now its optional) $ sudo apt-get install build-essential autoconf automake libxmu-dev 6. Install the ns2 $ cd ns-allinone-2.34 $ ./install 7. Edit some paths $ gedit ~/.bashrc 8. Put these lines on that file in the last. Off course, you might change /home/noor for it depends on where you extract ns-allinone-2.34.tar. # LD_LIBRARY_PATHOTCL_LIB=/home/noor/ns-allinone-2.34/otcl-1.13NS2_LIB=/home/noor/ns-allinone-2.34/libX11_LIB=/usr/X11R6/libUSR_LOCAL_LIB=/usr/local/libexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB# TCL_LIBRARYTCL_LIB=/home/noor/ns-allinone-2.34/tcl8.4.18/libraryUSR_LIB=/usr/libexport TCL_LIBRARY=$TCL_LIB:$USR_LIB# PATHXGRAPH=/home/noor/ns-allinone-2.34/bin:/home/noor/ns-allinone-2.34/tcl8.4.18/unix:/home/noor/ns-allinone-2.34/tk8.4.18/unix:/home/noor/ns-allinone-2.34/xgraph-12.1/NS=/home/noor/ns-allinone-2.34/ns-2.34/NAM=/home/noor/ns-allinone-2.34/nam-1.13/export PATH=$PATH:$XGRAPH:$NS:$NAM 9. Validate it (take very long time compare to install process) $ cd ns-2.33$ ./validate 10. Let it take effect immediately $ source ~/.bashrc 11. Try to run it as following way, by just typing ns with terminal $ ns 12. If the installation is successful, then you will be able to see % at the command prompt. Type following command to exit % exit 13. Good luck and please keep remember me in your prays(Thanks in advance). Noor Zaman, King Faisal University, Saudi Arabia. sir pls help me...thanks in advance..... |
All times are GMT -5. The time now is 01:35 PM. |