Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-02-2014, 06:41 AM   #16
LQ Newbie
Registered: Jan 2013
Posts: 28

Original Poster
Rep: Reputation: 0

I really appreciate your help dear knudfl
I can install ns2 successively.

From #11
'nam' → copy nam to /usr/local/bin.
'xgraph' is already in /usr/bin/ . Etc. etc.
Would you please say what files I should add(Or better to say copy) to this path /usr/local/bin ?
Based On above comments I have done there steps:
  1. Rename 'ns' from ns-allinone-2.34/ns-2.34 to ns234Orgin
  2. Copy ns234Orgin to /usr/local/bin
  3. Consider nam file in this path: ns-allinone-2.34/nam-1.14. Am I change nam file name too?1 (Or no problem in future If I installed another ns2 version. This one works for both)
  4. Copy nam from ns-allinone-2.34/nam-1.14 to /usr/local/bin
  5. in ns-allinone-2.34/bin directory. There are these files:
    ctangle  cweave  edriver  itm  nam  ns  sgb2alt  sgb2comns  sgb2hierns  sgb2ns  tclsh8.4  wish8.4
    Do I copy them from their paths to /usr/local/bin or just nam and ns are enough?2

Last edited by moreroz; 04-02-2014 at 06:58 AM.
Old 04-02-2014, 07:32 AM   #17
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,706

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
# 16 .

Nam : Use the binary package "nam-1.14.i586.tar.gz"
$ cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/
(( The 'nam' that you created is probably not working.))

Xgraph : Is part of the ns2 prerequisites : $ sudo apt-get install \
g++ autoconf automake make libtool patch libxmu-dev xgraph
(( The xgraph in ns2 is never getting built.))

About {ctangle cweave edriver itm sgb2alt sgb2comns sgb2hierns sgb2ns} :
Never seen anybody use those extra applications.
If any of them are required : $ cd <app>/ && sudo make install
... or for some it's $ sudo cp <executable> /usr/local/bin/ .
... Example of one that is often used :
$ cd ns-2.34/indep-utils/cmu-scen-gen/setdest/ && sudo cp setdest /usr/local/bin/

About : {tclsh8.4 wish8.4} : The executable 'ns', 'ns-orig', 'ns-<>'
is hard coded to know the location of it's own {tclsh8.4 wish8.4}.
* That's why it's easy to have e.g. eighty (80!) different ns-allinone installed :
'ns-version-name' will always know the location of the tcsh/wish it was built with.


Last edited by knudfl; 04-02-2014 at 01:33 PM.
1 members found this post helpful.
Old 04-02-2014, 01:28 PM   #18
LQ Newbie
Registered: Jan 2013
Posts: 28

Original Poster
Rep: Reputation: 0
Thanks to dear knudfl
Now I can run ns files(TCL scripts) succefully.

Last edited by moreroz; 04-02-2014 at 02:04 PM.


ns2, ubuntu 12.04

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
buffer inside MAC 802.15.4 in ns2 syanadia Linux - Newbie 0 09-12-2012 08:26 PM
802.11s support in ns2 houaidia Linux - Newbie 0 06-04-2012 04:17 PM
which ns2 version is compatible for TKN 802.11e patch stud17 Linux - Newbie 8 03-18-2012 11:12 AM
NS2 installation problem: no rule to make target 'VERSION' , needed by gen/version.c bilabongster Linux - Newbie 23 12-07-2011 11:54 AM
need 802.11e patch for ns2 stud17 Linux - Software 1 03-09-2011 06:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration