First, you have to download the NS2 allinone installation file from here
and untar the compressed file (I’m using release ns2-2.33). Common to
Ubuntu distribution, the OS is lack of developer tools like compilers
and stuffs. Thus, make
sure you already have installed your build essentials. If you haven’t,
sudo apt-get install build-essential
sudo apt-get install libc6-dev g++ gcc
Next, you’ll need some dependencies which will allow the installation process to be successful. Else, you’ll probably get a “make
: *** [tk3d.o
] Error
1
tk8.4.14 make
failed
!” error
.
sudo apt-get install autoconf automake libxmu-dev
After installation is successful, it’s time to install the NS2/Nam program
cd ns-allinone-2.33
./install
The installation process will take several minutes (depending on
your machine’s processing power) with lots of installation verbose on
your terminal. When the installation has ended, it will tell the user
that installation is successful.
Next, you’ll need to change some Environment values in order to make
your program work correctly.
sudo gedit ~/.bashrc
Add these lines to your bashrc file. Replace “your directory” with the installation directory of your ns2 program.
#environment values for NS2/NAM
# LD_LIBRARY_PATH
OTCL_LIB=/your directory/ns-allinone-2.33/otcl-1.13
NS2_LIB=/your directory/ns-allinone-2.33/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/your directory/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/your directory/ns-allinone-2.33/bin:/your directory/ns-allinone-2.33/tcl8.4.18/unix:/your directory/ns-allinone-2.33/tk8.4.18/unix
NS=/your directory/ns-allinone-2.33/ns-2.33/
NAM=/your directory/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
Then type,
source ~/.bashrc
Next, you would want to validate the installation process. Go to the library and,
cd ns-2.33
./validate
This will take a much longer time than the first installation
command (./install). After installation, a validation confirmation
“validate overall report: all tests passed” will be shown.
To use ns2 simulator, just type,
$> ns
Hope this help for those who are planning to use the NS-2.
分享到:
相关推荐
Administer, install, and configure the 5–year Hardy–Heron Ubuntu Server Long Term Support Edition of the most popular Linux distribution in the world. Use the new installation and GUI tools. ...
ubuntu20.4 壁纸 hardy_wallpaper_uhd 看着像浴火凤凰
This book focuses on the Hardy Heron (8.04) release of Ubuntu Server Edition. When Hardy Heron was released in April 2008, Canonical committed to support through 2013. In this book, I describe the ...
。。。
。。。
Inequalities, G.H.Hardy, 1934 Inequalities, G.H.Hardy, 1934 Inequalities, G.H.Hardy, 1934
针对Ubuntu deb包,根据系统的版本(hardy/intrepid/jaunty/karmic)以及CPU类型(i386/amd64)分别提供了下载链接 2009-06-11: drcom-client.ORG 上线! 感谢一直支持我们的朋友,你们的帮助与激励,使drcom-client.org...
Hardy的名著。很值得读一读的。Hardy是华罗庚教授的导师,剑桥的著名数学教授
hardy manual for HI4050
Inequalities G H Hardy etc 一本关于不等式的经典专著
不等式。 G. H. Hardy - Inequalities
近点的熟悉而电话费及卡号的福建省的地方环境地方,
加权Herz型Hardy空间上的分数次积分交换子,胡越,王艳烩,研究了分数次积分算子$I_l$与加权Lipschitz函数$b$生成的交换子$[b,I_l]$在加权Herz型Hardy空间上的有界性质. 证明了若$bin Lip_ eta(mu), 0<l<n- ...
带形区域上的 Hardy 空间,李真,邓冠铁,本文给出了带形区域Sa={x+iy:x∈{R},0<y>0)上Hardy空间Hp(Sa)(0<p<+∞)的定义, 得到了此带形上Hardy 空间的如下性质:对任意f∈ Hp(Sa),它在边界�
LOVE J 1231232313123131
Ubuntu教程之菜鸟飞飞 作者: @Havxi 是基于8.04 Hardy版写的 #欢迎转载,版权没有,违者不究#
一类带Hardy—Littlewood-Sobolev临界指数项和不定线性项的Choquard方程解的存在性,王玲,王非之,本文考虑以下线性Choquard 方程:\begin{equation*} -\Delta u +V(x)u =K(x)(\int_{\mathbb{R}^{N}}\frac{|u|^{2^{...
It is proved that a class of multilinear singular integral operators with homogeneous kernels are bounded
Hardy Type Inequality in Weighted Variable Exponent Spaces and Applications to p(x)-Laplace Type Equations,陈立志,,文章中在加权变指数空间中建立了带一般的权的Hardy型不等式,并考虑了在p(x)-Laplace型...
在本文中,我们研究了一类半线性椭圆型方程的可解性,这些半线性椭圆型方程是对涉及临界Hardy-Sobolev指数和Hardy奇异项的问题的摄动。 对于涉及临界Hardy-Sobolev指数和Hardy项的一类半线性椭圆问题,建立了至少一...