Ubuntu下修改gcc 安装ns2.26

来源:互联网 发布:office mac 破解版 编辑:程序博客网 时间:2024/04/28 13:17

Ref:http://greenw.blogspot.com/2005/12/install-ns226-in-ubuntu.html

Objective: install ns-allinone-2.26 in Ubuntu 5.10 Breezy
Softwareneeded: 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

原创粉丝点击