2013年9月4日 星期三

重新安裝 ns2

重裝ns2時, 要先把舊的設定檔/暫存都清掉, 才可以用 ./install 重新安裝.
不然就一定要放在相同路徑才可以安裝. @@

以下是我用的清除腳本, 應該是還可以再簡化一點, 可是我懶得弄 XDDDD

----------------------------------------------------------------
#! /bin/sh
# enter all folder to make clean
# only for ns 2.29

CUR_PATH=`echo $(pwd)`

rm -f $CUR_PATH/xgraph-12.1/config.cache
rm -f $CUR_PATH/tcl8.4.11/unix/config.cache
rm -f $CUR_PATH/tk8.4.11/unix/config.cache

cd $CUR_PATH/cweb; make distclean; make clean;
cd $CUR_PATH/cweb/examples; make distclean; make clean;
cd $CUR_PATH/sgb; make distclean; make clean;
cd $CUR_PATH/tclcl-1.17; make distclean; make clean;
cd $CUR_PATH/otcl-1.11; make distclean; make clean;
cd $CUR_PATH/zlib-1.2.3; make distclean; make clean;
cd $CUR_PATH/zlib-1.2.3/contrib/blast; make distclean; make clean;
cd $CUR_PATH/zlib-1.2.3/contrib/untgz; make distclean; make clean;
cd $CUR_PATH/zlib-1.2.3/contrib/puff; make distclean; make clean;
cd $CUR_PATH/zlib-1.2.3/contrib/minizip; make distclean; make clean;
cd $CUR_PATH/xgraph-12.1; make distclean; make clean;
cd $CUR_PATH/tcl8.4.11/macosx; make distclean; make clean;
cd $CUR_PATH/tcl8.4.11/unix; make distclean; make clean;
cd $CUR_PATH/tcl8.4.11/unix/dltest; make distclean; make clean;
cd $CUR_PATH/nam-1.11; make distclean; make clean;
cd $CUR_PATH/ns-2.29/indep-utils/cmu-scen-gen/setdest; make distclean; make clean;
cd $CUR_PATH/ns-2.29/indep-utils/dosdbell; make distclean; make clean;
cd $CUR_PATH/ns-2.29/indep-utils/webtrace-conv/nlanr; make distclean; make clean;
cd $CUR_PATH/ns-2.29/indep-utils/webtrace-conv; make distclean; make clean;
cd $CUR_PATH/ns-2.29/indep-utils/webtrace-conv/epa; make distclean; make clean;
cd $CUR_PATH/ns-2.29/indep-utils/webtrace-conv/dec; make distclean; make clean;
cd $CUR_PATH/ns-2.29/indep-utils/webtrace-conv/ucb; make distclean; make clean;
cd $CUR_PATH/ns-2.29/indep-utils/model-gen; make distclean; make clean;
cd $CUR_PATH/ns-2.29; make distclean; make clean;
cd $CUR_PATH/ns-2.29/ns-tutorial; make distclean; make clean;
cd $CUR_PATH/ns-2.29/emulate/support/src/nrgarp; make distclean; make clean;
cd $CUR_PATH/ns-2.29/doc; make distclean; make clean;
cd $CUR_PATH/ns-2.29/doc/kfall; make distclean; make clean;
cd $CUR_PATH/tk8.4.11/macosx; make distclean; make clean;
cd $CUR_PATH/tk8.4.11/unix; make distclean; make clean;
cd $CUR_PATH/gt-itm/sgb2ns; make distclean; make clean;
cd $CUR_PATH/gt-itm/src; make distclean; make clean;
----------------------------------------------------------------

沒有留言: