two haxe versions on same linux machine

Is it possible to have haxe2 and haxe3 installed and usable at once on same linux machine? I'm trying to setup a CC server.

I have an awkward solution with symlinks: have a symlink in /usr/lib that points to haxe installation I want to use and update it manually each time I want to switch. But may be there's something more elegant?

Ideally, I'd like to run haxe3 for the third version and just haxe for the second. And of course they need to have their own set of haxelib libraries.


  • For the sake of some kind of closure. I've ended up using docker. No symlinks, no switches, just separate environments for different Haxe versions.