Ubuntu下安装ns-allinone-2.34

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播放器
-----------------------------------------------------------------------------------------------------------------------------


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值