Ask Your Question
0

Cannot launch command line session: libncurses problem

asked 2022-08-29 17:06:41 +0100

murraye gravatar image

updated 2022-08-29 17:08:27 +0100

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-08-31 20:26:06 +0100

murraye gravatar image

The issue was resolved by installing the universal variant of the MacPorts port ncurses (port install ncurses +universal) instead of just the regular version (which by default on an M1 Mac will be the arm64 version); and by doing similarly with the MacPorts port gettext-runtime, which is responsible for installing libintl, also called at runtime by sage.

Is this a fault in the arm64 binary port of sage? Surely if it's truly an arm64 port, then external runtime libraries called by sage ought to be arm64, too?

Where is the appropriate place to submit this as a but or at least as a request or suggestion?

edit flag offensive delete link more

Comments

sage-devel and the Sage trac server are the appropriate places, and you've already posted to both of those.

John Palmieri gravatar imageJohn Palmieri ( 2022-08-31 21:51:55 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-08-29 17:06:41 +0100

Seen: 216 times

Last updated: Aug 31 '22