5

Whenever I run haxelib selfupdate I get the following error:

Error writing file /usr/bin/haxelib. Please ensure you have write permissions. [file_open,/usr/bin/haxelib]

I tried to change the owner and group of /usr /usr/bin and /usr/bin/haxelib to my own user and group to no use. I get the same error :/

If I try to run haxelib as administrator, it requires me to make a new haxelib setup (I guess it is one setup per user). Once I did the setup and ran sudo haxelib selfupdate I got the folloing error:

Error compiling haxelib client: Standard library not found

I tried to found more resources on how haxelib works and is organized to try to solve this issue but I couldn't. Could anyone explain me what I am missing? I know it is very silly but I can't get it to word.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Fabio Picchi
  • 1,202
  • 2
  • 10
  • 22
  • I'm not sure but this may be indeed an issue with the `haxelib` utility itself and/or the way Haxe is installed on Linux. I can confirm the problem, but have no solution either. – JensG Mar 22 '15 at 12:15
  • 2
    It seems that the issue is already being discussed: https://github.com/HaxeFoundation/haxelib/issues/189 – Fabio Picchi Mar 23 '15 at 17:10

1 Answers1

1

Since commit the command haxelib selfupdate is deprecated and will be removed in future. There more changes.

Use haxelib --global update haxelib instead.

Alex Koz.
  • 490
  • 8
  • 26