AMAZON

Thursday, July 12, 2012

how to patch nam, tk, gt-itm, libgb.a, eval.c in ns2 (install steps ns2.28)

1) Decompress ns-allinone 2.28
tar xvzf  ns-allinone-2.28.tar.gz

2) Patch nam: you need the patch file (I attach it)
cp nam-1.11.patch ns-allinone-2.28/nam-1.11/
cd ns-allinone-2.28/nam-1.11/
patch -p0 < ./nam-1.11.patch

3) Patch tk: you need the pacth file (I attach it)
cp tk-8.4-lastevent.patch ns-allinone-2.28/tk8.4.5/
cd ns-allinone-2.28/tk8.4.5/patch -p0 < ./tk-8.4-lastevent.patch 

4) Modify gt-itm files:
4.1) Create the following directories:
mkdir ns-allinone-2.28/gt-itm/bin
mkdir ns-allinone-2.28/gt-itm/lib
4.2) Copy the libgb.a file (I attach it) into the lib folder
cp libgb.a ns-allinone-2.28/gt-itm/lib
4.3) Copy the eval.c file (I attach it) into the src folder
cp eval.c ns-allinone-2.28/gt-itm/src

5) Install ns
cd ns-allinone-2.28/
./install

No comments:

Post a Comment