-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opam init doesn't initialise a switch #5807
Comments
this means that you already had setup opam in the past. Maybe we could modify the EDIT: also, please use the markdown codeblock when quoting a terminal output (using ```) |
but when I try and install any platform tools I get an error:
|
Have you tried to create a switch like the error message said? (you can open the manual for any command using |
Just tried and it failed, should I say y or n to the last bit?:
|
this might mean that you did not install xcode. Could you try again after If the same error happens, could you list up what you installed with Homebrew using |
I do already have Xcode installed, here's what was installed with homebrew:
|
mmh, interesting. I don’t think i’ve seen that issue without any homebrew involvement yet. Does the following couple of commands work?
|
Tell me if I've done something wrong:
|
Something looks wrong here:
[...]
|
oh good catch! @InnesC-03 What does |
|
mmh, I’m a bit lost, have you used Rosetta2 for anything in the past on this machine? Does If none of these questions give us any hint to what’s going wrong, try:
and the |
Ehm, I might've used Rosetta2 for things in the past. here's what
|
@InnesC-03 that looks alright you'll have to provide what @kit-ty-kate suggested, the output of |
How do I find the |
See @kit-ty-kate's message above. |
I'm really sorry but I'm having a lot of trouble finding the
|
No need to dig the log it's all there in the Something is setting your
You need to get rid of all these things, |
So what is it I need to run? sorry this is all a bit over my head |
I have no idea what setups these environment variables (though I suspect this |
I concur with @dbuenzli, looking at the following line:
it looks like the anaconda3 you installed is the x86_64 version instead of the arm64 and that, during its installation it also messed with your default environment variables and changed your default C compiler to point to the one installed by anaconda. I'm not sure why they do that but it looks pretty scary to me |
@InnesC-03 did it work? |
Closing. Feel free to reopen if you problem is still there |
When running opam init whilst following a tutorial to install OCaml, in the video it initialised a switch, however for me it just stops, and the terminal is ready for a new command.
The text was updated successfully, but these errors were encountered: