port selfupdate and MacPorts tried to upgrade itself to version 2.2.1, but eventually fails. When I add the
-v flag, I can see the build fails after these lines:
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc OBJC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1 Exit code: 1
How can I get MacPorts back?