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

md5sum errors when installing conda #8

Open
yangl1996 opened this issue Mar 5, 2024 · 1 comment
Open

md5sum errors when installing conda #8

yangl1996 opened this issue Mar 5, 2024 · 1 comment

Comments

@yangl1996
Copy link

When running miniconda-installer in FreeBSD shell, I get

md5sum: -: No such file or directory

I figured that FreeBSD's md5 no longer takes -. A workaround (as indicated here) is to run miniconda-installer once in FreeBSD shell so that it downloads the actual installer (Miniconda3-latest-Linux-x86_64.sh on my end), and then exit the installer, run conda-shell to go into a Linux shell, and finally run the installer directly (./Miniconda3-latest-Linux-x86_64.sh).

@unknown-user-9246102101

Instead of symlinking freebsd's md5sum I used linux's md5sum
pkg install coreutils
and then opened the sh script (for me it was in my ~)
and found this section:


# verify the MD5 sum of the tarball appended to this header
MD5=$(extract_range "${boundary0}" "${boundary2}" | gmd5sum -)
if ! echo "$MD5" | grep e713900ff53aea39b34b9da97d264ec2 >/dev/null; then
    printf "WARNING: md5sum mismatch of tar archive\\n" >&2
    printf "expected: e713900ff53aea39b34b9da97d264ec2\\n" >&2
    printf "     got: %s\\n" "$MD5" >&2
fi

All I had to do was instead of md5sum,
make it gmd5sum
and presto. BSD md5sum doesn't like their usage of - for some reason, but whatever.

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

2 participants