You got some error similar to:
here is a solution...
Error: org.macports.activate for port ncurses returned: Image error: /opt/local/bin/captoinfo is being used by the active ncursesw port. Please deactivate this port first, or use 'port -f activate ncurses' to force the activation.
adapt to the library/version cause of your problem...
$ sudo port selfupdate $ sudo port upgrade outdated $ sudo port -f activate ncurses @6.0_0