NS在linux下的安装过程
来源:互联网 发布:公安大数据采集应用 编辑:程序博客网 时间:2024/05/17 01:11
NS在linux下的安装过程
linux版本:suse linux 10.0
ns最新版本:ns2.33
官方下载地址:http://sourceforge.net/project/showfiles.php
group_id=149743&package_id=169689&release_id=588643
今天安装的版本是2.32,首先对ns-allinone-2.32.tar.gz解压,我的安装目录是安装在root根目录下,
tar -zvxf ns-allinone-2.32.tar.gz
cd ns-allinone-2.32/
./install
开始安装ns,然后后开始设置环境变量,
安装完成后,系统出现如下的提示:Please put /root/ns-allinone-2.32/bin:/root/ns-allinone-2.32/tcl8.4.15/unix:/root/ns-allinone-2.32/tk8.4.15/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /root/ns-allinone-2.32/otcl-1.13, /root/ns-allinone-2.32/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 /root/ns-allinone-2.32/tcl8.4.15/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.32; ./validate
归根皆底就是要设置环境变量,添加一下三个环境变量:
export PATH=$PATH:/root/ns-allinone-2.32/bin:/root/ns-allinone-2.32/tcl8.4.15/unix:/root/ns-allinone-2.32/tk8.4.15/unix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/ns-allinone-2.32/otcl-1.13:/root/ns-allinone-2.32/lib
export TCL_LIBRARY=$TCL_LIBRARY:/root/ns-allinone-2.32/tcl8.4.15/library
在安装设置完成之后,运行ns没有出现成功的%,显示command not found.经过检查发现export命令后面的冒号竟然是中文的冒号,把我都搞崩溃了。
在windows下面的安装参考一下网址即可:
http://blog.sina.com.cn/s/blog_3c680f8101008rty.html
linux版本:suse linux 10.0
ns最新版本:ns2.33
官方下载地址:http://sourceforge.net/project/showfiles.php
group_id=149743&package_id=169689&release_id=588643
今天安装的版本是2.32,首先对ns-allinone-2.32.tar.gz解压,我的安装目录是安装在root根目录下,
tar -zvxf ns-allinone-2.32.tar.gz
cd ns-allinone-2.32/
./install
开始安装ns,然后后开始设置环境变量,
安装完成后,系统出现如下的提示:Please put /root/ns-allinone-2.32/bin:/root/ns-allinone-2.32/tcl8.4.15/unix:/root/ns-allinone-2.32/tk8.4.15/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /root/ns-allinone-2.32/otcl-1.13, /root/ns-allinone-2.32/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 /root/ns-allinone-2.32/tcl8.4.15/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.32; ./validate
归根皆底就是要设置环境变量,添加一下三个环境变量:
export PATH=$PATH:/root/ns-allinone-2.32/bin:/root/ns-allinone-2.32/tcl8.4.15/unix:/root/ns-allinone-2.32/tk8.4.15/unix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/ns-allinone-2.32/otcl-1.13:/root/ns-allinone-2.32/lib
export TCL_LIBRARY=$TCL_LIBRARY:/root/ns-allinone-2.32/tcl8.4.15/library
在安装设置完成之后,运行ns没有出现成功的%,显示command not found.经过检查发现export命令后面的冒号竟然是中文的冒号,把我都搞崩溃了。
在windows下面的安装参考一下网址即可:
http://blog.sina.com.cn/s/blog_3c680f8101008rty.html
- NS在linux下的安装过程
- 在WindowsXP下Cygwin+NS+TinyOS的安装过程(1)
- 在WindowsXP下Cygwin+NS+TinyOS的安装过程(2)
- 在WindowsXP下Cygwin+NS+TinyOS的安装过程(3)
- 在cygwin下NS-2的安装
- NS-2.35在ubuntu 11.04下的安装
- ns-allinone-2.35在ubuntu14.04环境下的安装
- 在Linux 下安装Matlab7的过程
- WebSphere在Linux下的安装过程
- 在cygwin下安装ns-2
- 在Debian lenny下安装ns-2.34
- 在Ubuntu14.0.4下安装NS-3.22
- 在 red hat 下安装 ns
- NS-3安装过程
- Ubuntu下NS-3的安装
- NS-2在Ubuntu的安装
- ns3 (ns-3)在CentOS的安装
- WebSphere 在linux下的安装配置过程
- 编译和安装linux内核2.6.24,并且写一个简单的内核驱动测试之
- 理解哈希表1(转贴)
- oracle用户安全管理
- 理解哈希表2(Hash Table)
- socket编程
- NS在linux下的安装过程
- 让程序只能运行一个实例(来自ccrun)
- 让程序只能运行一个实例(来自ccrun)
- 影响你成功的53种借口
- 重要的嵌入式测试经验
- 禁用form/窗口的关闭按钮(来自网上的vb代码)
- boost::preprocessor库之嵌套循环及其它
- 忙完了,回来了!
- boost::preprocessor库使用入门