haxelib icon indicating copy to clipboard operation
haxelib copied to clipboard

Error: haxelib Repository /usr/lib/haxe/lib does not exist.

Open MatthijsKamstra opened this issue 9 years ago • 8 comments

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?

MatthijsKamstra avatar Jun 05 '16 10:06 MatthijsKamstra

In the meantime you can manually do haxelib setup /usr/local/lib/haxe/lib

ibilon avatar Jun 05 '16 10:06 ibilon

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 :(

MatthijsKamstra avatar Jun 06 '16 09:06 MatthijsKamstra

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());
  }
}

ibilon avatar Jun 06 '16 09:06 ibilon

what you expect: Main.hx:3: Mac

MatthijsKamstra avatar Jun 06 '16 09:06 MatthijsKamstra

Hmm, you wouldn't happen to have had a previous version of haxe before?

ibilon avatar Jun 06 '16 10:06 ibilon

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?

MatthijsKamstra avatar Jun 06 '16 10:06 MatthijsKamstra

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)

ibilon avatar Jun 06 '16 10:06 ibilon

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

MatthijsKamstra avatar Jun 06 '16 11:06 MatthijsKamstra