安裝與執行環境:
Cygwin於Windows作業系統下模擬Unix環境
** Windows帳戶為英文名稱才可安裝Cygwin
Cygwin安裝步驟:
1. Install cygwin first. (run setup.exe)
2. Specify the source directory of cygwin to be
**Cygwin Package for NS2:
gcc
gcc-g++
gnuplot
make
patch
perl
tar
X-startup-scripts
xorg-x11-base
xorg-x11-bin
xorg-x11-devel
xorg-x11-bin-dlls
xorg-x11-bin-lndir
xorg-x11-etc
xorg-x11-fenc
xorg-x11-fnts
xorg-x11-libs-data
xorg-x11-xwin
3. Copy .bash_profile / .bashrc / .inputrc three files into home/
4. Untar NS-2 into home/
5. refer to NS-2 readme, execute ./install
6. Untar Wimax_v1.05 into /Ns-2/../ns-2.29/
tar -zxvf winmax*
7. Follow readme_first in the WiMax module
8. Running script
- a. type "startxwin.bat" command in cygwin
- b. Command type “ns 5.tcl”
- c. Then in the xwin-server bash type "nam 5.nam“
- d. source code, in xwin-server, move into cygwin\home\smallko\ns-allinone-2.28\ns-2.28\
This comment has been removed by the author.
ReplyDeleteI suggest to insert a line between step 4 and step 5
ReplyDeletecd /usr/bin/
ln -s /home/your directory/ns-allinone-2.29/cweb/ctangle.exe ctangle.exe
ln -s /home/your directory/ns-allinone-2.29/cweb/cweave.exe cweave.exe
ln -s /home/your directory/ns-allinone-2.29/nam-1.11/nam.exe nam.exe
ln -s /home/your directory/ns-allinone-2.29/ns-2.29/ns.exe ns.exe
ln -s /home/your directory/ns-allinone-2.29/xgraph-12.1/xgraph.exe xgraph.exe
Afterwards,
cd /home/your directory/ns-allinone-2.29/ns-2.29
then,
./configure; make clean; make depend;make
to recompile the whole NS2 2.29 module.
Another one between step 4 and step 5 is
ReplyDeletecopy cygwin1.dll to c:\cygwin\bin directory
The cygwin1.dll version is 1005.18.0.0