使用退出代码终止模拟:1(Omnet ++)

时间:2016-10-29 10:48:52

标签: omnet++ inet

因为我需要simuLTE,所以我将在Ubuntu 16.04上使用Omnet ++ v4.6和Inet v2.3。

我成功安装了Omnet ++并且我成功构建了Inet,但是当我尝试运行Inet时,我收到了这个错误:

**开始...

$ cd /home/milena/Desktop/D2DTools/omnetpp-4.6/samples/inet/tests/module/lib
$ opp_run -r 0 -n ../../../examples:../../../src -l ../../../src/inet omnetpp.ini

<!> Error during startup: Obsolete section name [Cmdenv] found, please convert the ini file to 4.x format.

OMNeT++ Discrete Event Simulation  (C) 1992-2014 Andras Varga, OpenSim Ltd.
Version: 4.6, build: 141202-f785492, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
End.

Simulation terminated with exit code: 1

Working directory: /home/milena/Desktop/D2DTools/omnetpp-4.6/samples/inet/tests/module/lib

Command line: opp_run -r 0 -n ../../../examples:../../../src -l ../../../src/inet omnetpp.ini

Environment variables:

PATH=/home/milena/Desktop/D2DTools/omnetpp-4.6/bin::/home/milena/bin:/home/milena/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/milena/omnetpp-4.6/bin:/home/milena/Desktop/D2DTools/omnetpp-4.6/bin
LD_LIBRARY_PATH=/home/milena/Desktop/D2DTools/omnetpp-4.6/lib::/home/milena/Desktop/D2DTools/omnetpp-4.6/samples/inet/src:
OMNETPP_IMAGE_PATH=/home/milena/Desktop/D2DTools/omnetpp-4.6/images**

提前通知广告

1 个答案:

答案 0 :(得分:0)

inet/tests包含单元测试(适用于INET代码的开发人员)。我建议你看一下examples目录。例如:

cd /home/milena/Desktop/D2DTools/omnetpp-4.6/samples/inet/
cd examples/ethernet/arptest
opp_run -n ../..:../../../src/  -l ../../../src/inet

线索:可以在最后一个命令中安全地省略omnetpp.ini,因为默认情况下opp_run使用omnetpp.ini文件。