【发布时间】:2016-07-13 13:15:04
【问题描述】:
我正在 Cygwin 上安装 NS2。我已经安装了 gcc。 Cygwin 和所需的软件包之间似乎没有链接。 gcc 版本是 5.4.0 。 出现“您的系统上不存在软件包...”。每个包。
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 包并检查每个要安装的包时,出现“无需安装”消息。
【问题讨论】:
-
有一个 config.log(或类似的)来查找 gcc 和 perl 失败的测试?
-
提示:请使用更新后的 ns-allinone-2.35_gcc482.tar.gz 用于 gcc/g++ 版本 4.6 ... 5.2(可能适用于 v5.4)drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/… ....提示 2:为什么不使用真正的“Linux 操作系统”而不是“看起来像 Cygwin”? ... 易于安装:安装“VirtualBox”,并将一个或多个 Linux 操作系统安装到 VirtualBox。
-
查看了ns-2.35源代码。配置是一场灾难并且非常过时。我希望在 Linux 系统上也需要手动调整配置。它会比 cygwin 容易,但不干净。
-
@KnudLarsen 我开始使用 Ubuntu,但我在那里遇到了很多错误......
-
» 我开始使用 Ubuntu,但在那里遇到了很多错误 « : Ubuntu 可能不是 ns2 的最佳选择。有些添加可以使用 Ubuntu,有些则不能。关于 Ubuntu 16.04:系统 g++-5.3.1 不能用于大多数 ns2。等等等等... 安全的选择通常是两个 CentOS 6.8,i386 或/和 x86_64。 ... 一切都取决于您要使用的协议。 mirror.centos.org/centos/6.8/isos → CentOS-6.8-[arch]-LiveCD.iso .... 关于 ns-2.35/ 中的 ./configure :不要那样做。安全命令是 ./install,在 ns-allinone-2.35/ 中。