0%

solve omnetpp run error

When I ran omnetpp with zsim simulator using the command $CPUSPECPATH/471.omnetpp/exe/omnetpp_base.amd64-m64-gcc43-nn $CPUSPECPATH/471.omnetpp/data/ref/input/omnetpp.ini, and I got an error like that:

1
2
3
<!>Cannot open `omnetpp.ini` .
<!>Error during startup: Processing of init file 'omnetpp.ini'
....

I tried to solve this using Baidu and Google, without success. However, the file existed indeed, I can obtain its content using command vim $path/omnetpp.ini or cat $path/omnetpp.ini, which made me confused.
Finally I copied the file from the SPEC path(spec/471.omnetpp/data/ref/input/omnetpp.ini) to my work directory(./omnetpp.ini), and I changed the command like this $CPUSPECPATH/471.omnetpp/exe/omnetpp_base.amd64-m64-gcc43-nn $WORKPATH/omnetpp.ini, then I ran the command successfully.

Welcome to my other publishing channels