LQ大神说是这个搭配才能完美移植leach
安装如下:
1. 安装必须的软件,因为版本较久远,
sudo gedit /etc/apt/sources.list(大概是个意思)
把里面的内容换成:
deb http://old-releases.ubuntu.com/ubuntu/ lucid main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security multiverse universe
2.
$ sudo apt-get update
$ sudo apt-get install g++ autoconf libtool libxmu-dev xgraph Please do not install tcl8.4-dev, tk8.4-dev.
``build-essential´´ provides g++, autoconf : build-essential isn't required.
(另外,在当前文件夹下打开终端,终端输入:
sudo apt-get install nautilus-open-terminal
nautilus -q
这两个命令就ok了)
(注意,要求的gcc版本是4.3版本。下载相应版本的gcc网址:http://ftp.gnu.org/gnu/gcc/
1.查看GCC的版本信息
$ls /usr/bin/gcc*
sudo update-alternatives --config gcc
有很多方法可以自己试验。
)
3. 进入ns-allinone-2.34
$ ./install
会出错,安装这个网址改的:https://wenku.baidu.com/view/16bec60d76c66137ee06194a.html 之后./validate all pass