OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000973OMNeT++Installer / Productizingpublic2016-11-27 13:542017-02-06 10:17
0000973: Omnetpp does not start on macOS Sierra
After configure and make, omnetpp does not start. With terminal, if I try to execute ./omnetpp (in /bin directory) the output is:
Starting the OMNeT++ IDE...

If I try with double click on the bin the terminal's output is:
Starting the OMNeT++ IDE...
Saving sessione...
...copying shared history...
...saving history...truncating history files..
Deleting expired sessione... 52 completed.

[Process completed]

a pop-up of Sierra report an error:
omnetpp quit unexpectedly

I have allow the program in Gatekeep.
Always I try to open the program (execute the omnetpp bin).
No tags attached.
has duplicate 0000976resolved rhornig Omnetpp does not start on macOS Sierra 
has duplicate 0000974resolved rhornig Omnetpp does not start on macOS Sierra 
has duplicate 0000972resolved rhornig Omnetpp does not start on macOS Sierra 
has duplicate 0000971resolved rhornig Omnetpp does not start 
Issue History
2016-11-27 13:54valeriot90New Issue
2016-12-21 14:44valeriot90Note Added: 0001236
2016-12-21 14:55valeriot90Note Added: 0001237
2016-12-22 11:56rhornigNote Added: 0001238
2016-12-22 11:56rhornigStatusnew => resolved
2016-12-22 11:56rhornigFixed in Version => 5.1
2016-12-22 11:56rhornigResolutionopen => fixed
2016-12-22 11:56rhornigAssigned To => rhornig
2016-12-22 11:59rhornigRelationship addedhas duplicate 0000976
2016-12-22 12:01rhornigRelationship addedhas duplicate 0000975
2016-12-22 12:02rhornigRelationship addedhas duplicate 0000974
2016-12-22 12:02rhornigRelationship addedhas duplicate 0000972
2016-12-22 12:02rhornigRelationship addedhas duplicate 0000971
2017-02-06 10:17rhornigFixed in Version5.1 => 5.1pre3

2016-12-21 14:44   
You must execute ./omnetpp in this folder:
2016-12-21 14:55   
Add environment path:

nano ~/.bashrc
and add:
export PATH=PATH:$HOME/omnetpp-5.0/bin

open the file "omnetpp" in /omnetpp-5.0/bin

and set:

IDEDIR=`dirname $0`/../ide/

and replace

#if test ! -d $IDEDIR/configuration; then
if test ! -d `dirname $0` /../ide
  echo "The IDE is not yet configured. Please run the 'configure' script in the installation root folder!"
  exit 1;

from root of omnetpp installation launch

Close and reopen the terminal and enjoy!
2016-12-22 11:56   
There are two issues at play here:
- The bundled is downloaded from the internet and sierra moves the whole IDE into a random location (Translocation) and starts it there.
- The is not signed so you must play around with gatekeeper to enable it (manually).

Both issues were worked around in omnet++ 5.1 preview 2

- The downloaded flag will be removed by the start script automatically
- The app will be started directly instead of starting the app bundle (as suggested in the comment).

Preview 2 will be released soon, so please test it.