amuse icon indicating copy to clipboard operation
amuse copied to clipboard

Installer should warn for csh

Open LourensVeen opened this issue 7 months ago • 2 comments

Describe the bug It seems that the conda c-compiler and friends don't know how to set CFLAGS and co when you'r running in tcsh. This causes the framework libraries to not have an rpath, and linking of codes (at least ones linking to stopcondmpi) to fail because the dependency on libmpi cannot be resolved.

We should detect the shell in ./setup, and, if we're also in a conda environment, print an error and tell people how to deactivate the environment, start bash, then reactivate and continue.

LourensVeen avatar Jul 29 '25 13:07 LourensVeen

bash or any posix shell

rieder avatar Jul 29 '25 13:07 rieder

Ah, good point. Probably specifically zsh on macOS? Our setup script itself uses #!/bin/sh to ask for a POSIX shell, and macOS currently uses an ancient bash in that case, but I wouldn't be surprised to see them switch to zsh in the future. It does have a POSIX mode and then they don't have to support this old bash forever.

LourensVeen avatar Jul 29 '25 13:07 LourensVeen