I’m having trouble with bash not finding haxe libraries, because the libraries are hard-coded to certain folders. So I get a lot of “command not found” errors. How do I fix this, please?
cp: cannot create regular file '/usr/local/bin/lime': No such file or directory
You can use lime by using haxelib run lime. Running haxelib run lime setup is purely optional.
Instead you can alias lime="haxelib run lime" if you want that extra level of convinience.
PS: In my opinion they really should fix that issue… Creating a wrapper outside of the users home that only works within the users environment, as other users won’t probably have lime installed is a no go. They really should instead just ask for adding the above mentioned alias to .{ba,fi,z}shrc, or if it has to be a script they write, then they should put it into a user specified location instead in “root territory”…
I use bash and home-manager. And though I’m not sure I understand everything you wrote in your PS, I agree that installing outside of my home folder doesn’t make sense.
Called from /usr/share/haxe/std/neko/Lib.hx line 42
Uncaught exception - load.c(237) : Failed to load library : /home/jorin/haxelib/lime/7,8,0//ndll/Linux64/lime.ndll (libstdc++.so.6: cannot open shared object file: No such file or directory)
You need to provide it in the environment that you use for your current project.
Usually libraries are added to the buildInputs and then the nix-shell refreshed/reloaded, though I’m not sure how to do that in your case, as I haven’t used any haxe on nixOS and I’m not sure if there is any special builder support or just a lot of manual fiddling within pure and irreproducible environments.
My own experiments with haxe are about 3 or 4 years in the past.