I am trying to install Singularity on my MacOS but it doesn't seem to pick up which singularity
or singularity --version
:
Main Attempt:
- Install using Homebrew (and install Home-brew):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install --cask --no-quarantine singularity
singularity --version
resulting in
==> Downloading https://bitbucket.org/router_gray/singularityviewer/downloads/Singularity_Alpha_1_8_9_8709_x86_64.dmg
Already downloaded: /Users/Username/Library/Caches/Homebrew/downloads/d3015dad9cc2d3ef25603a68114f3caf63cb0dd90e03f159405999262392baec--Singularity_Alpha_1_8_9_8709_x86_64.dmg
==> Uninstalling Cask singularity
==> Backing App 'SingularityAlpha.app' up to '/opt/homebrew/Caskroom/singularity/1.8.9.8709/SingularityAlpha.app'
==> Removing App '/Applications/SingularityAlpha.app'
==> Purging files for version 1.8.9.8709 of Cask singularity
==> Installing Cask singularity
==> Moving App 'SingularityAlpha.app' to '/Applications/SingularityAlpha.app'
Then test using singularity --version
with the result
singularity not found
Attempt 2:
- Maybe it wants singularity spelled with a capital Singularity instead of lowercase:
which Singularity
resulting in:
Singularity not found
Attempt 3:
- Export the path to the bash_profile and the source it
export PATH="/Applications/SingularityAlpha.app/Contents/MacOS:$PATH"
However, this resulted in the same issue when singularity --version
was run. It could not recognize that the singularity was installed.
Attempt 4:
Explore inside the Singularity app which is installed under '/Applications/SingularityAlpha.app'
The path
/Applications/SingularityAlpha.app/Contents/MacOS
lead to a file called SingularityAlpha.Exporting this path in the bash profile and sourcing still lead to the same issue when trying to see if it even recoginzed the singularity using
singularity --version
.
I have also tried reinstalling it and it still has the same issue. Is there any suggestion for how to install/use Singularity locally as many packages will have to be tested locally on my machine before running it on my HPC?