I decided I wanted to install [email protected]
with spack, so I ran the command spack --insecure install [email protected]
. This attempts to download https://ftpmirror.gnu.org/gcc/gcc-10.2/gcc-10.2.tar.xz
, which no longer exists.
I downloaded gcc-10.2.tar.xz
from a valid mirror, and attempted to add a mirror.
I've tried variants of the form
$ spack mirror add local_filesystem gcc-10.2.tar.xz
However, spack install [email protected]
still gives the same answer.
I can't figure out how to get spack to use the mirror for installing. What am I missing?
My understanding is that you would first use spack to create the mirror, e.g.:
This will create the directory /tmp/mirror and download a tarball to /tmp/mirror_source_cache, with symbolic link to /tmp/mirror/gcc:
Even if you aren't able to create the mirror automatically with
spack mirror create
, you can still put the tarball directly where that symlink is.Then add the mirror (which is just that directory):
TLDR: The mirror isn't just the tarball, but it contains the tarball. Also, you may try adding the public mirror: