Ubuntu下安装ns-allinone-2.34
2011-07-22 15:47
531 查看
ubuntu下面安装ns-allinone-2.34步骤
第一步:安装必要的组件和包
apt-get install build-essential
apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev gcc-4.3
apt-get install libxmu-dev libxmu-headers
第二部:修改一处Bug
位置 ~/ns-allinone-2.34/otcl-1.13/
Edit file ' Makefile.in ' 7th line
From : CC = @CC@
To : CC = gcc-4.3
Else an error will occur when installation:
otcl-1.13 make failed! Exiting
第三步:安装
进入 the ns-allinone-2.34 路径
cd ns-allinone-2.34
Type in:./install
Wait until the installation complete
安装完成之后的提示,请注意路径
----------------------------------------------------------------------------------------------------------------------------
*Please put /home/ns/ns-allinone-2.34/bin:/home/ns/ns-allinone-2.34/tcl8.4.18/unix:/home/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/ns/ns-allinone-2.34/otcl-1.13, /home/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/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.
---------------------------------------------------------------------------------------------------------------------------
用户名下路径下的环境变量配置
创建.bashrc
PATH="$PATH:/home/ns/ns-allinone-2.34/bin:/home/ns/ns-allinone-2.34/tcl8.4.18/unix:/home/ns/ns-allinone-2.34/tk8.4.18/unix"
LD_LIBRARY_PATH="/home/ns/ns-allinone-2.34/otcl-1.13:/home/ns/ns-allinone-2.34/lib"
TCL_LIBRARY="$TCL_LIBRARY://home/ns/ns-allinone-2.34/tcl8.4.18/library"
第四步:验证重新启动终端
After these steps, you can now run the ns validation suite with
-cd ns-2.34; ./validate
或者输入 ns 显示 %
nam 出现nam播放器
-----------------------------------------------------------------------------------------------------------------------------
第一步:安装必要的组件和包
apt-get install build-essential
apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev gcc-4.3
apt-get install libxmu-dev libxmu-headers
第二部:修改一处Bug
位置 ~/ns-allinone-2.34/otcl-1.13/
Edit file ' Makefile.in ' 7th line
From : CC = @CC@
To : CC = gcc-4.3
Else an error will occur when installation:
otcl-1.13 make failed! Exiting
第三步:安装
进入 the ns-allinone-2.34 路径
cd ns-allinone-2.34
Type in:./install
Wait until the installation complete
安装完成之后的提示,请注意路径
----------------------------------------------------------------------------------------------------------------------------
*Please put /home/ns/ns-allinone-2.34/bin:/home/ns/ns-allinone-2.34/tcl8.4.18/unix:/home/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/ns/ns-allinone-2.34/otcl-1.13, /home/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/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.
---------------------------------------------------------------------------------------------------------------------------
用户名下路径下的环境变量配置
创建.bashrc
PATH="$PATH:/home/ns/ns-allinone-2.34/bin:/home/ns/ns-allinone-2.34/tcl8.4.18/unix:/home/ns/ns-allinone-2.34/tk8.4.18/unix"
LD_LIBRARY_PATH="/home/ns/ns-allinone-2.34/otcl-1.13:/home/ns/ns-allinone-2.34/lib"
TCL_LIBRARY="$TCL_LIBRARY://home/ns/ns-allinone-2.34/tcl8.4.18/library"
第四步:验证重新启动终端
After these steps, you can now run the ns validation suite with
-cd ns-2.34; ./validate
或者输入 ns 显示 %
nam 出现nam播放器
-----------------------------------------------------------------------------------------------------------------------------
相关文章推荐
- Ubuntu 12.04 +ns-allinone-2.34 安装教程
- Ubuntu 12.04 +ns-allinone-2.34 安装教程
- Ubuntu 11.04下安装ns-allinone-2.34.tar.gz
- 《转载》在ubuntu10.04下成功安装 ns-allinone-2.34
- Ubuntu 10.10中成功安装ns-allinone-2.34
- Ubuntu16.04安装ns-allinone-2.35
- Ubuntu12.04中安装ns-allinone-2.34
- ns-allinone-2.34.tar.gz的安装(亲自实践成功)
- ubuntu13.04安装ns-allinone-3.18.1
- 一步一步教你在CentOS6.0下安装NS2(ns-allinone-2.34.tar.gz)模拟仿真工具
- Ubuntu11.04下安装ns-allinone-2.34.tar.gz
- ubuntukylin14安装ns-allinone-2.35教程(虚拟机ubuntu同理)
- Ubuntu10.04下安装ns-allinone-2.35
- 物联网仿真 ns-allinone-2.35 安装教程 ubuntu16.04下安装 与使用
- ubuntu11.04下安装ns-allinone-2.34,网上收集的资料,真是费了好大功夫才装好
- ubuntu14.04上安装ns-allinone-2.35
- ubuntu下安装ns-allinone-2.33
- Ubuntu下安装ns-allinone-2.35.tar.gz
- 在win7_64bit + ubuntu-12.04-desktop-amd64+VMware-workstation-full-10.0.1-1379776平台上安装ns-allinone-2.35
- Fedora 14 下关于ns-allinone-2.34中的的xgraph软件包的安装问题