Documentos de Académico
Documentos de Profesional
Documentos de Cultura
November 11
Installing
Cygwin
& NS2.35 2010
NS2 installation had been a big challenge for me . It was a
nightmare but I succeeded. Here I am telling how I did it By Rubaiyat Bin Sattar
in my laptop ->> { vista home premium + Cygwin set up ranganbd@gmail.com
version 2.721 + ns-allinone-2.35-RC7 }
The very first thing that you have to do is to check the computer name and make sure
there is no space in the name. To do so here is the procedure ->>
Start > Run > {type regedit and hit enter or click ok} and it will show the Registry editor like the
picture below .
Expand HKEY_LOCAL_MACHINE > Software >Microsoft > Windows NT
Under Windows NT There is CurrentVersion . Click on it and you will see something like
below . From right side of the screen double click on RegisterOwner and checked/changed.
Download Ns2.35 :
http://www.isi.edu/nsnam/dist/release/ns-allinone-2.35-RC7.tar.gz
I downloaded the whole packages in Drive D in cygwin folder and it’s saved there
under a folder named http%3a%2f%2fcygwin.mirrors.hoobly.com%2f . This is
basically the mirror location. It may differ from mirror to mirror .
Now Installing in Drive E . Look carefully it is “E:/” because windows in not install in drive E .
It is in drive C .
Search these all packages and select version for installation. After that as usual “next”
gcc4, gcc4-g++, gawk, tar, gzip, make, patch, perl, w32api, xorg-server, xinit,
libX11-devel, libXmu-devel
When it finished, I started the installation again like before
but now for full installation. It will take 1 hour (approx).
AND ITS DONE
Now NS2 Installation :
1) Copy ns-allinone-2.35-RC7.tar.gz to directory E:/cygwin/usr/local
2) Open Cygwin ( there will be cygwin icon in your desktop )
3) Go to usr/local directory by typing (look the picture below )
4) Extract the package by calling» tar -xvf ns-allinone-2.35-RC7.tar.gz
This command will extract the tar file or you can manually extract
the NS file . After extracting a ns-allinone-2.35-RC7 folder will be
created.
Go to ns-allinone-2.35-RC7 folder by typing command and call
./install
IMPORTANT NOTICES:
(1) You MUST put /usr/local/ ns-allinone-2.35-RC7/otcl-1.14,
/usr/local/ ns-allinone-2.35-RC7/lib, into your LD_LIBRARY_PATH
environment variable.
If it complains about X libraries, add path to your X libraries into
LD_LIBRARY_PATH.
{After these steps, you can now run the ns validation suite with
./validate Command under ns-allinone-2.35-RC7 folder . But this is
optional . }
The Most important Part : Configure system
variables:
In system variable you may see there already a variable named “Path”
If not than Create New system variable named “Path”
And set the variable value according to the comments that came after installing of
NS2.
E:/cygwin;/usr/local/ns-allinone-2.35-RC7/bin;/usr/local/ns-allinone-2.35-
RC7/tcl8.5.8/unix;/usr/local/ns-allinone-2.35-RC7/tk8.5.8/unix;C:\Program
Files\WIDCOMM\Bluetooth Software\;C:\Program Files\Broadcom\Broadcom
802.11\Driver
Only the bold part is important for cygwin case . Windows set many variable
under Path . Look how it is set .
Add the path separated with “;” make sure to not change the existing path.
Export :
“LD_LIBRARY_PATH=/usr/local/ns-allinone-2.35-RC7/otcl-1.14”
“LD_LIBRARY_PATH=/usr/local/ns-allinone-2.35-RC7/lib”
Export:
“TCL_LIBRARY_PATH=/usr/local/ns-allinone-2.35-RC7/tcl8.5.8/library”
These are one single line . No space in between . Careful about that
Done ! NS2 is ready to execute file
“startxwin” command will bring this window
Hurray !!!