3

After upgrading Lion to Mountain Lion, the MacPorts system seems broken.

Refering to the MacPorts's migration page, the best solution seems to unistall all and reinstall all the ports.

Is there a simpler/less drastic solution?

1 Answer 1

3

Here is how I fix it (after Mountain Lion update):

  • install the latest MacPorts DMG dedicated to Mountain Lion over the old one;
  • install the latest Xcode version from the AppStore (it doesn't update by itself!);
  • launch Xcode and agree to the licence;
  • in Xcode's Preferences, at the Download's tab, in the Components section, install Command Line Tools (as since Xcode 4.3);
  • don't forget that you must read and accept licence for it, this is possible after running the following command in the terminal: sudo xcodebuild -license.
  • in terminal:
    • sudo port selfupdate
    • sudo port upgrade outdated

After that, everything works except MongoDB, After some research, I found this article (How to upgrade MacPorts to OS X 10.8 Mountain Lion) by Phil Freo.

Thanks to this article, which reassured me in my approach, I also found the solution to my last issue:

Everything finished and worked properly except MongoDB. Currently there is an incompatibility between boost 1.50 and MongoDB which can be resolved with these two commands, assuming boost 1.49 was previously installed on your machine:

  • sudo port activate boost @1.49.0_0
  • sudo port -n install mongodb
4
  • 1
    The mongodb solution proposed only works if mongodb was already installed prior to installing Mountain Lion. If, on the other hand you wish to install mongodb fresh, this will not help you because the mongodb configurations upgrades boost to 1.5.0 which breaks mongodb! It seems like the only workaround is to wait for the maintainers of the mongodb port to resolve the boost issue.
    – user26955
    Commented Aug 7, 2012 at 16:30
  • 1
    MongoDB issue here: trac.macports.org/ticket/35726
    – Somatik
    Commented Aug 24, 2012 at 19:41
  • Here is the original ticket: trac.macports.org/ticket/35118
    – Pascal Qyy
    Commented Sep 11, 2012 at 14:44
  • The ticket for the Boost problem in MongoDB is here: jira.mongodb.org/browse/SERVER-4314
    – Pascal Qyy
    Commented Sep 11, 2012 at 14:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .