日期:2014-05-16  浏览次数:20621 次

linux下安装ns2的问题!!!
我是Linux新手啊,现在正在做一个项目,需要安装ns2,这一安装,出现了无数的问题啊!经过各种纠结,自以为终于要解决了,却出现了一个似乎大家都没遇到的问题!!!!!!!网上各种搜找不到解决方法啊啊啊!!!!!求大侠解救啊!!!小弟现在这里谢过!!!!!
  我的linux版本是ubuntu 11.10,ns2版本是ns-allinone-2.30,求教啊!!!!!!!!!!!!!!
  下面是显示错误之处!!!



config.status: creating Makefile
creating ./gen
creating ./bin
rm -f libotcl.a otcl.o
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -I. -I/home/luzezeng/ns2/include -I/home/luzezeng/ns2/include -I/home/luzezeng/ns2/include -I/include otcl.c
ar cq libotcl.a otcl.o
ranlib libotcl.a
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/luzezeng/ns2/include -I/home/luzezeng/ns2/include -I/home/luzezeng/ns2/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/luzezeng/ns2/otcl-1.12/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/luzezeng/ns2/otcl-1.12/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.12 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
luzezeng@ubuntu:~/ns2$ 


------解决方案--------------------
你去找找这个版本有没有补丁要打