In the past I have used brew on my Mac and they no longer provide a formula for Geant4
so I have just tried spack ( Which I have never used before ) and not having success.
So hence my question anybody successfully installed Geant4 using spack?
keithsloan@Keiths-iMac-2 myG01 % spack install geant4
[+] /usr/local (external cmake-3.29.1-qvlnr37xpscgmkclewurimpsfzbeu54w)
[+] /Library/Frameworks/Python.framework/Versions/3.10 (external python-3.10.13-a3rf3md6mguucy7uyjrnsfiya6wy2mqw)
[+] /Users/keithsloan/.spack/bootstrap/store/darwin-sonoma-x86_64/apple-clang-15.0.0/gmake-4.4.1-hmuuzsiltoh7g7kw4fjojz7ogxglkbwz
[+] /Users/keithsloan/.spack/bootstrap/store/darwin-sonoma-x86_64/apple-clang-15.0.0/python-venv-1.0-ldjuvewzunosg5ezi7mmysiytzywxtun
==> Installing re2c-2.2-dxlcdyolekh7jyo5o5drpjmyxvvocjno [5/11]
==> No binary for re2c-2.2-dxlcdyolekh7jyo5o5drpjmyxvvocjno found: installing from source
==> Error: FetchError: All fetchers failed for spack-stage-re2c-2.2-dxlcdyolekh7jyo5o5drpjmyxvvocjno
==> Warning: Skipping build of clingo-bootstrap-spack-d3pq46ujtan47yg3p6cpnzkdvrgmsf7o since re2c-2.2-dxlcdyolekh7jyo5o5drpjmyxvvocjno failed
==> Error: cannot bootstrap the “clingo” Python module from spec “clingo-bootstrap@spack+python %apple-clang target=x86_64” due to the following failures:
github-actions-v0.5 raised RuntimeError: The binary index is empty
github-actions-v0.4 raised RuntimeError: The binary index is empty
spack-install raised InstallError: Terminating after first install failure: FetchError: All fetchers failed for spack-stage-re2c-2.2-dxlcdyolekh7jyo5o5drpjmyxvvocjno
Run spack --debug ... for more detailed errors
Okay pip install clingo gets further but then hits other fetch errors
==> Error: FetchError: All fetchers failed for spack-stage-g4abla-3.3-zphwo6a5vz5va64bsdx56f43mybfcnyu
==> Warning: Skipping build of geant4-data-11.2.0-ti3w3uhovn4pl42trx2w3bknh35vgtwf since g4abla-3.3-zphwo6a5vz5va64bsdx56f43mybfcnyu failed
==> Warning: Skipping build of geant4-11.2.1-aoh4ddogwlrtw3hdaixdltlck55nwibo since geant4-data-11.2.0-ti3w3uhovn4pl42trx2w3bknh35vgtwf failed
==> Installing g4emlow-8.5-gzujs4lfiyi2le4cytan2zse7dno27wf [3/30]
==> No binary for g4emlow-8.5-gzujs4lfiyi2le4cytan2zse7dno27wf found: installing from source
==> Error: FetchError: All fetchers failed for spack-stage-g4emlow-8.5-gzujs4lfiyi2le4cytan2zse7dno27wf
==> Installing g4ensdfstate-2.3-6okqch2ju66jcfognc5ker77duxppap3 [4/30]
==> No binary for g4ensdfstate-2.3-6okqch2ju66jcfognc5ker77duxppap3 found: installing from source
==> Error: FetchError: All fetchers failed for spack-stage-g4ensdfstate-2.3-6okqch2ju66jcfognc5ker77duxppap3
==> Installing g4incl-1.2-epdk6urro76cwckklalx5pk2262uizka [5/30]
==> No binary for g4incl-1.2-epdk6urro76cwckklalx5pk2262uizka found: installing from source
I’ve tried installing just the data in a fresh spack checkout (so not Homebrew installed) and it worked for me. All I can suggest is trying a non-Hombrew install, and if the problem persists, raise a spack Issue or Discussion (There’s also the Slack Channel if you use that).