0

I tried running sudo opam init on an Ubuntu virtual box. On pressing y after being prompted, the following error occurs:

global-config does not define the variable lib
mech
  • 2,775
  • 5
  • 30
  • 38
  • Hi, I am not able to find in the source code of opam (1.3.0) the string 'does not define variable' - which version of opam are you using ? also you do not need to sudo. – Pierre G. Feb 28 '16 at 04:31
  • don't use `sudo`, opam is designed to be installed in a user folder, under the user's credentials – ivg Feb 28 '16 at 16:01

1 Answers1

0

Installing Opam 1.2.2 resolved the issue. Thanks for the help.