Ubuntu下修改gcc 安裝ns2.26

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章