Error When Calling Class Oldsim Ns-simple.tcl
sorted by: [ date ] [ thread ] [ subject ] [ author ] You should run the script directly from command line, NOT within ns---that is: ns ns-simple.tcl On Thu, 2 Jan 2003, yangshuhuihui wrote: > > hello, everybody > I newly installed ns, but when I tried to run some example, it failed to give the correct result. > I can see the "%" but if I typed "ns ns-simple.tcl", it said "error when calling class OldSim: ex-simple.tcl", if i typed "tcl ns-simple.tcl" , it said "ex-simple.tcl 0". I download the file "ns-simple.tcl" from internet. > I wonder whether I havenot installed the ns correctly. > Thank you very much. > > Jessie > > > ______________________________________ > > =================================================================== > 免费试用新浪15M任你邮 获数码相机、手机大奖 (http://vip.sina.com/sol_mail/promotion/pro_men.html) > 新浪二手市场:一元投入,十分惊喜,百分满意 (http://classad.sina.com.cn/2shou/) > 每天1部手机!缤纷新年短信专题 (http://sms.sina.com.cn/act/beautyxmas.html) > -- Xuan Chen USC/ISI Previous message: [ns] error when calling class OldSim: ex-simp Next message: [ns] How to define two basestation nodes to one wireless node? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up TCL file not found by NS2 in MAC OS X Mavericks up vote 1 down vote favorite I have just installed NS2 on Mac OS X Mavericks (10.9) http://mailman.isi.edu/pipermail/ns-users/2003-January/028502.html I have set all the paths correctly. I can successfully type 'ns' on the terminal, and 'nam' as well, and both execute without any problem. The problem is that when I input a file to the ns command, it says: couldn't read file "example.tcl": no such file or directory I use this command in the terminal: ns example.tcl I also tried it running it in sudo mode: sudo -s ns example.tcl I placed the file in the http://stackoverflow.com/questions/25268543/tcl-file-not-found-by-ns2-in-mac-os-x-mavericks bin folder, where there's ns's shortcut, I also placed it where actually the ns is. I also tried giving it a full path to the tcl file, but no use in both the cases. I also tried to run it after executing only ns first, and then within ns ran it (No idea if it works like this, I am just trying everything I have got!) ns %ns example.tcl (Hash sign shows the NS is running and I am typing the command there) This time the error is: warning: using backward compatibility mode error when calling class OldSim: hello-ddos.tcl The version of NS is 2.35. NOTE: I changed the file extension from .tcl to .txt, and it works fine now. Any idea of the problem? Please help! osx tcl ns2 share|improve this question edited Aug 12 '14 at 16:30 asked Aug 12 '14 at 15:40 nullpointer 769 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote The error message: couldn't read file "example.tcl": no such file or directory is pretty clear. It simply couldn't find the file; the OS returned an ENOENT error from the underlying system call to open the file. The usual reason for this is that the file isn't in the directory that you're running the program from, and the usual recommendation for dealing with this is to use the full nam
7 < 12345 6 7 > Thread Tools Search this Thread Rate Thread #51 26-Mar-2008, 05:49 ArturoD Awaiting https://www.gidforums.com/t-11746.html?page=6 Email Confirmation Join Date: Mar 2008 Location: Kumamoto, Japan Posts: 12 Re: run script command on ns2.26 Hello Dave Thank you for your prompt answer, I re-install my http://linoob.com/2011/04/ns2-simulator-on-ubuntu/ system this weeken and I included all the development packages and tools, so I hope this will help a little in the installation process, here are the results that I error when found: In the directory ns.../sgb I didn't have the file libgb.a file, so I performed make tests in the process I found that there were several warnings like: Quote: ...... cc -g -I/usr/local/sgb/include -DDATA_DIRECTORY=\"/usr/local/sgb/data/\" -c gb_io.c ./gb_io.w: In function 慽map_chr: ./gb_io.w:194: warning: incompatible implicit declaration of built-in function 憇trlen ./gb_io.w: In function 慽map_ord: ./gb_io.w:201: warning: comparison is always false error when calling due to limited range of data type ./gb_io.w: In function 慻b_r_open: ./gb_io.w:457: warning: incompatible implicit declaration of built-in function 憇trlen ./gb_io.w: In function 慻b_open: ./gb_io.w:467: warning: incompatible implicit declaration of built-in function 憇trncpy ./gb_io.w:502: warning: incompatible implicit declaration of built-in function 憇trlen ./gb_io.w: In function 慻b_close: ./gb_io.w:542: warning: incompatible implicit declaration of built-in function 憇trlen ............. ./gb_graph.w: In function 慻b_nugraph: ./gb_graph.w:455: warning: incompatible implicit declaration of built-in function 憇trcpy ./gb_graph.w: In function 憁ake_compound_id: ./gb_graph.w:492: warning: incompatible implicit declaration of built-in function 憇trlen ./gb_graph.w:494: warning: incompatible implicit declaration of built-in function 憇trcpy ./gb_graph.w: In function 憁ake_double_compound_id: ./gb_graph.w:508: warning: incompatible implicit declaration of built-in function 憇trlen ............. ./gb_basic.w: In function 慴oard: ./gb_basic.w:277: warning: incompatible implicit declaration of built-in function 憇trcpy ./gb_basic.w: In function 憇implex: ./gb_basic.w:543: warning: incompatible implicit declaration of built-in function 憇trcpy ./gb_basic.w: In function 憇ubsets: ./gb_basic.w:753: warning: incompatible implicit declaration of built-in function 憇trcpy ./gb_basic.w: In function 憄erms: ./gb_basic.w:949: warning: incompatible implicit declaration of built-in function 憇trcpy ./gb_basic.w: In function 憄arts: ./gb_basic.w:1140: warning: incompatible implicit declaration of built-in function 憇trcpy ./gb_basic.w: In function 慴inary: ./gb_ba
/ Network Simulator / ns / ns2 / ns2 basics / ns2 on ubuntu / ns2 tutorials / opensource / OSI Model / TCP/IP / ubuntu / Ubuntu 10.10 / Ubuntu 10.10 Maverick Meerkat / Ubuntu network simulator / UDP by Gaurav Saini ‘ns‘ is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. ns-2 is a packet-level simulator and essentially a centric discrete event scheduler to schedule the events such as packet and timer expiration. Centric event scheduler cannot accurately emulate 鈥渆vents handled at the same time鈥 in real world, that is, events are handled one by one. However, this is not a serious problem in most network simulations, because the events here are often transitory. Beyond the event scheduler, ns-2 implements a variety of network components and protocols. Setting it up Setting up ‘ns' in your Ubuntu system is really easy with the PPA given below : sudo add-apt-repository ppa:wouterh/ppa sudo apt-get update sudo apt-get install ns2 nam xgraph and we are almost there. Test Working of this simulator :- nam ns2 Installation[img src=http://linoob.com/wp-content/flagallery/ns2-installation/thumbs/thumbs_01add-ppa.png]92470[img src=http://linoob.com/wp-content/flagallery/ns2-installation/thumbs/thumbs_02update-repository.png]72960[img src=http://linoob.com/wp-content/flagallery/ns2-installation/thumbs/thumbs_03install-ns2.png]73240[img src=http://linoob.com/wp-content/flagallery/ns2-installation/thumbs/thumbs_04nam-editor.png]72953 If a window showing ‘The Network Animator' shows up, then we are good to go! For further details on the package, please see this link. Time for Experiments Just fire up anyone of the following and start working on them. ns nam tclcl otcl For e.g. - First, we typed ‘ns' and were presented with a prompt where all the programming oft he network is to be done which is about to be simulated. After that we type ‘nam' in the terminal and the window will appear showing NAM (The Network Animator). This tool was primarily built for animated packet trace data. This trace is typically derived as the output of any simulator say ‘ns' or from real network measurements e.g. using ‘tcpdump'. ns2 Directory structure ->> The C++