请教cygwin下安装ns2
本人使用的操作系统是win7,安装了据说支持win7的cygwin1.7,想在这个cygwin1.7上安装ns-allinone-2.34,但是在安装的过程中出现了下面的问题,请问该如何解决。
问题一:在ns-allinone-2.34目录下,执行./install,出现了下面的错误,
GINFO=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".dll\" /home
/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:1: warning: -fPIC ign
ored for target (all code is position independent)
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c: In function ‘TclpGe
tClicks’:
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:100: error: storage s
ize of ‘tz’ isn’t known
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:100: warning: unused
variable ‘tz’
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c: In function ‘Tcl_Ge
tTime’:
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:253: error: storage s
ize of ‘tz’ isn’t known
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:253: warning: unused
variable ‘tz’
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c: In function ‘SetTZI
fNecessary’:
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:457: error: ‘lastTZ
’ undeclared (first use in this function)
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:457: error: (Each und
eclared identifier is reported only once
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:457: error: for each
function it appears in.)
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c: In function ‘Cleanu
pMemory’:
/home/lenovo/ns-allinone-2.34/tcl8.4.18/unix/tclUnixTime.c:491: error: ‘lastTZ
’ undeclared (first use in this function)
make: *** [tclUnixTime.o] Error 1
tcl8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
问题二:在ns-allinone-2.34/ns-2.34目录下,输入./configure,出现下面错误:
checking for otcl.h... -I../otcl-1.13
checking for libotcl1.13... no
configure: error: Installation of otcl seems incomplete or can't be found automa
tically.
Please correct the problem by telling configure where otcl is
using the argument --with-otcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-otcl=no.
请问这些问题是由于什么引起的,该如何解决?