0

Here is the command:

    opam init

Here is the error I am getting:

    bash: /use/local/bin/opam: cannot execute binary file: Exec format error

Are there any suggestions on what we should try?

0

1 Answer 1

1

It seems like you are trying to execute a program that might not be a valid Linux binary; a quick search for this error online will return many sites explaining how to solve it, like these:

Check if the program you're trying to execute is compatible with your Linux kernel version, like these sites I linked suggest.

However, before actually doing this, I'd try changing that path to /usr/local/bin/opam, it also looks like you might have a typo in there (usually in Linux that folder is called usr, not use).

2
  • Thank you. I got a newer version of opam and it now worked. However, the next command is now not working (because it expected the older version of opam). Any ideas for me this time? Command is: <make build-deps> and error is <Makefile:25: *** Unexpected opam version (found: 2.1.0~alpha, expected: 2.0.*). Stop.>.
    – jesse
    Jul 3, 2020 at 4:28
  • Even though I know nothing about this program, the error is clear: the new version is not compatible. I'd try uninstalling it (to make sure that no conflicts will arise), then install it again, paying attention to the opam version and the system you're installing it onto. Here are some links; you can find more by searching online: - Uninstalling opam: opam.ocaml.org/doc/1.1/Advanced_Install.html#Uninstalling-OPAM - About this error: reddit.com/r/tezos/comments/9uml4u/… - A (possible) solution: gitlab.com/tezos/tezos/-/issues/263
    – Zelethil
    Jul 3, 2020 at 7:52

Not the answer you're looking for? Browse other questions tagged .