【问题标题】:Building ns-2 on Cygwin在 Cygwin 上构建 ns-2
【发布时间】: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/ 中。

标签: gcc cygwin ns2


【解决方案1】:

我的 2c$。不要在 ns-2 上浪费时间,除非你想深入挖掘旧式构建系统和过时的假设,并在复杂的标题任务上花费大量时间。 如果5年没有人更新源文件,可能有更好的软件。

ns-2 需要 octl 一个特定的面向对象的 TCL,仅由 ns-2 和其他类似的软件包使用。 octl 配置拒绝 CPPFLAGS 声明。要正确捕获 cygwin 上的所有 tcl 头文件和库,您需要:

通过目录包含列表删除“tcl-generic/”。

将“dylib”替换为“dll.a”以覆盖共享库

在生成的配置中手动添加“-I/usr/include/tcl8.5/unix”,因为似乎没有其他方法可以强制它。

之后将开始标题不匹配的任务;我停在第一个,因为它看起来很长。

我怀疑在 Linux 系统上也不值得付出努力。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-12-18
    • 1970-01-01
    • 2013-09-22
    • 1970-01-01
    • 1970-01-01
    • 2011-06-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多