$ export PATH=$PATH:~/omnetpp-4.1/bin
Also add the above two export commands at the end of your .bash_profile file.
I used another approach
I Install Castalia using mingwenv in the omnetpp4 directory.
Then I create in omnetpp4 a project with the name Castalia.
And I import the file system.
But I got some error such:
Description Resource Path Location Type
declared package "" does not match expected package "castalia.src" SensorNetwork.ned /Castalia/src line 1 NED Consistency Problem
Can you help me?