linux下安装ns2.34
来源:互联网 发布:山东建筑业网络快报 编辑:程序博客网 时间:2024/05/18 02:59
linux下安装ns2
首先要注意的问题是,linux下gcc版本的问题 假如是高版本的gcc 最好安装2.33以上版本的ns (这个地方我就吃亏了 安装2.1 、2.26、 2.27、2.28、2.29都没有成功!!!)
到官网( http://sourceforge.net/projects/nsnam/files/allinone/ )上下载ns压缩包
tar zxvf ns*.tar.gz
./install
Here are the installation places:
tcl8.4.18: /home/lilong/ns/ns-allinone-2.34/{bin,include,lib}
tk8.4.18: /home/lilong/ns/ns-allinone-2.34/{bin,include,lib}
otcl: /home/lilong/ns/ns-allinone-2.34/otcl-1.13
tclcl: /home/lilong/ns/ns-allinone-2.34/tclcl-1.19
ns: /home/lilong/ns/ns-allinone-2.34/ns-2.34/ns
nam: /home/lilong/ns/ns-allinone-2.34/nam-1.14/nam
xgraph: /home/lilong/ns/ns-allinone-2.34/xgraph-12.1
gt-itm: /home/lilong/ns/ns-allinone-2.34/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
----------------------------------------------------------------------------------
Please put /home/lilong/ns/ns-allinone-2.34/bin:/home/lilong/ns/ns-allinone-2.34/tcl8.4.18/unix:/home/lilong/ns/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /home/lilong/ns/ns-allinone-2.34/otcl-1.13, /home/lilong/ns/ns-allinone-2.34/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>
(2) You MUST put /home/lilong/ns/ns-allinone-2.34/tcl8.4.18/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
After these steps, you can now run the ns validation suite with
cd ns-2.34; ./validate
For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.
[设置环境变量]
在home/XXX/.bashrc的末尾加上环境变量:
export PATH="$PATH:/home/lilong/ns/ns-allinone-2.34/bin:/home/lilong/ns/ns-allinone-2.34/tcl8.4.18/unix:/home/lilong/ns/ns-allinone-2.34/tk8.4.18/unix"
export LD_LIBRARY_PATH="$LD_LIBRARY:/home/lilong/ns/ns-allinone-2.34/otcl-1.13:/home/lilong/ns/ns-allinone-2.34/lib"
export TCL_LIBRARY="$TCL_LIBRARY:/home/lilong/ns/ns-allinone-2.34/tcl8.4.18/library"
- linux下安装ns2.34
- linux下Ns2安装
- linux下安装ns2.29 与ns2.31
- Linux平台下NS2的安装
- linux 2.6.15下安装ns2-2.18
- NS2虚拟LINUX系统下安装手记
- Ubuntu11.04下ns2.34安装过程
- win7 cygwin下安装ns2.34
- Cygwin下 NS2安装
- cygwin 下安装ns2
- centos下安装NS2
- Linux下安装NS2.33(建议fedora8)
- linux下ns2下载、安装与环境…
- linux下NS2学习之gnuplot安装经验
- Ubuntu 11.10 下NS2安装
- Ubuntu 下安装 NS2 方法
- CentOS 7 下安装 NS2
- NS2安装笔记---SUSE Linux
- 分页实现
- 修改应用程序的外观,工具栏、状态栏
- 利用Page基类过滤URL注入代码-防SQL注入的方法
- ie bug 兼容性汇总
- MFC控件小记-Progress Control
- linux下安装ns2.34
- C#中List与IList的区别
- 内存分段分页与页面置换方法
- xstream解析
- 网店
- 在线客户端:使用AJAX发送JSON数据
- ListCtrl 详细用法
- js读写cookie值
- java.util.concurrent介绍