Regarding Errors there is one more recent post
————————————
Just yeateday I reposted on How to install NS2 ? and recently I installed Fedora 10, when I tried to install ns2 it got installed but there was a bug with the nam, which display something like this after executing any tcl script
Root> ns wireless-flooding.tcl
after this it shows some node results but not what I was expecting (gui) rather it displayed
: no event type or button # or keysym
while executing
“bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}”
invoked from within
“if {[tk windowingsystem] eq “classic” || [tk windowingsystem] eq “aqua”} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li…”
I tried to fix the problem, and i came across a very interesting solution , Here it goes:
Download a patch file from <a href=”http://bugs.gentoo.org/show_bug.cgi?id=225999″>this link</a>
Copy these patch files in tk8.4.18 directory
now go to the directory where you copied the file and run the following command from the terminal
$ patch -p1 < ./tk-8.4-lastevent.patch
can’t find file to patch at input line 3
Perhaps you used the wrong -p or –strip option?
The text leading up to this was:
————————–
|— generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
|+++ generic/tk.h 2008-07-24 08:21:46.000000000 +0200
————————–
File to patch: generic/tk.h
patching file generic/tk.h
$ cd ..
$ ./install
$./configure
$ make
$./validate
and now enjoy simulating the network……………….
i followed ur steps but am getting like this
[user@mylappy tk8.4.18]$ patch -p1 <./tk-8.4-lastevent.patch
can’t find file to patch at input line 7
Perhaps you used the wrong -p or –strip option?
The text leading up to this was:
————————–
|Date: Sat Jul 12 09:40:30 PDT 2008
|Files: generic/tk.h
|Bugid: 2010422
|
|— generic/tk.h.lastevent.old 2008-07-01 09:59:58.000000000 -0700
|+++ generic/tk.h 2008-07-12 09:40:02.933155263 -0700
————————–
File to patch: generic/tk.h
patching file generic/tk.h
Hunk #1 FAILED at 627.
1 out of 1 hunk FAILED — saving rejects to file generic/tk.h.rej
please help me
Thanks Dear! it worked for me.
Thanks for Leaving a COmment !
Is it better to install ns2 on Fedora or Red hat?
usually you can install ns2 on any thing fedora, Ubuntu, red hat, windows etc. but personally i prefer to work on fedora as fedora provides many useful features like auto mounting of devices, etc. and fedora is easy to use in comparison to red hat, also the packages are easily available. now a days Ubuntu is also growing at very rapid rate and till now i never thought of trying Ubuntu but soon i will try. I will suggest to go for fedora as fedora is self contained OS and you need not to worry about sound or playing mp3 or videos (off course little installation thing will need). rest it is you will decide , coz you should be comfortable with OS.
I am installing ns2 in fedora from all in one package of ns2.I copied patch from the website and tried to install as per your procedure but it still gives some errors and says
make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting …
For problems with Tcl/Tk see http://www.scriptics.com
even after copying the patch im getting same error
first thing, this patch related problem is only with fedora 10 and not with the previous versions. secondly, when we run the patch it gives two file name try with the other one also, else you may need to install XFree86-devel and XFree86-libs
try this hope it will solve your problem
All the best
Hi..I have newly learnt about ns and need to install ns-2.33.can you suggest which OS to install.I have heard that Fedora 10 do not allow LAN connection,also some patching need to be done for installing NAM.Can you please list the steps that I need to carry out.
In my personal views, I feel Fedora the best Linux for programming, not having much complications like red hat and also giving the flexibility of Linux. Ubuntu is also good but I think not for programmers, Ubuntu is for those who got fed up with Windows, but if you want to go for ns 2 like tools then definitely go for fedora 10. Fedora 10 allow lan connections, in fact with releases they change many thing in fedora ….. if you will try fedora 8 then you will like fedora 9 better then ever.
as far is patch is concerned, the post (under which you posted the comment) contains the same thing, this post explain an easy way to patch it in less than 2 minutes. just download the patch run it give it a file name and then your ns will be on move !
All the best.
Cheers !
i have problems with the path of NAM, i try all posibilities to configure the NAM, but dont have success, i have fedora 10 x64_86, and ns2 2.3, please help me to configure the path of NAM..
try with ns allinone package comparatively easy to configure and install. You can also try this link I think this will solve your problem of configuring the path from NAM http://www.edaboard.com/ftopic297674.html The installation procedure given is something I called “historical”
but you can try this, I never feeled the need for this, I always installed ns 2 with all in one pack and 2.33 version
svp qu’elles sont les étapes d’installation du module gprs sur ns-2.33?
merci d’avance
Je n’ai pas essayé un tel module si vous avez un lien pour ces module, nous, je vais essayer et vous faire connaître le même.
Observe!
=======================
I have not tried any such module if you are having a link for such module then mail us I will try and make you know about the same.
Regards !
I am installing ns2.33 on fedora10 which is on VMware.
I want to know how to download the patch? Is it just copy the patch and create a new file in the directory and run the patch or is there a method to download the patch specified in the link
Rajesh,
open the link in new tab (patch files) , copy the text (or so called content of the patch file ) in a text file, rename it by the same name as of the link , your patch file is ready to use. copy in the tk folder and run as per earlier instruction.
One more thing dont run the command “make clean” just go with other commands like ./install, ./configure, make, ./validate
Enjoy ns
bonsoir,
je veux installer le patch ns-gprs-backup-04-05-2004.tar.gz sur ns-2.33 en utilisant la commande suivante:#./install-gprs-backup ns-gprs-backup-04-05-2004.tar.gz chemin-ns
mais le script ./install-gprs-backup n’existe pas sous le dossier ns-allinone-2.33 et il me retourne le message suivant: bash: ./install-gprs-backup: Aucun fichier ou dossier de ce type
quel est le probleme?
comment je dois ajouter le script ./install-gprs-backup sous le dossier ns-allinone-2.33?
aidez moi svp
merci beaucoup
salma
salmabh_rt@yahoo.fr
hi,
I want to try GPRS simulation using Network Simulator.
I will try another way:
I downloaded the source code gprs-072501-2.1b7a.tar.gz.
I am having ns2.33 installed but i donot know how to integrarte this gprs module into ns2.33
please help me
thanks
salma
salmabh_rt@yahoo.fr
Hi.I have installed linux fedora 4 on vmware and I have been trying to install ns-2.29 on it. But, in the installing process, there are some errors. While building XGRAPH, it showed some checking scripts and at last finished building with this statement: “can not create xgraph,but xgraph is an optional package”. Also it couldn’t create sgb library and zlib. When it wanted build tcl8.4.11, it stoped installing process with these statemens:
“configure : error, no acceptable cc found in $path. Tcl is not part of the ns project. Please see http://www.scriptics.com to see if they have a fix for your platform.” Could you help about that? what should i do? Thanks in advance.
I think should install ns on fedora 8+ but if you are trying with fedora core than install this packages : autoconf, automake, gcc-c++ , libX11-devel, xorg-x11-proto-devel, libXt-devel, libXmu-devel
Try after installing this packages also install gtk if it is not there than.
all the best.
Thanks for your attention. Where can I find these packages and gtk package? should I install them on fedora 4 or fedora 8 or on ns2.29? do you suggest me to use fedora 10 instead of ? can I use fedora 10 and ns2.29 (allinone package) together?
Regards
thanks for your attention. where can I find these pacjages? in which fedora should I install these package?(fedora4 or fedora8) do you suggest me to install fedora 10 instead of fedora 4? can I use allinone-ns2.29 on fedora 10? thanks more.
Hello Mr. Ashwini patankar
Please allow me do describe my question in detail can maybe take your time to read.
Firstly ,I download a ns-allinone-2.33, and install all the required stuff of cygwin. then I tried to install ns-2.33. but message told me tk8.4.18 make failed. so I found the tk8.4.19.and installed, seems OK.
then I fixed the path and I realized that i did not use tk-8.4.18-tkBind.patch before installing. So I tied tk-8.4.18-tkBind.patch and re-install again. and tried to run the example.tcl in old version ns-allinone.ns-tutors folder. I can get the same message as yours :“bind Listbox {
%W yview scroll [expr {- (%D / 120) * 4}] units
}”
invoked from within
“if {[tk windowingsystem] eq “classic” || [tk windowingsystem] eq “aqua”} {
bind Listbox {
%W yview scroll [expr {- (%D)}] units
}
bind Li…”
Then I also found the tk-8.4-lastevent.patch. do the same as yours. follow your steps, can the same message come out again.
I can not enjoy the simulation. Please give me some suggestion. thank you. I must get it run before I hand up my proposal in two weeks.
thank you very much.
Sorry, I need to add: I used cygwin and get all the components which I can download.
Hello Mr. Ashwini patankar
I am sorry, I trouble you so much. last night, I tried to re-install the NS-2 entirely in the upper folder of the previous one.(the previous one is in cygwin\home\student\, now is in cygwin\home\).and add the patch in them. I secceed, I am happy. But could you tell me what is the matter if I install two ns-2 in different places. May I delete the previous folder totally?
Thank you very much.
Hi, I tryed to install ns-allinone-2.33 on fedora 10 but it wasn’t installed and give me the same error as I faced them with fedora 4. When it wanted build tcl8.4.11, it stoped installing process with these statemens:
“configure : error, no acceptable cc found in $path. Tcl is not part of the ns project. Please see http://www.scriptics.com to see if they have a fix for your platform.” please help me.
please
hi sorry for the late reply, you can install any ns package on any version of fedora, as far as dependendies matters, you can install them by yum command or you can also download them from any mirror of fedora which is given on fedora website.
hi mina, this is some of the problem which is already discussed in earlier post, just install the earlier mentioned packages and then try surely you will succeed in installing the ns
Regards,
cheers !
Hello Huanan Gu,
Sorry I was bussy with my marriage thats why I am replying realy late. You can install two ns simulataneously, but I think you should take care of exporting environment variables. means for first ns you will create a sh file as mentioned in the post and paste that in profile.d folder, now when you type ns in terminal then it will take the path from that file, for running another version you will have to change this script , I think if you are planning to install two different versions of ns then make two scripts and use them or i think we will need to do some engineering so that in terminal we will get two options like #ns1 ex.tcl and #ns2 ex.tcl
Please make me know if you will get some solution,
Regards and Once again sorry for late reply
Hi,
I m trying to install ns-allinone-2.33 on fedora 9 but getting the following error plz help….make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting …
For problems with Tcl/Tk see http://www.scriptics.com
hi KS Solanki,
in the earlier comments this prob is stated and on installing the required packages you will be able to install ns for this tk related problem refer to earlier comments
cheers !
Hello Mr. Ashwini patankar
I am sorry too for not response to you quickly. I am reading my master degree in TUT of SouthAfrica. I am supposed to learn 9 lessons and do my WSN routing and localization by using in NS-2 meanwhile. Now I am doing my lessons, they are so stressful. I think I can start to learn NS-2 in July. so now I do not understand what you suggested to me on 7th May. But I appritiate you very much. Do you think whether I need to use two NS-2 together? or May I delete the first unsuccessful-installed one directly? Thank you very much. I will be the frequent guset.
Best regards.
I need to say congratulation to you for your marrige. May I suggest you enjoy your life more often?
hehe.
hello Huanan,
you can delete the one ns which is unsucessful and you can work with the other (the successful one). and it really sounds great that you are working on wsn all the best
Hello,
Mr. Ashwini your method worked for me but while compiling nam i m getting some error plz…
see the output…..
$make
rm -f nam
g++ -o nam \
tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o -L/home/kkk/ns-allinone-2.33/tclcl-1.19 -ltclcl -L/home/kkk/ns-allinone-2.33/otcl -lotcl -L/home/kkk/ns-allinone-2.33/lib -ltk8.4 -L/home/kkk/ns-allinone-2.33/lib -ltcl8.4 -lXext -lX11 -lnsl -ldl -lm
nam_stream.o: In function `NamStreamCompressedFile::read(char*, int)’:
nam_stream.cc:(.text+0xf2f): undefined reference to `gzread’
nam_stream.o: In function `NamStreamCompressedFile::eof()’:
nam_stream.cc:(.text+0xf51): undefined reference to `gzeof’
nam_stream.o: In function `NamStreamCompressedFile::close()’:
nam_stream.cc:(.text+0xf6d): undefined reference to `gzclose’
nam_stream.o: In function `NamStreamCompressedFile::tell()’:
nam_stream.cc:(.text+0xf9b): undefined reference to `gztell’
nam_stream.o: In function `NamStreamCompressedFile::seek(long, int)’:
nam_stream.cc:(.text+0xfe0): undefined reference to `gzseek’
nam_stream.cc:(.text+0×1000): undefined reference to `gzread’
nam_stream.cc:(.text+0×1025): undefined reference to `gztell’
nam_stream.cc:(.text+0×1053): undefined reference to `gzseek’
nam_stream.o: In function `NamStreamCompressedFile::get_char()’:
nam_stream.cc:(.text+0x107d): undefined reference to `gzgetc’
nam_stream.o: In function `NamStreamCompressedFile::gets(char*, int)’:
nam_stream.cc:(.text+0x10a7): undefined reference to `gzgets’
nam_stream.o: In function `NamStreamCompressedFile::NamStreamCompressedFile(char const*)’:
nam_stream.cc:(.text+0x10eb): undefined reference to `gzopen’
nam_stream.o: In function `NamStreamCompressedFile::NamStreamCompressedFile(char const*)’:
nam_stream.cc:(.text+0×1175): undefined reference to `gzopen’
collect2: ld returned 1 exit status
make: *** [nam] Error 1
so what u think ……?
Thanks for answering. Waiting for ur response.
Bye
Hi,
Plz tell me the exact path settings to be done after completing the installation.
Thanks
I was little busy to go dipper into the prob you mentioned, but for a while go with the steps mentioned in how to install ns2 ? post also do not run make clean command skip that one
all the best
Hi,
Mr. Ashwini…. thanks for responding ……finally your method worked for me… thanks a lot….and be ready for troubles i m going to give u in future……
ha ha ha ha ha….
thanks again.
Bye
Hi K S Solanki,
Happy to know that your problems got resolved. Always feel free to ask queries and doubts, we together will try to sort them out
Cheers !
Hello Mr. Ashwini Patankar,
first thank you for the invaluable group and comment you add in here.
1) I have to say that I also have the same problem for installing the ns2.33 on FC10 and I got the below error:
make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting …
For problems with Tcl/Tk see http://www.scriptics.com
2)Then:
….I tried to copy 3 existing patch files in the tk directory and patch them( .lastevent.patch & .Bind.patch), but no one of them worked for me and i still get the same error:
make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting …
For problems with Tcl/Tk see http://www.scriptics.com
……………………….
3) I saw your comment for NIKHIL on March 3, 2009 at 1:12 am :
“first thing, this patch related problem is only with fedora 10 and not with the previous versions. secondly, when we run the patch it gives two file name try with the other one also, else you may need to install XFree86-devel and XFree86-libs
try this hope it will solve your problem”
………………………………………………………….
but when i refer to the XFREE86-libs & XFree86-deve , there are several versions which i dont know which version I have to choose (for my FC10-i386)…anyway I choose the latest one (XFree86-devel-4.3.99.903-5.i386.rpm & XFree86-libs-4.3.99.903-5.i386.rpm) then after downloading it ask me if i want to install them,but when i am trying to install them it gave me the “LOCAL INSTALL FAILED” alert. So I am not sure how to proced with this,would you please explain in more details which version is more suite and then how to install or continue with this? I really appreciate it if you can comment on this,because for a long i am struggling with this problem.
Thank you and Best regards
Hello Bahareh,
I think you had messed the steps, for this make failed related stuff try to install make or visit this post then try to run tk patch , you dun need to install those X****** things. you will need the patch after installing ns2 when you will run wireless-flooding example , while running this example if your nam will not appear then only go for patch else enjoy ns2.
Try this and make me know about your sucess
All the best !
I tried to installed these 2 files manually in Download directory, but i got the below errors
$ cd Download/
$ ls
Note_forPacthing_tcltk_for_nam_probelm tcl8.4.14-src.tar.gz tk8.4.14-src.tar.gz XFree86-devel-4.3.99.903-5.i386.rpm XFree86-libs-4.3.99.903-5.i386.rpm
$ rpm -i XFree86-devel-4.3.99.903-5.i386.rpm
error: Failed dependencies:
XFree86-libs = 4.3.99.903-5 is needed by XFree86-devel-4.3.99.903-5.i386
render is needed by XFree86-devel-4.3.99.903-5.i386
XFree86-libs is needed by XFree86-devel-4.3.99.903-5.i386
can you please comment on this
Thank you for your fast respond.
Actually I cannot install the NS2.33 on FC10 which is weird for me too,because I never had this problem with old version of fedora6 and ns2.29 3 year back and also I had no problem with ns2.33 +centOS ,but i would like to know what would be the problem that i cannot get installed ns2.33 on FC10..I got thousands lines of errors!!! and the last lines aftr the below com. are:
tar -xzf ns-allinone-2.23.tar.gz
cd ns-allinone-2.33
./install
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
tk8.4.18 make failed! Exiting …
For problems with Tcl/Tk see http://www.scriptics.com
$ yum list tk
Loaded plugins: refresh-packagekit
Installed Packages
tk.i386 1:8.5.3-5.fc10 install
Thank you,
hope you can help me on this simple problem !!!:) that i got headech bcoz of that
Hello Bahareh,
This time go for a clean install. Now you can do two things either go with ns 2.33 or try ns 2.34RC1
ns2.34 is a release candidate in which they fixed the bug , the trace of the mail by Tom Henderson is given below:
Hi all,
I’ve posted some new release candidates for the following packages:
ns-2.34
nam-1.14
ns-allinone-2.34
They are available at the following location:
http://sourceforge.net/project/showfiles.php?group_id=149743
ns-2.34 is mainly a maintenance release with the following major
differences from ns-2.33:
1) AOMDV (On-demand Multipath Distance Vector Routing in Ad Hoc
Networks) implementation
2) Tmix synthetic Internet traffic generation tool
3) Collection of bug fixes for 802.11Ext model
In addition, the recent Linux distributions (especially Fedora Core 10)
started to have problems with the previous releases, so there are some
fixes aimed at better 64-bit support and support for Fedora Core 10.
These packages still rely on the 8.4 series of Tcl/Tk. I had hoped to
release these a while back but I was trying to bump them to Tcl/Tk-8.5
(especially thanks to patches from Amir Habibi). However, after some
internal testing of some release candidates with Tcl/Tk-8.5, I decided
that it would be safer to make the transition after this release.
Therefore, if your platform supports tcl/tk development packages only
for version 8.5 (I think FC10 is the main one in this category) please
use the ns-allinone-2.34 version for now.
How you can help
—————
Please give these packages a try on your system. If you encounter a
problem, please first download the equivalent package for the previous
version (i.e., ns-2.33 or nam-1.13) and see if you get the same problem
or if we are introducing a new problem. Then let me know, and cc the
ns-developers list. Please specify as much detail as you can about the
system (operating system version, CPU architecture, gcc version, etc.).
If you can send in a patch that fixes any problem, this is even better.
If there aren’t any major problems, we can make this a real release at
the beginning of June, or else I’ll create new release candidates as needed.
Thanks,
Tom
========================
I hope this mail helps to make the things clear to many ns user that what is the actual problem, I have not yet tried ns 2.34.
as far is a clean install of ns2.33 is concerned follow this steps,
on terminal type this
then go for other yum installations as mentioned in this post or type this
yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install libXmu-deve
you can skip xorg-x11-proto-devel
also
yum install gcc*.*
then try to proceed to install ns2.33 while installing ns2.33 skip “make clean”
now run an example for checking whether nam is working properly or not
if nam is not working then run patch
try the example
now enjoy ns2
All the best
Hi Mr. Ashwini,
I had the same situation and problems that Bahareh (I only had used ubuntu and with apt-get I had not problems) but when I read your comments, I found the solution through visited the “post” .
Now I am using Suse 11.1 and with the yast->software->install/uninstall, I can install all the packets necessaries and start to enjoy.
Since México, thanks a lot.
Thanks for stopping by and leaving a comment. It is really great to share knowledge, your comment will help many others !
error then ./install
: command not found
./red.tcl: line 4: namtrace-all: command not found
: command not found
./red.tcl: line 9: trace-all: command not found
: command not found
: command not found
./red.tcl: line 13: proc: command not found
./red.tcl: line 14: global: command not found
: command not found flush-trace
./red.tcl: line 16: close: command not found
./red.tcl: line 17: close: command not found
./red.tcl: line 18: exec: nam: not found
: command not found
Reza,
Go with the fresh installation of ns2. Do not forget to follow the steps mentioned in the post NS2 revisited. If you get the problems again, then please restate the problem with details.
All the best.
Hi
I’ve tried to install ns-allinone 2.33 on debian but there’s an error failed at tk 8.4.18 and the installation failed. Pliz someone can help me ?
Hi fifi,
I think you should visit Errors in Ns2 revisited . Go through the post and install the required dependecies using apt-get. This will work for you. Rest of the procedure is same for debian and red hat and fedora.
When i running xraph in my tcl code.Please tell me how to come out from this.
[root@localhost aodv]# ns: finish: couldn’t execute “xgraph”: no such file or directory
> while executing
> “exec xgraph sim1forBlackHole.tr -geometry 750×750 &”
> (procedure “finish” line 6)
> invoked from within
> “finish”
> [root@localhost aodv]#
Hello Umang,
Try to install Xgraph separately by downloading it from ns2 site. When we first install ns2 from all in one package, xgraph failed to install because of some dependency problems.
Cheers !!
Hi Friendssss…….Now You can Install NS2 in Ubuntu within Two Minutes..No tedious task of Changing environment and all etc.. U just Download the link(.rar file) Provided below.. and Extract the Files and Just Double click on them ..thats it Dudes.. now
you have installed Ns2 in Ubuntu un two Minutes.. to Check..it got installed or not just go to terminal and type ns then you will get % Symbol just exit the terminal.. to run a Tcl file go to terminal and type ns example1.tcl…..wow…… now U can see the Nam animator..
http://suneelshinde.blogspot.com/2010/02/install-network-simulator-2-ns2-within.html
================================================================
this one is not tested, install it on your risk – wirelesscafe Team
sunilsmcs
View Public Profile
Send a private message to sunilsmcs
Send email to sunilsmcs
Find More Posts by sunilsmcs
Add sunilsmcs to Your Contacts
New Reply
I cant tell how grateful i am for this info that you have provided.
I am a beginner of ns2. I have installed ns2-allinone on fedora and is working but i dont know how to run tcl scripts. can you please take me through the process of runing tcl scripts on ns 2?
Thank you
Mumin,
I will try to write a brief tutorial post for ns2 soon. mean while for running any tcl script, take an example you want to run wireless-flooding example. go to the directory where it is residing , typically ns2.34/ns-2.34/tcl/ex then type ns wireless-flooding.tcl and hit enter, it will start running, you can view the source code by gedit wireless-flooding.tcl and you can see the starting lines, which help the tcl to run through ns command.
Enjoy ns2
WirelessCafe Team !
hello Ashwini,
I have installed ns2.30 in fedora 9.But while running the wireless flooding example I am getting problem.
ns: finish: couldn’t execute “nam”: permission denied
while executing
“exec nam wireless-flooding-$val(rp).nam &”
(procedure “finish” line 8)
invoked from within
plz suggest a solution.
THANKS
Hello Ronica,
First thing, are other examples running ? if they are not running then we will have to figure out the problem.
Secondly, try to run the example as root, may be it will fix the problem.
Make us know.
Regards,
WirelessCafe team
Hi
I try to install ns2.26 on linux redhat 9, but I encounter this error while building ns2.26:
/usr/bin/ld : cannot find -lpcap
collect 2: ld retured 1 exit status
make : *** [ns] error 1
NS make failed
what is ur idea about this error’s solution?
Tanx!
Pingback: 2010 in review « Wirelesscafe
hi….i want to install ns2.31….which version of fedora i should use to install this?…i need to install ns2 for creating cognitive radio network..
Hello Sindhu,
You can install ns2 on any version of fedora, I will suggest you to pick fedora 14 , 3+ GB iso. and go for complete installation, that means, select the packages manually while installation, so that you will not need to install additional packages while installing ns2 and it will get installed out of box.
Njoy NS2 !
Ashwini for WirelessCafe !!
Hi sir!!
I installed ns2.33 in ubuntu and having a problem while executing a tcl script
i.e. while in terminal
ns olsr-example.tcl
invalid command name “Agent/OLSR”
while executing
“Agent/OLSR set use_mac_ true”
(file “olsr_example.tcl” line 44)
please help me in this regard….:)
Dear Prakash,
you installed ns2 but you forgot to install OLSR module. Install OLSR module and then try the example script
All the best !!
Ashwini for WirelessCafe !!
Dear Prakash,
I’ve tried to run olsr-example.tcl and have found the same error message. Did you have it solved? Any change on Makefile? Thanks in advance,
Diogo.
Dear Diogo,
Making a post on OLSR by the tittle “How to install OLSR for ns2?”
Thanks and Regards,
Ashwini Patankar for WirelessCafe !!
hello friends,
i hve to used ns 2.26 for some protocol running..i m using fedora 10 so can anyone suggest installtion steps for ns-2.26 in fedora 10??and if any patches needed then tell me which one…plz help me as fasr as u can..
Dear Krunal,
the method for installing ns2.26 is same as for the one mentioned in the post. If you will come across any error s then make us know with the error.
All the best,
Ashwini for WirelessCafe !!
which packages we need to install and where i can find it…..?
Ankit,
For what ? or read the post !!
All the best,
Ashwini for WirelessCafe !!
respected sir,
i have created cognitive radio networks in ns2. Also i have given mobility to those CR nodes alone. Now i do not know how to analysis the mobile nodes. Also i should increase the performance of those mobile CR nodes. Can you please kindly help me by giving me some suggestions for improving the performance of mobile CR nodes?
i hAVE installed fedora 10 using live cd………i tried to install ns2.1b6(allinone) but it throws an error as tcl 8.3.0.6 failed exiting…………….pls suggest me wich version of ns2 better works……………
Sindhu,
go through the pdf ns2 for beginners, chapter 8 , as far as I remembered, you will get the solutions, else Feel free to drop a mail.
All the best !
Ashwini for WirelessCafe !!
Sandeep,
Read the post “Errors with NS2 installation – REvisited !”. First install the dependencies, as you installed fedora from live, that is why you will require to install dependencies first. the version of ns2 totally depends on your requirements, I prefer ns2.34 and complete installation of fedora X(replace with the latest version, in my case 14).
All the best,
Ashwini for WirelessCafe !!
I m getting the following error while running prog..
Plz help me in resolving this prob..
ns: finish: couldn’t execute “nam”: permission denied
while executing
“exec nam out.nam &”
(procedure “finish” line 6)
invoked from within
“finish”
Dear Chaya,
OS ? ns2 version?
and post the out put of “whereis nam”
All the best,
Ashwini for WirelessCafe !!
Dear,
I’ve successfully installed ns-2.34 on suze 11.4. Then I want to add the MP-OLSR module (http://www.jiaziyi.com/MP-OLSR.php) according to the following instructions: http://masimum.dif.um.es/nsrt-howto/html/node1.html.
After executing make, I got this error that I don’t understand:
——————————————————————————————————–
mpolsr/MPOLSR.o: In function `MPOLSR::MPOLSR(int)’:
MPOLSR.cc:(.text+0x145b): undefined reference to `Agent::Agent(packet_t)’
mpolsr/MPOLSR.o: In function `MPOLSR::MPOLSR(int)’:
MPOLSR.cc:(.text+0x16f5): undefined reference to `Agent::Agent(packet_t)’
collect2: ld a retourné 1 code d’état d’exécution
make: *** [ns] Erreur 1
——————————————————————————————————
Could you help me please? Thank you.
when i execute tcl scripts it shows
ns: finish: couldn’t execute “xgraph”: permission denied
while executing
“exec xgraph -bb -tk -x time -y queue temp.queue &” (procedure “finish” line 30) invoked from within “finish”
Dear Saravanan,
First check xgraph is installed properly or not, go to terminal and type xgraph just like we type ns and hit enter. If it will not give any error then we need to rethink about the solution.
all the best,
Ashwini for WirelessCafe !!
Good Evening Sir
Can u Plz give the steps to inatall ns-allinone-2.34.tar on ferdora 10
sir plz mention steps… i’m getting prblm after ./install
plz give steps from starting till end ….
thanks
regard
manu
sir plz reply quickly…thanks…
Good Evening Sir
Can u Plz give the steps to inatall ns-allinone-2.34.tar on ferdora 10
sir plz mention steps… i’m getting prblm after ./install
plz give steps from starting till end ….
thanks
regard
manu
Dear Manu,
The steps are clearly mentioned in the post, what error are you getting after running ./install
All the best,
Ashwini for WirelessCafe !!
thanx 4 the solution. it worked 4 me……