How to install Ns-2-AllinOne-2.33 on Ubuntu 8.04
来源:互联网 发布:淘宝买鞋子注意事项 编辑:程序博客网 时间:2024/05/01 15:15
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://skyrhythm.blogbus.com/logs/30871064.html
How to install Ns-2-AllinOne-2.33 on Ubuntu 8.04
This is an example of the NS2-AllInOne-2.33 installation for Ubuntu 8.04.
Suppose that there is "ns-allinone-2.33.tar.gz" in current directory (e.g. "~/" for me is "/home/mm").
All steps are done in Terminal, so open a terminal in Accessories/Terminal.
To extract the file:
tar xvfz ./ns-allinone-2.33.tar.gz
Go into extracted directory:
cd ns-allinone-2.33
Download required packages:
sudo apt-get install build-essential autoconf automake libxmu-dev
Start installation:
./install
Set environment parameter:
gedit ~/.bashrc
Then at the last line, append the following text with changing "/your/path" to the directory that contains "ns-allinone-2.33". (e.g. "/home/mm/" )
# LD_LIBRARY_PATH
OTCL_LIB=/home/mm/ns-allinone-2.33/otcl-1.13
NS2_LIB=/home/mm/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=/home/mm/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/mm/ns-allinone-2.33/bin:/home/mm/ns-allinone-2.33/tcl8.4.18/unix:/home/mm/ns-allinone-2.33/tk8.4.18/unix
NS=/home/mm/ns-allinone-2.33/ns-2.33/
NAM=/home/mm/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
After this , run
source ~/.bashrc
at the terminal
then run
ns
at the terminal
if % appear, then succeed
- How to install Ns-2-AllinOne-2.33 on Ubuntu 8.04
- ns-allinone-2.34 installation on Ubuntu 12.10
- How to install Sublime Text 2 on Ubuntu 12.04 (Unity)
- How to install Sublime Text 2 on Ubuntu 12.04 (Unity)
- HOW TO INSTALL SUBLIME TEXT 2 ON UBUNTU 12.04 (UNITY)
- How to Install Python 3.5.2 on Ubuntu & Linuxmint
- How to Install Fonts on Ubuntu
- How to install gCvs on ubuntu 10.04
- How to install p2psim on ubuntu.10.10
- How to install chrome on Ubuntu 10.10
- how to install software on ubuntu?
- How to install GSL on linux(ubuntu)
- How to install VNC on Ubuntu
- How to install flash plugin on Ubuntu
- How to install mongoDB on Ubuntu
- How to install deb packages on Ubuntu
- How to install SmartSVN on Ubuntu 10.10
- How to Install Git on Ubuntu 12.04
- Hibernate 中的更新数据的方法(2)
- ubuntu 8.10下java开发环境的配置
- 如何正确的使用PeekMessage()
- Asterisk拨号方案中变量的应用
- 深入理解sizeof
- How to install Ns-2-AllinOne-2.33 on Ubuntu 8.04
- SDK程序员经常写出的一段低效率代码
- jsp 复选框使用
- 无题
- 温昱书评:读《代码之道》
- 取得DBMS_MONITOR包的信息
- about db2 instance
- 使用VC++的编译器创建最小的镜像文件(DLL/EXE)
- 【zz】去美国留学必看的视频