The accepted answer did not make sense to me, so I decided to publish a solution that worked on my system. It's worth noting that I'm on Ubuntu 14.04, not Windows. I could not install either lime or openfl. I decided to include openfl details here, since I could not find a solution for this. The openfl error I received was Uncaught exception - Invalid field access: split .
Many forums recommend checking that the HAXEPATH environment HAXEPATH not set. In my case, it was not installed, but I got a similar lime error in what was posted here. Unlike what these forums were discussing by manually exporting the HAXEPATH variable, I was able to successfully run both the lime and openfl settings.
One site also noted that format lib is required, although I'm not sure how true this is. Please leave a comment if you can confirm or deny it.
Here is what I did:
Install openfl, lime and format
haxelib install openfl
haxelib install lime
haxelib install format
Get the haxelib path and export it
Running haxelib config will return the haxelib repository path as currently defined. If you have not defined the haxelib repository path, you can do this by running haxelib setup . On my system, the path was /usr/share/haxe/lib .
Export haxelib path:
export HAXEPATH="`haxelib config`"
Complete setup
haxelib run lime setup
haxelib run openfl setup
Confirm that everything works
Run lime or openfl . You should receive a greeting from pop-ups from both.
I added the above export entry to the bashrc file, as these tools always require the variable to exist in my environment.
source share