gdb & tcl-debug for NS-2

NS-2 に gdb と tcl-debug を導入する


gdb のインストール
  • apt-get で
  # sudo apt-get install gdb

tcl-debug のインストール
  # cd ~/ns-allinone-2.xx
  # wget http://expect.nist.gov/tcl-debug/tcl-debug.tar.gz
  # tar xvfz tcl-debug.tar.gz
  • コンパイル
  # cd ~/ns-allinone-2.xx/tcl-debug-2.0
  # ./configure
こんなエラーメッセージが出ることがある.
  loading cache ./config.cache
  checking for Tcl configuration... configure: warning: Can't find Tcl configuration
  definitions
  ./configure: line 630: #: No such file or directory
  • 対策
  • tclConfig.sh を指定してあげる.
  # ./configure --with-tcl=~/ns-allinone-2.xx/tcl8.4.xx/unix/
  # make

NS-2 の再make
  # cd ~/ns-allinone-2.xx/ns-2.xx
  # ./configure --enable-debug --with-tcldebug=../tcl-debug-2.0
  # make clean
  # make
最終更新:2008年10月15日 16:07