[ns] installing ns on dual G5

Ron Bowman rdbowma at yahoo.com
Fri Sep 3 11:37:43 PDT 2004


Michael -
Below is what I did to install ns2 on my mac.  I hope
this helps you.  If not Hopefully somebody else.
Ron

The following is the procedure I went through to
successfully install
NS2 on a Mac dual 1.8 running Macosx 10.3.5.  I hope
everything 
I did is included here

Download ns-2.27-all-in-one from:
http://www.isi.edu/nsnam/dist/
  nam-src-snapshot.tar.+ 03-Sep-04 01:02     4M 
from the same page.
go into the mac folder and download the files:
  ns-src-mac.tar.gz      10-Apr-04 13:47    45M 
and 
  tcl2c++.c              12-Apr-04 09:37     5K 

I installed NS2 as follows:
created /usr/local/src/NS2_mac
mv all files downloaded above to the NS2_mac directory
unzip and untar ns-2.27-all-in-one
unzip and untar ns-src-snapshot
unzip and untar nam-src-snapshot

Then what I did (may not be correct, but it did
compile) is copy the contents of the snapshot folders
to the appropriate folders ini the ns-2.27-all-in-one
directory.

Now for modifying some files:

1) copy the tcl2c++.c file to:
ns-allinone-2.27/tclcl-1.15/tcl2c++.c

2) for the install file, the following is the diff of
my files and
this is described in the mail archives:
http://mailman.isi.edu/pipermail/ns-users/2004-March/040870.html

I use install_mod , so some changes to the install
file as indicated below may need to be made.

diff install_mod   ns-allinone-2.27/install 
287,290c287
<                       if [ ! -d ../gt-itm/lib ];
then
<                               mkdir ../gt-itm/lib
<                       fi 
<                               rm -f
../gt-itm/lib/libgb.a
---
>                         rm -f ../gt-itm/lib/libgb.a
292d288
<                       ranlib ../gt-itm/lib/libgb.a
312,314d307
<  if [ ! -d ./gt-itm/bin ]; then
<   mkdir ./gt-itm/bin
<  fi

3) modify the configure file for nam ( I use
configure_nam).  I had problems with the older
versions
being present versus the versions included with the
all-in-one-package
diff configure_nam nam-1-snapshot-20040830/configure
2366c2366
<   TCL_VERS=8.4.5
---
>   TCL_VERS=8.3.2
2789c2789
<   TK_VERS=8.4.5
---
>   TK_VERS=8.3.2
3289c3289
< OTCL_VERS=1.8
---
> OTCL_VERS=1.0a8
3483c3483
< TCLCL_VERS=1.15
---
> TCLCL_VERS=1.0b13

4) for removing some errors that occur with validation
tests, modify ns-2.27/tcl/lib/ns-lib.tcl by
going to line 436 and 437 of the file and moving the
comment below the end of the continued
line.  See my post:
http://mailman.isi.edu/pipermail/ns-users/2004-September/044406.html

5) in file ns-2.27/tcl/lib/ns-route.tcl modify 4 lines
as described here below the liink
http://mailman.isi.edu/pipermail/ns-users/2004-April/041904.html
lines 331, 348, 354 and 391 need to be commented as
indicated in some of the emails in the archives.  The
line above these mentioned are commented
out and the ones mentioned are continuations of these
commented out lines


After doing all of this, you should be able to go into
ns-2.27-all-in-one and run ./install with no problems.

I create a log of the install by using:  ./install >&
install_log.txt

As a note, and this came from an email in the users
group as well. when validation is run, there will be 
13 files that result in a "difference" between the
file generated and the test file.  This is due to a
space
difference as the author of the message mentioned.  i
removed all spaces from the files indicated, and
did the comparisons which showed no differences.  
I ran ./Validate >& validate_log.txt and searched the
log file for differs to find the files.

these are the files with space differences:
aodv.test
dsdv.test
dsr.test
hier-session.test
control-driven.test
data-driven.test
reroute.test
simple.test
diff-prob.test
diff-rate-default.test
diff-rate-other.test
flooding.test
omnimcast.test



I have also discovered that two tests are no longer
run, though the base test files still exist when
validation is run. these files are:
TLC1-dreq.test
mcast-dreq.test
and are found in the test-output-webcache directory

I hope this helps some people.

Ron





		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 



More information about the Ns-users mailing list