ns2在ubuntu下的问题
来源:互联网 发布:广东深圳淘宝地址大全 编辑:程序博客网 时间:2024/04/30 02:57
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
- ns2在ubuntu下的问题
- ns2.34在ubuntu下安装的问题 (not found)
- 在UBUNTU中安装NS2遇到的问题
- 在Ubuntu 9.10下安装NS2-2.33
- 在Ubuntu 10.04下安装NS2-2.34
- 在Ubuntu 10.04下安装NS2-2.34
- Ubuntu下ns2.35的安装设置
- ubuntu-9.04-alternate-i386下安装NS2的方法和遇到的问题
- ns2在Linux9i下的安装
- ubuntu9.04下的ns2安装问题
- 在Ubuntu下给NS2配置GUI调试环境
- 在ubuntu 11.10下安装ns2-allinone-2.35.tar.gz
- 在Ubuntu下给NS2配置GUI调试环境
- 在Fedora14下ns2.34的threshold.cc 的编译问题
- Ubuntu 11.10 下NS2安装
- Ubuntu 下安装 NS2 方法
- ubuntu下ns2的安装及GDB调试过程
- ubuntu安装ns2时tcl/tk的问题
- ofstream和ifstream详细用法
- synchronized的用法
- 总结一下函数原型
- vi学习~
- system("pause");
- ns2在ubuntu下的问题
- C语言中函数memset(),memcpy()和strchr()的功能和用法
- android 学习
- 如何加快建 index 索引 的时间
- XCode 下的开发 类的方法扩展 读书日志记录1.
- C#连接数据库总结
- SPSiteDataQuery不完全使用手册
- 在IIS上启用Gzip压缩(HTTP压缩)
- 日记-20100610