How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04

本文详细介绍了如何在Linux环境下安装NS2网络模拟器,包括必要的依赖包安装、下载和解压NS2软件包、配置环境变量以及验证安装是否成功。NS2是一款用于网络研究的离散事件模拟器,特别适用于TCP、路由和多播协议的模拟。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Abstract : NS2  widely uses in network simulator. Toady let's install it.

Introduce : Ns is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.


I need to do some experiments in NS2 and I download 2.3.5 version to install it.

Next some steps:
1. install some .dep :
$ sudo apt-get install build-essential
$ sudo apt-get install tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev
$ sduo apt-get install libxmu-dev libxmu-headers

2. download /ns-allinone-2.35 from ns2 website(http://www.isi.edu/nsnam/ns/) and decompress it.
$ tar xvfz ns-allinone-2.35.tar.gz

3. enter ns-allinone-2.35 dir and tpye : sudo  ./install
when it has done, it print some information on monitor.
How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04



Now that NS2 is installed, there are some environment variables that need to be added to your profile. This can be done by editing the .bashrc file. Be sure to change “/path/to” to the path of where you have extracted NS2.

4. gedit ~/.bashrc to set the environment.

export PATH=$PATH:/path/to/ns-allinone-2.35/bin/path/to/ns-allinone-2.35/tcl8.5.10/unix:/path/to/ns-allinone-2.35/tk8.5.10/unix

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/ns-allinone-2.35/otcl-1.14:/path/to/home/nick/my_project/ns2/ns-allinone-2.35/lib

export TCL_LIBRARY=$TCL_LIBRARY:/path/to/ns-allinone-2.35/tcl8.5.10/library

5. You need to validate NS2 to check if everything is ok but beware that it will take lots of time:
cd ns-2.35 then ./validate and tpye ns

How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04

How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04


转载于:https://www.cnblogs.com/nickchan/archive/2012/10/15/3104382.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值