Skip to content
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

Failed to get sources of ocaml-base-compiler #6291

Open
GalihPRep opened this issue Nov 4, 2024 · 3 comments
Open

Failed to get sources of ocaml-base-compiler #6291

GalihPRep opened this issue Nov 4, 2024 · 3 comments

Comments

@GalihPRep
Copy link

I'm using opam in Windows 11. I tried to install OCaml, but failed apparently because the downloaded file for ocaml-base-compiler.5.1.1 is not found. Here's what happened in my command prompt.

PS C:\Users\galih> opam install ocaml
The following actions will be performed:
=== install 5 packages
  ∗ base-domains        base
  ∗ base-nnp            base
  ∗ ocaml               5.1.1
  ∗ ocaml-base-compiler 5.1.1 [required by ocaml]
  ∗ ocaml-config        3     [required by ocaml]

Proceed with ∗ 5 installations? [y/n] y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[ERROR] Failed to get sources of ocaml-base-compiler.5.1.1: Downloaded file not found

#=== ERROR while fetching sources for ocaml-base-compiler.5.1.1 ===============#
OpamSolution.Fetch_fail("https://github.com/ocaml/ocaml/archive/5.1.1.tar.gz (Download command succeeded, but resulting file not found)")


<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
┌─ The following actions failed
│ ⬇ fetch ocaml-base-compiler 5.1.1
└─
╶─ No changes have been performed
# Run (& opam env) -split '\r?\n' | ForEach-Object { Invoke-Expression $_ } to update the current shell environment

However, I opened the link https://github.com/ocaml/ocaml/archive/5.1.1.tar.gz and the file named ocaml-5.1.1.tar got downloaded. I don't know what's wrong with the downloaded file and why Opam failed get the sources of the needed installation.

@mseri
Copy link
Member

mseri commented Nov 4, 2024

I think this is for the ocaml/opam repository, ping @kit-ty-kate

@kit-ty-kate kit-ty-kate transferred this issue from ocaml/opam-repository Nov 11, 2024
@dra27
Copy link
Member

dra27 commented Nov 12, 2024

Which version of Windows 11 is it? (either ver from a command prompt - e.g. Microsoft Windows [Version 10.0.22631.4169] on mine or from "About your PC" - e.g. Version 23H", OS build 22631.4169 on mine)

Is there any possibility your virus scanner has quarantined it?

@GalihPRep
Copy link
Author

The ver said Microsoft Windows [Version 10.0.22631.4317] but in System › About it's Windows 11.
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants