First time here? Check out the FAQ!

Ask Your Question
0

Cannot launch command line session: libncurses problem

asked 2 years ago

murraye gravatar image

updated 2 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 2 years ago

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?

Preview: (hide)
link

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 ( 2 years ago )

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: 2 years ago

Seen: 265 times

Last updated: Aug 31 '22