Ref:http://greenw.blogspot.com/2005/12/install-ns226-in-ubuntu.html
Objective: install ns-allinone-2.26 in Ubuntu 5.10 Breezy
Software needed: gcc-3.3, g++-3.3 (ns2.26 cannot be compiled with gcc >= 4.0), build-essential, autoconf, automaken, libxt-dev(tk need it), libxmu-dev(nam need it)
To do:
1. apt-get install build-essential
2. apt-get install gcc-3.3 g++-3.3 autoconf automake-1.9 libxt-dev
3. go to /usr/bin, del softlink to gcc, g++
4. ln -s gcc-3.3 gcc
5. ln -s g++-3.3 g++
6. vi .bash_profile and add:
export CC=gcc-3.3
export CXX=g++-3.3
Ubuntu下修改gcc 安装ns2.26
最新推荐文章于 2021-03-19 15:55:42 发布