问题原文
原帖链接 · projectshave · CC BY-SA 4.0
I’ve got accounts on many HPC clusters. The machines have a minimal install, and the admins won’t add much else. I need to install lots of typical software. Normally I’d do this with apt, but of course I don’t have root on these machines. Some alternatives:
- The admin recommended
spack. Then they told me privately everyone hates spack and avoids it. It failed badly for me. - Download source, compile+install myself. This is annoying, it’s difficult to update, and not all packages are easy to move their install location.
- Nix. Appears to do (2) automatically. Some say it’s hard to install without root. Don’t know…
- OverlayFS? Is there a way to trick the system into believing I have root permissions everywhere?
- Rootless Docker. Ultimately the software I produce needs to run on a cluster. It can’t be in a container. And I’m using zillions of GPUs, which is trickier with docker.
This should be a common problem. Most companies won’t give root access to everyone. What’s the best way to install software without any root privileges?
已采纳解答
原帖链接 · Todd Gamblin · CC BY-SA 4.0
Spack, like Nix, does (2) automatically, but lets you build against external packages like the system MPI, math libraries, etc. It also gives you more flexibility around versions, compilers, and other aspects of the build. Honestly, it was created (disclaimer: by me!) for this use case. The community is supportive; if you're having build issues you can likely get help quickly on spack slack. It's active; there are around 2,500 users on there.
Your other decent options are:
- EasyBuild, which will also build from source (smaller community, more targeted at admins and modules)
- Conda, conda-forge, or mamba (conda with a much faster solver). Binary only, won't build with the system MPI, not likely to have all the HPC software you may want.
- Linuxbrew Similar issues to Conda, not focused on scientific software at all.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
