我已阅读过以前安装omnet 4.6的问题。我在尝试之前删除了所有omnet安装。任何帮助表示赞赏。
我该怎么做才能解决这个问题,让我的工作变得有效:(?
我认为这与我的bin目录有关。制作文件??但是没有关于如何解决这个问题的文档。我是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
答案 0 :(得分:0)
您的ZIP文件似乎已损坏(或您用于提取的实用程序无法正常工作)。已知windows解压缩程序存在这些问题。病毒检查程序也可以根据评论中的建议引起这些问题。