![]() |
|
#51
|
|||||
|
|||||
Re: run script command on ns2.26Hello Dave
Thank you for your prompt answer, I re-install my 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 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:
After that the file libg.a appeared: Quote:
Back to ns-allinone-2.31 this is the result of ls-l drwxrwxr-x 7 Dennis Dennis 4096 Mar 26 17:41 gt-itm Once I'm in /gt-itm there is no lib directory: Quote:
So I proceed to create it in order to do the next step: Now: Quote:
I copied the file libgb.a After perform the installation I found the following in the log file: Quote:
These are all the file that I can find, I hope you could help me to solve this. Best regards Dennis Arturo |
|||||
|
#52
|
|||
|
|||
Re: run script command on ns2.26Quote:
Let me get this straight: When you untar ns-allinone-2.31.tar.gz and cd into ns-allinone-2.31/ns-2.31/gt-itm there is no lib directory? Then your copy of ns-allinone-2.31.tar.gz is defective. Where did you get it? Nevermind... Here's a suggestion: Since you need a new ns distribution file, get the most recent version. Delete directory ns-allinone-2.31 and everything below it. Go to http://www.isi.edu/nsnam/ns/ click on Download and Build ns This takes you to http://www.isi.edu/nsnam/ns/ns-build.html On that page, scroll down to the section that is titled Getting everything at once. Click on current release 2.32 That takes you to the sourceforge project page for ns. Click on ns-allinone-2.32.tar.gz That takes you to a mirror from which you download the file. After the download is complete, here is what I get for my system: Code:
If your file size does not match this exactly, then you have a bad copy. If it doesn't show that you are the owner, then log out and log back in as yourself. Then Code:
then Code:
Then Code:
In the install.log file there will be lots of warnings like Code:
Now, when the install script has done its thing, open install.log with a text editor. Here are my first 10 lines: Code:
Starting at about line 81: Code:
A reminder: Ignore messages that begin warning: incompatible implicit declaration of built-in function... You can also ignore the message about gb_io.w:201: warning: comparison is always false due to limited range of data type . That's OK. You can also ignore warnings that look like queue.h:77: warning: ‘class Queue’ has virtual functions but non-virtual destructor, You can also ignore warnings like editview.cc:85: warning: format ‘%-u’ expects type ‘unsigned int’, but argument 3 has type ‘long int’. You can also ignore warnings like trace.cc:112: warning: unused variable ‘pos’. You can also ignore warnings like proxytrace2any.cc:21: warning: non-local variable ‘<anonymous enum> OutputFormat’ uses anonymous type. These are all innocuous. Anyhow, back to install.log. A few lines down Code:
Somewhere around line 478: Code:
Line 559: Code:
And so it goes, through builds for tcl8.4.15, Tk8.4.15, OTcl-1.13, Tclcl-1.19, ns.2.32, nam.1.13. Note that there is this message: Code:
This particular message is part of the automatic build script(s), and does not indicate a problem. The bottom line for this section is Code:
Note also that this message is "normal" and is not a problem: rm: cannot remove `./otcl-1.13/libotcl.so': No such file or directory . Near the bottom of the log file I see the following: Code:
cd into ns-allinone-2.32/ns-2.32 and Code:
The goal is, that after many, many (many) tests, you would like to see, at the end: Code:
Regards, Dave Last edited by davekw7x : 26-Mar-2008 at 10:27.
|
|
#53
|
|||
|
|||
Re: run script command on ns2.26Hello Dave
Thank you very much for your prompt answer, I did it with the new distribution of NS-2 and it worked!!!!! I have the same messages than you and now I;m sure that the installation was successfull. Now I will re-read your previous post about where to place the files that indicates the last message of the installation, .bash_profile or .bashrc? that:s the question. I will read your post carefully, I hope you could give me any additional advice about where to place this Thank you very much again. Best regards Dennis Arturo |
|
#54
|
|||
|
|||
Re: run script command on ns2.26Hello Dave
Finally, after being a little bit sick, I finally finish the installation of the NS2 package it works great!!! Thenk you very much for your help. Best regards from Japan Dennis Arturo |
|
#55
|
|||
|
|||
Re: run script command on ns2.26Hello Dave
Is being a long time, thank you very much for you help in the installation of NS2, I have another question, I hope you would be able to help me. I'm newbie in C programming, but at the same time I need to study this language as a base for other languages. Could you tell me what kind of books, tutorials, compilers or other resources that I can use to learn C programming for Linux PCs? Best regards and thank you for your help. Regards Dennis Arturo |
|
#56
|
|||
|
|||
Re: run script command on ns2.26Quote:
Since it is an entirely new topic, it deserves a new thread. Furthermore, since it is about C programming, maybe a better place to post it would be the The C Programming Language Forum. Give the thread a meaningful title (something about "Looking for learning materials for C programming," or some such thing). There are many helpful people who hang out there, but lots of them might not respond to a post about such a specialized topic as ns2.26. Regards, Dave |
|
#57
|
|||
|
|||
Re: run script command on ns2.26Hello Dave
Thank you very much for your kind advice, I already made the post, if you have any advice please let me know. The link: www.gidforums.com Best regards Dennis |
|
#58
|
|||
|
|||
Re: run script command on ns2.26Hi Dave! I enjoy reading all the tips provided in most of your replies. it's very helpful especially for the newbies like me..
I have a problem with generating the nam directly after building the tcl script where the nam window didn’t seem to open. If i am not mistaken, the nam will be executed right after we enter the last line of tcl script command ($ns run), rite?? My nam-1.13 just works fine as i can open it directly from it’s own directory but not from the tcl script. However i got this warning message as i try to run the tcl script. do u know what this warning sign is about? ./ns ns ns-simple.tcl warning : using backward compatibility mode error when calling class OldSim : ns-simple.tcl For your information i'm running ns-2.31 on my kubuntu.. |
|
#59
|
|||
|
|||
Re: run script command on ns2.26Quote:
You don't run tcl scripts from inside ns. Use the tcl script as a command-line argument. If simple.tcl is in the current directory, enter the following from a command-line prompt: Code:
If it is not in the current directory, supply the path name on the command line. For example: Code:
or Code:
or some such thing... Some explanation: Simple-Simulation Example Regards, Dave Footnote: I am not an expert on ns, and it's not very often that I can actually help with "real" projects, but I have tried to help some few people get started with installations on Linux. Once you can run enough examples from your favorite tutorial, you are ready for action, and I would like to hear success stories about whatever people are actually doing with ns. |
|
#60
|
|||
|
|||
Re: run script command on ns2.26Hi Dave!
Thanks a lot for your quick reply. I feel relieved as i never have anyone to assist me before like this..Ok, well I have tried the steps u gave me and i run this command : ns simple.tcl but i keep having error message saying: error when calling class OldSim : simple. For your information, here is a brief explanation on how i started to run this command line ( just to show you if maybe i was running the command at the wrong place as i am still new to ns2.. ) /home/diaz/Desktop/ns-allinone-2.32/ns-2.32/./ns % ns simple.tcl ( % = is this sign showing that i'm ready to use ns2 and is this where i should put the tcl command line to view my nam? ) my questions sound stupid |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web stats | fcolor | Web Design Forum | 10 | 12-Jul-2007 09:48 |
| Need Free Website Templates | sam_dezine | Web Design Forum | 8 | 06-Sep-2006 04:25 |
| Who Is A Web Designer ? | alicehopkins | Web Design Forum | 1 | 13-Jun-2006 03:56 |
| HTML Code | amgujral | Web Design Forum | 0 | 07-Apr-2006 10:46 |
| Two virtual hosts, cgi script behaves differently on each | blimbo | Apache Web Server Forum | 0 | 04-Aug-2004 10:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The