haxelib
                                
                                
                                
                                    haxelib copied to clipboard
                            
                            
                            
                        Error: haxelib Repository /usr/lib/haxe/lib does not exist.
I installed Haxe Compiler 3.3.0 - (C)2005-2016 Haxe Foundation rc1 on OSX el capitan, and this issue started to popup again.
Error: haxelib Repository /usr/lib/haxe/lib does not exist. Please run `haxelib setup` again.
do as instructed:
Please enter haxelib repository path with write access
Hit enter for default (/usr/lib/haxe/lib)
Path :
Error: You don't have enough user rights to create the directory /usr/lib/haxe/lib
check here: https://github.com/HaxeFoundation/haxelib/issues/242
I thought it was fixed?
In the meantime you can manually do haxelib setup /usr/local/lib/haxe/lib
Yes, thx. I know and I did.
But first time users might not be that interested to find out how it works. And uninstall everything because "it doesn't work"
Maybe it's not the best idea to send everybody to release candidate 1 (http://haxe.org/download/) if there are issues that might scare first time users away :(
The fix is supposed to be here https://github.com/HaxeFoundation/haxelib/blob/development/src/haxelib/client/Main.hx#L941_L951
Maybe Sys.systemName() doesn't return what we expect.
@MatthijsKamstra could you run that and tell us what is returns:
class Main {
  public static function main() {
    trace(Sys.systemName());
  }
}
                                    
                                    
                                    
                                
what you expect:
Main.hx:3: Mac
Hmm, you wouldn't happen to have had a previous version of haxe before?
yes I did. 3.2.x I guess... I have had this problem before. How do we test this? How do I uninstall haxe ( what nobody should do.... ever! ) so I start clean?
The thing is that setup "default" path is the one currently set, and if you don't have one then the real default path.
We need to change "default" to "current" if appropriate, and still show the default value.
@MatthijsKamstra if you want to uninstall, what you probably missed is ~/.haxelib (unrelated to this issue but there's also ~/.hxcpp_config.xml)
Okay I removed haxe dir (/usr/local/lib/haxe/), removed files you mentioned.
checked
Haxe Compiler 3.3.0 - (C)2005-2016 Haxe Foundation
Haxe Library Manager 3.3.0 - (c)2006-2016 Haxe Foundation
tried it again
→ haxelib setup
Please enter haxelib repository path with write access
Hit enter for default (/usr/lib/haxe/lib)
Path :
Error: You don't have enough user rights to create the directory /usr/lib/haxe/lib