![]() |
|
#1
|
|||
|
|||
ns-2.27: recompile problemhi to all
i have problem in NS-2.27 i make modification on pi.cc and pi.h and i make recompile by using the following instructions: cd ~/ns-allinone-2.27/ns-2.27 ./configure --x-libraries=/usr/x11R6/lib/--x-includes=/usr/x11R6/include/ make ;make install and after finsh the last instruction i needed to run my TCL program when i type: ns exp.tcl it appeared the following message: bash:ns: command not found can anyone help me to solve this problem pleeeeeeeeeease.... thank u. |
|||
|
#2
|
|||
|
|||
Re: help me in ns-2.27: recompile problemQuote:
You need a a space before "--x-includes" If you have previously compiled ns2 by the three commands that you showed and it won't work after you made source file changes, I recommend the following:
If you previously just ran configure from the allinone directory and did not compile ns2 by itself, I would probably go back to the allinone directory and run the configure command from there. Code:
Let us know how it turns out. Regards, Dave |
|
#3
|
|||
|
|||
Re: help me in ns-2.27: recompile problemDear Dave:
i am thank you for your attention for my problem i execute your instructions as following: Code:
i get the following: Quote:
Code:
i get the following: Quote:
Which showes error i don't understand the reason of this error and for this command: Code:
i get this: / Quote:
i hope that you can help me thank you very much Ali |
|
#4
|
|||
|
|||
Re: help me in ns-2.27: recompile problemQuote:
On my Centos Linux systems the X11 libraries are under directory /usr/lib, not /usr/x11R6. Not all installations have the same location, and, in fact I don't have to tell gcc where to find the X11 libraries; it was given that information when the libraries were installed. Some installations have the X11 libraries at /usr/X11R6 (note the upper case X), maybe some have them at other places. Try "whereis libX11" on the command line (Note upper case X) and maybe your system will tell you. Quote:
In any case, since make failed, there is absolutely no reason to try make install. The idea is to take things (configure, make, make install) one step at a time. Don't even think about going to the next step until it looks OK at the current step. That's why I suggested that you save each step's progress in a log file. Look (yes, look) at the log file at each step. Here's my next suggestion: Instead of trying to make ns by itself, start all over again in the allinone directory. (See Footnote.) Enter the following on a command line in the ns-allinone-2.34 directory (or whatever allinone directory you have). Code:
The tail end of install.log should tell the tale. If you still have problems or if you have any further questions, tell us what Linux distribution you are using and what version. For example mine is a 32-bit Centos 5.3 distribution. If you are using something else, I may or may not be able to give specific directions, but I'm willing to try. Also, maybe someone else with a distribution like yours can help. My point being that when things don't go exactly as you expect, we are more likely to be able to help with fewest iterations if we know exactly what you are using. Regards, Dave Footnotes: In my previous post I suggested that you run "configure" from the allinone directory. That was a mistake. Current distributions of ns-allinone don't have the configure script in that directory. Run install as I show in this post. Also note that ns-allinone-2.27 is outdated. (It was released in 2004.) Current versions of gcc have problems with some of the stuff there. I strongly recommend that you download the latest version from here: http://sourceforge.net/projects/nsna...allinone-2.34/ Last edited by davekw7x : 20-Aug-2009 at 10:25.
|
|
#5
|
|||
|
|||
Re: help me in ns-2.27: recompile problemDear Dave
i use cygwin (Linux-like environment for Windows) in my project i need to modifay some files that alrady come with Ns2.27 those files: pi.cc , pi.h and my main program is exp.tcl when i search on internet they told me: when i make chages i need to reconfigure Ns-2 and they give me the instructions that i showed in my firest post but as you see when i run those istructions it give error.. i tray ./install and when i type : ns exp.tcl i get this ns:command not found i ask you to give me the right way to reconfigure NS-2. Note: when i install cygwin i get this message: http://img101.herosh.com/2009/08/21/119271825.jpg does this effect?? thank you |
|
#6
|
|||
|
|||
Re: help me in ns-2.27: recompile problemThe massage
http://img101.herosh.com/2009/08/21/119271825.jpg |
|
#7
|
|||
|
|||
Re: help me in ns-2.27: recompile problemhttp://
img101.herosh.com/2009/08/21/119271825.jpg |
|
#8
|
|||
|
|||
Re: help me in ns-2.27: recompile problemQuote:
I would go to http://www.cygwin.com/ and I would click on Install or update Quote:
Bottom line: I can't help. Sorry. Regards, Dave "Over and out." |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache Web Server newbie problem | niss3 | Apache Web Server Forum | 1 | 13-Apr-2009 19:38 |
| Torrents Download Problem | chandeep | Computer Software Forum - Linux | 7 | 09-Oct-2006 23:37 |
| Graphic problem in Unreal Tournament 2004 | zerox | Computer Software Forum - Games | 10 | 09-Oct-2005 13:31 |
| a significant problem after installing Xp | mohammad | Computer Software Forum - Windows | 10 | 09-Aug-2005 08:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The