to answer my own question, these problems are all due to an old install of MacPorts.
removing the MacPorts install dir /opt/local/bin from the path solved the problem.
Bob still needs to get rid of MacPorts from his machine - the uninstall process doesn’t work as advertised.
bottom line: avoid MacPorts, use Homebrew whenever possible.