ns2在ubuntu下的问题

1. otcl & tclcl: ./configure
Error
checking Tcl http.tcl library... configure: error: Couldn't find http.tcl in /http /http2.4 /http2.3 /http2.1 /http2.0 /http1.0

Cause
Path to tcl and tk is hard-coded in otcl and tclcl.

Workaround

sudo ln -s /usr/share/tcltk/tcl8.4 /usr/share/
sudo ln -s /usr/share/tcltk/tk8.4 /usr/share/
(if you're using tcl/tk 8.5, don't forget to modify the commands according to your situation)


2. ns: linking
Error
/usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO

Cause
Compatibility problem with gcc 4.2 (On my site I'm lucky not having problem with gcc 4.3 which is the default compiler for ubuntu 8.10.)

Workaround
Modify Line 8 of otcl's Makefile to be identical to the following line:
CFLAGS= -g -O2 -fno-stack-protector


3. nam: run-time
Error
nam: invalid command name "tcl_findLibrary"

Workaround
Comment out #if 0 in Line 330 and corresponding #endif

The change of text is shown in the following patch file.

 

--- main.cc.orig        2008-11-05 00:36:22.000000000 +0800
+++ main.cc     2008-11-05 00:41:06.000000000 +0800
@@ -330,13 +338,13 @@
#ifdef notdef
        fprintf(stderr, "Application name is %s/n", appname);
#endif
-#if 0
+//#if 0
        Tcl_Interp *interp = Tcl_CreateInterp();
        if (Tcl_Init(interp) == TCL_ERROR) {
                printf("%s/n", interp->result);
                abort();
        }
-#endif
+//#endif

#if TCL_MAJOR_VERSION < 8
         Tcl_SetVar(interp, "tcl_library", "./lib/tcl7.6", TCL_GLOBAL_ONLY);



资料来源
http://ubuntuforums.org/showthread.php?p=5800683
ns wiki : troubleshoot
http://wouter.horre.be/node/76

 

转自: http://hi.baidu.com/%D2%C1%C2%E4%B5%A4/blog/item/4697e91feece9a0d314e1522.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值