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?
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?
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).
Here are some links; you can find more by searching online:
- Uninstalling opam: https://opam.ocaml.org/doc/1.1/Advanced_Install.html#Uninstalling-OPAM
- About this error: https://www.reddit.com/r/tezos/comments/9uml4u/unexpected_opam_version_issue/
- A (possible) solution: https://gitlab.com/tezos/tezos/-/issues/263
– Zelethil Jul 03 '20 at 07:52