2013年4月10日 星期三

把ns2(2.29, multichannel版)移到ubuntu

我用的版本是 Ubuntu 12.04.1 LTS
原本在Fedora10上面裝了ns2 with multichannel (2.29)

因為是整個資料夾移過去, 所以要重新安裝.

重新安裝的話, 我是先去各個資料夾make clean, 再把三個config.cache刪掉, 順便把ns-allinone-2.29/bin/裡面的link都刪掉, 最後再重新 ./install 就好了

只是在 ./install 過程中會出現一些錯誤訊息, 然後找到了這篇
Installing ns-2.29 in Ubuntu 12.04
http://www.nsnam.com/2012/06/installing-ns-229-in-ubuntu-1204.html

按照他的步驟去修改, 然後就安裝成功了 XD

-------
三個config.cache的位置
ns-allinone-2.29/xgraph-12.1/config.cache
ns-allinone-2.29/tcl8.4.11/unix/config.cache
ns-allinone-2.29/tk8.4.11/unix/config.cache


-------
進去每個資料夾make clean (其實只要找出Makefile在哪個資料夾, 就知道要去哪裡make clean了)

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

沒有留言: