2016-10-29 76 views
0

我將在Ubuntu 16.04上使用Omnet ++ v4.6和Inet v2.3,因爲我需要simuLTE。模擬以退出代碼終止:1(Omnet ++)

我成功安裝了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** 

感謝廣告很多提前

回答

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文件。

+0

對不起,但我看不出它是如何幫助我..我試圖運行 opp_run -n ../..:../../../src/ -l ../。 ./../src/inet 但它顯示「command not found」 – FMA

+0

檢查您的PATH變量是否包含** OMNeT ++的bin目錄的**正確路徑。然後輸入'opp_run -h' - 你應該看到這個命令的幫助。 –