尝试安装 ns2.35 时出现以下错误:
Error in `ns': free(): invalid next size (fast): 0x0000000000c7c850
Aborted
有什么方法可以绕过这个错误吗?
答案1
‘ns2.35’ 操作方法:sudo apt-get install g++ g++-4.9 autoconf libtool libxmu-dev xgraph
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/
export CC=gcc-4.9 CXX=g++-4.9 && ./install
cd ns-2.35/
sudo make install ( 'make install' will copy 'ns' to /usr/local/bin/ )
cp ns ns-orig ( this is your backup if you do changes to ns-2.35 )
sudo cp ns-orig /usr/local/bin/
cd ../nam-1.15/
sudo make install
就这样。无需再做。模拟:$ ns file.tcl
或$ ns-orig file.tcl