Maybe missing chmod, or see here:
Did you for sure download the right binary?
My somewhat older 1.9-DEV worked didn’t complain with:
julia --heap-size-hint=2GB
But it’s a good catch, it might not work if I’m reading the code correctly:
Does it actually parse as B (only last letter), just hitting the default/break case and then “2GB” = “2” (bytes)?
I found it likely to be intentional and equivalent (but I didn’t check if it was actually did the same or anything, GXXX also runs and XXX), but 1.9 isn’t released, and if G is in the spec, and GB isn’t, do not rely on it to work ever… It could be changed to work before release, or not (or even changed back to spec, by accident, though unlikely).