Cannot launch command line session: libncurses problem
With SageMath 9-6-1.4.2 (arm64 architecture) under macOS 12.5.1 on an M1 Mac, I cannot start the sage on a command line, neither directly in Terminal using command sage
nor from the SageMath app with choice of Command line interface. In each case, I get this message about the wrong architecture libncurses:
[~] % sage dyld[8110]: Library not loaded: '/opt/local/lib/libncurses.6.dylib'
Referenced from: '/usr/local/bin/bash'
Reason: tried: '/opt/local/lib/libncurses.6.dylib' (mach-o file, but is an incompatible architecture (have (arm64), need (x86_64))), '/usr/local/lib/libncurses.6.dylib' (no such file), '/usr/lib/libncurses.6.dylib' (no such file)
/usr/local/bin/sage: line 20: 8110 Abort trap: 6 /usr/bin/env - PATH="$PATH" $MIN_ENV "$SYMLINK"/venv/bin/sage "$@"
I installed SageMath, including Recommended_9_6.pkg, using SageMath-9.6-1.4.2_arm64.dmg from https://github.com/3-manifolds/Sage_m....
Note that I can successfully launch the jupyter notebook interface from SageMath-9-6.app and run Sage commands there.
How to fix the issue with command-line interface in Terminal?