Haxelib for installation with haxe in a custom directory
I am trying to set up a development environment haxe
. I would rather not install haxe
to / usr, so I edited the haxe
Makefile so that the installation directory is local:
INSTALL_DIR=/home/liori/Programy/haxe.install
However, now I cannot use haxelib:
% PATH=/home/liori/Programy/haxe.install/bin:$PATH haxelib setup /home/liori/Programy/haxe.install/haxelib
Standard library not found
How to perform haxelib
in these circumstances?
source to share
Since the error mentions "Standard library not found", it is possible that the "std" folder is somehow misplaced.
The haxe standard lib folder, "std", should be placed next to the "haxe" executable. If you want an alternative setup, you must set up an env variable HAXE_STD_PATH
that points to the "std" folder. Try setting it up and running haxelib again.
If that still doesn't work, try opening the executable haxelib
in a text editor, it should be a script that works haxe
. See if any of the arguments match.
Another option is make haxelib
that will create a compiled executable haxelib
instead of a script.
source to share