我在Cygwin上安装NS2。我已经安装了gcc。似乎Cygwin和所需的软件包之间没有任何联系。 gcc版本是5.4.0。 您的系统上没有" Package ...。"对于每个包裹。
Checking Cygwin version is >= 1.3.12... 2.5.2 (should be ok)
Checking filesystems are mounted as UNIX filetype... yes
Checking default mode is binmode... yes
Checking legitimate login name... ok
Checking legitimate path name... ok
Checking for gcc... NO!
Package gcc is not present on your system.
Please install it using Cygwin's setup.exe
before trying to install the ns-2 distribution.
The above test indicates that your installation of Cygwin
is probably NOT SUITABLE for installing ns-2 allinone.
(More details can be found in the specific error message above.)
Do you wish to proceed regardless? [y/N] y
*** OK, but you're on your own... ***
Checking for gcc-g++... ok
Checking for gawk... ok
Checking for tar... ok
Checking for gzip... ok
Checking for make... ok
Checking for patch... NO!
Package patch is not present on your system.
Please install it using Cygwin's setup.exe
before trying to install the ns-2 distribution.
The above test indicates that your installation of Cygwin
is probably NOT SUITABLE for installing ns-2 allinone.
(More details can be found in the specific error message above.)
Do you wish to proceed regardless? [y/N] y
*** OK, but you're on your own... ***
Checking for perl... NO!
Package perl is not present on your system.
当我尝试安装Cygwin软件包并检查要安装的每个软件包时,有"不需要安装任何软件包"消息。
答案 0 :(得分:0)
我的2c $。不要浪费时间使用ns-2,除非你想挖掘旧式构建系统和过时的假设并花费大量时间在复杂的头部任务中。 如果没有人更新源文件5年,可能会有更好的软件。
ns-2要求octl是仅由ns-2和其他类似软件包使用的特定对象orienteted TCL。 octl configure拒绝CPPFLAGS声明。要正确捕获cygwin上的所有tcl头文件和lib,您需要:
删除" tcl-generic /"目录包括列表。
替换" dylib"用" dll.a"通过共享库获取
在结果配置中手动添加" -I / usr / include / tcl8.5 / unix"因为似乎没有其他方法可以强迫它。
之后将开始寻找标头不匹配;我在第一个站点停了下来,因为它看起来很长。
我怀疑在Linux系统上也不值得付出努力。