So it’s been a while since I upgraded. My previous version was 4.1.5. After installing version 4.2.5 on my Mac OS 10.13.6, when I try to call haxe in terminal, it reports:
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/haxe
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/haxe
Expected in: /usr/lib/libSystem.B.dylib
I tried 4.2.0 just now. Similar result, but the message is:
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/haxe (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/haxe (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
So it seems my MacOS is too old. I went back to haxe 4.1.5 and it works again.