Installing Cygwin & NS2.35 November 11 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 in my laptop ->> { vista home premium + Cygwin set up version 2.721 + ns-allinone-2.35-RC7 } By Rubaiyat Bin Sattar [email protected]A complete guide
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Installing Cygwin & NS2.35
November 11
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
in my laptop ->> { vista home premium + Cygwin set up
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
It will take 30 minite to 1 hour or more to install the NS2.
Attention: After finishing the installation , some comments will come out. Saved
those all .. Comments sample :
Please put /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 into your
PATH environment; so that you'll be able to run
itm/tclsh/wish/xgraph.
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.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>
(2) You MUST put /usr/local/ ns-allinone-2.35-RC7/tcl8.5.8/library into your
TCL_LIBRARY environmental variable. Otherwise ns/nam will
complain during startup.
If you find your notice is different, then make sure to according
to your own notice.
{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:
My Computer > Properties > Windows Xp ->>> advanced> environment variable
Windows Vista & 7 >> Advance system setting > environment variable
Environment variable Box : 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. Example : my variable value is : 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.
Next go to cygwin and type the following content :
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