to install different ns2 versions on my system
hello kudfl,
I was working on ns2.32 . But now i require ns2.34 also . I read some of threads and found it is possible to have two diffrent ns2 versions on the same machine. Installed ns2.32 and ns2.34 in diffrent directories. Installed successfully . when i type ns % sign appears . But i dont know which ns version it is running ? i read ur thread 2 on the following link http://www.linuxquestions.org/questi...ne-4175503576/ so i delete the path varibale for ns2.32 from bashrc file . and did the following ns-2.32/ : $ cp ns ns-orig cp ns-orig /usr/local/bin/ but it is giving me error : permission denied . working on ubuntu 12.04 plz advise further rgds sims |
You can have as many ns-allinone-2.xx as you want, on the same OS.
( I have about 170 on one OS ! ) "$ cp ns-orig /usr/local/bin/" is wrong. Right is : $ sudo cp ns-orig /usr/local/bin/ As all simulation files.tcl can be run with $ ns-any-name .. you are supposed to save all the 'ns' executable`s as e.g. : /usr/local/bin/{ ns, ns-orig, ns232, ns234, ns232-<protocol>, ns234-<protocol> }. - |
thanks a lot.
My problem resolved. Is there a need to store ns path in bashrc file . directly we can run our programs with ns232 or ns234 command . |
Re #3.
Quote:
from a time when students used the 'University Computers', and thus had no write access to /usr/. Today we run 'make install', and get /usr/local/bin/ns , .. or we copy ns-<any-name> to usr/local/bin/. The executable ns (and ns-new-name) is hard coded to know the library location: ns-allinone-2.xx/{ bin/tcsh8* , lib/*/* }. Xgraph path : $ sudo apt-get install xgraph Nam path : No usable 'nam' packages from Ubuntu, get one here ... http://www.linuxquestions.org/questi...-4175524760/#2 - |
thanks
could you please help me I want to make a new protocol in ns2. Could you please tell me "how a simulation tcl script would be executed internally in ns2". That is how aodv.cc would be called from a simulation script. Although we define AODV as Val(rp) , but recv would be called or command function or anything else In command function , we write argv[1] == "start" . is it same as "$cbr start" . I would be very greatful if you provide me some link or give some insights under this. |
Re #5.
Quote:
Everything {c++, otcl, tcl/lib/*} is compiled into one file : The executable 'ns'. For an 'ns' from an ns-allinone-2.xx/ to run, these tcl files are used : ns-allinone-2.35/{ bin/tcsh8*, lib/*/* }. (Some simulations will also use ns-2.xx/tcl//<tcl-"libraries">, //"scene-files".) Quote:
And ... you can ask here https://stackoverflow.com/questions/tagged/ns2 - |
I want to ask the following --
Suppose we have a simulation script "wireless.tcl " . In this file we create agents and invoking mobility file , traffic file cbr etc. ....... when we run this .tr and .nam file would be created. We also have in ns2.32 or in any ns folder --> .cc files , .h files , packet files etc. How this functionality automatically would be called from a tcl script file. if anyone else can help , kindly do thanks & regards |
Re #7.
Quote:
1) /usr/local/bin/{ ns, ns-orig, ns232, ns-<any-name> }. 2) ns-allinone-2.32/{ bin/, lib/ }. 3) Examples, with the connected (tcl) files : Saved in a random location. .... I.e. no files are called, it's all inside the executable "ns". There are ways to call a file outside 'ns', but I have never seen it in use. . http://www.linuxquestions.org/questi...cl-4175464805/ . http://www.linuxquestions.org/questi...9/#post4094259 < http://www.linuxquestions.org/questi...ines-813129/#7 . http://wiki.tcl.tk/1491 C++ http://cpptcl.sourceforge.net/doc/quickstart.html . http://wiki.tcl.tk/13040 . http://cpptcl.sourceforge.net/ - |
All times are GMT -5. The time now is 08:37 AM. |