Omnet++ 5.0 无法 configure/make。无法启动 Omnetpp IDE。 Windows

Omnet++ 5.0 fails to configure/make. Unable to launch Omnetpp IDE. Windows

我已阅读有关以前安装 omnet 4.6 的问题。在尝试此操作之前,我已经删除了 omnet 的所有安装。任何帮助表示赞赏。

我该怎么做才能解决这个问题并让 oment 5 正常工作:(?

我相信这与我的 bin 目录和 make 文件有关??但是我找不到关于如何解决这个问题的文档。我对 Omnet++ 的世界还很陌生。

谢谢。

以下来自 bash 提示:

/c/omnetpp-5.0-src-windows/omnetpp-5.0$ . setenv
bash: setenv: No such file or directory

/c/omnetpp-5.0-src-windows/omnetpp-5.0$ ./configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for clang... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... unsupported
checking for clang++... clang++
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking for clang++... clang++
checking for ranlib... ranlib
checking whether clang++ supports -std=c++11... yes
checking whether clang++ supports -fno-stack-protector... yes
checking whether clang++ supports -Wl,--no-as-needed... yes
checking whether clang++ supports -Wl,--as-needed... yes
checking for swapcontext... no
checking if shared libs need -fPIC... no
checking for dlopen with CFLAGS="" LIBS=""... no
checking if --export-dynamic linker option is supported/needed... test failed
checking for flags needed to link with static libs containing simple modules...                                                      --whole-archive
configure: NOTE: Use the following syntax when linking with static libraries
configure: containing simple modules and other dynamically registered components                                                     :
configure:    clang++ ... -Wl,--whole-archive <libs> -Wl,--no-whole-archive ...
checking whether linker supports -rpath... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... configure: error: cannot find output from flex;                                                      giving up

/c/omnetpp-5.0-src-windows/omnetpp-5.0$ make
Makefile:36: Makefile.inc: No such file or directory
Makefile:40: *** OMNETPP_BIN_DIR must be correctly set.  Stop.

/c/omnetpp-5.0-src-windows/omnetpp-5.0$ omnetpp
bash: omnetpp: command not found

您的 ZIP 文件似乎已损坏(或者您用来解压缩的实用程序无法正常工作)。 windows 解压缩程序已知存在这些问题。正如评论中所建议的,病毒检查程序也可能导致这些问题。