Fix “macports checking for Tcl configuration… configure: error: Can’t find Tcl configuration definitions” when selfupdating Macports in Mac OS X 10.9 Mavericks

I’ve just upgraded my Mac OS X to Mavericks 10.9. When I tried to update Macports I got an error and when I used the verbose mode of selfupdate (sudo port -v selfupdate) it came out this:

macports checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions

I fixed the problem after reinstalling the Command Line Tools of Xcode and accepting the license from the command line:

sudo xcode-select --install
sudo xcodebuild -license

Then the selfupdate worked just fine:

sudo port selfupdate

You might also like

Solve “mongodb cannot be built while v8 is active” in MacPorts
While updating all the ports of macports I got this error: ---> Configuring mongodb Error: mongodb...
MacPorts: Update port definitions and upgrade installed ports
Once in a while is good to update your software to get advantage of the latest bug fixes and new features....
Useful Apache 2 and MySQL 5 service aliases for MacPorts
Those are some aliases I use to start, stop and restart Apache 2 and MySQL on my MacPorts installation...
Change root password in MySQL
In GNU/Linux: $ sudo mysqld_safe --skip-grant-tables & $ mysql -u root -p #press enter to use a...
Leave a comment ?

9 Comments.

  1. This works for me as well. Great, thanks a lot!

    HM

  2. It worked like a charm for me as well! Thanks!

  3. It worked fine for me too. Thank you.

    Reply
  4. Me pasaba lo mismo y tu solución me ha funcionado perfectamente… Muchas gracias

    Reply
  5. Sorry, I didn’t realice that it was in english… Same thing happen to me, and your solution worked fine for me too.

    Thanks a lot.

    Reply
  6. It worked for me too. Thank you.

    Reply
  7. Worked like a charm! I always thought Xcode Command Line Tools were already installed, but looks like at least some part of it was not.

    Reply
  8. Get it! Thanks a lot.

    Reply

Leave a Comment