@Xl Chen , Hi.
First : This is an old year 2013 thread. The latest GPSR info :
#6
http://www.linuxquestions.org/questions/linux-newbie-8/how-to-patch-gpsr-routing-protocol-to-ns-2-35-a-4175431318/#6.
http://network-simulator-ns-2.7690.n7.nabble.com/GPSR-Patching-td29371.html#a29372About "not adding a *PATH text to .bashrc :
1) The old year ~1999 text »» Please put .... ,, IMPORTANT NOTICES: You MUST put .. ««
... was meant only for a "University Computer" : You had no write permissions to /usr/local/.
This will usually do : $ cd ns-allinone-2.35/ns-2.35/ && make install
* I.e. 'make install' will copy 'ns' to /usr/local/bin/, i.e. i.e. a system PATH.
More than one version of ns2 :
You will have all the executable´s "ns-name" in /usr/local/bin/<ns_any-name> :
/usr/local/bin/{ ns, ns-gpsr-hls, ns-hls, ns235-gpsr-KeLiu, ns235-hls }.
* All simulations will work OK with $ ns_any-name file.tcl
* The above is for a 'Linux OS'. May also be valid with Cygwin.
The question is : Why use the "Look-a-like Linux" = Cygwin, when you can get the real thing ?
* Install 'VirtualBox' in Windows© , and install any 32bits 'Linux OS' into VirtualBox.
( Actually much faster / easier than setting up Cygwin.)
-